Needs review
Project:
Private Number
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2010 at 17:09 UTC
Updated:
28 Nov 2012 at 22:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
decibel.places commented(removed unnecessary local url info from title)
Comment #2
JayMN commentedPHP 5.3 or above causes this problem (see http://drupal.org/node/578124). I experienced this when my webhost upgraded from php 5.2.x to 5.3.x. Private number fields disappeared from forms, and php errors appeared in dblog (recent log entries).
There is a typo in the issue summary, above. The solution is to remove the @ symbol from line 306, as follows:
function theme_private_number($element) {Comment #3
svax commentedJust removed the Pass by reference & in the theme_private_number($element) function.
This fixes the problem on PHP 5.3, but will need testing on PHP 5.2 and below.
Comment #4
decibel.places commented@JayMN thanks for pointing out the typo, but there was a typo in your description, the & was removed, not the @
function theme_private_number(&$element)
->
function theme_private_number($element)
Comment #5
SchwebDesign commentedthanks for this fix.
Comment #5.0
SchwebDesign commentedfix typo where the & was repeated in the corrected line: function theme_private_number(&$element) -> function theme_private_number($element)