Active
Project:
Addresses
Version:
6.x-1.05
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
23 Oct 2009 at 07:13 UTC
Updated:
2 Apr 2012 at 00:56 UTC
Jump to comment: Most recent file
the address field won't show
warning: Parameter 1 to theme_addresses_elements() expected to be a reference, value given in /path-to-drupal/includes/theme.inc on line 617.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | addresses_state_php5-3.patch | 1.37 KB | codycraven |
| #6 | addresses_php5-3_fix.patch | 738 bytes | codycraven |
Comments
Comment #1
boftx commentedI fully agree with the Priority being "Critical".
I have the same issue at work, running Drupal 6.14, PHP 5.3, Apache 2 under Solaris 9 on Sparc hardware. This problem is directly caused by PHP5.3 not being fully backwards compatible (again!!!!) and is present is several other modules. We are going to uninstall PHP 5.3 and load 5.2.x instead for now, but that is going to be unacceptable over time. Also, I host several sites running Drupal 6.14 on Bluehost and when they upgrade (and I use the term loosely) to 5.3 I won't have the option to revert.
Please look into this ASAP.
Comment #2
codycraven commentedPHP 5.3 should absolutely be supported. However Drupal 6 does not support PHP 5.3 at this time and thus this is a low priority issue. Currently there are a lot of usability features that are of a much higher priority as they cripple the use of the module.
Comment #3
codycraven commentedTurns out Drupal, as of 6.14, supports PHP 5.3. This issue is now marked as active.
Comment #4
codycraven commentedThis has been fixed.
The issue was being caused by theme_addresses_elements() requiring the first parameter to be a reference value which in 5.3 is not being passed and thus throws an error. By removing the reference requirement the module functions normally as no modifications to the parameter are performed within the theme_addresses_elements() function.
Comment #5
codycraven commentedComment #6
codycraven commentedJust discovered an error with PHP 5.3 when editing an Addresses field in CCK. The fix for this is nearly identical to the previous fix but for the theme_addresses_settings_fields().
Comment #7
codycraven commentedFound two more issues, this should fix all of these types of issues as none of the hook_theme functions have referenced parameters now.
Comment #9
fawksfeather commentedHi, i think i am having a similar problem but not too familiar with how specifically to fix this, I'm running drupal 6.14 and when I click on Create New Account, the following warning appears:
warning: Parameter 1 to theme_addresses_elements() expected to be a reference, value given in /data/18/1/81/3/1081981/user/1124724/htdocs/includes/theme.inc on line 617.
I think removing reference requirement may fix it but i'm not exactly what needs to be removed or in what file. hopefully someone is still around to read this post! Thank you!
Comment #10
AlexisWilke commentedYou may want to consider upgrading at least to Drupal 6.24 for security reasons...
Have you tried with the development version? Because I cannot see a problem in the current source.
Thank you.
Alexis
Comment #11
AlexisWilke commentedNote that the "Needs review" status is for when you offer a patch. 8-)
Comment #12
fawksfeather commentedHi Alexis, thank you for your advice!! i actually gave up looking for a solution and i'm attempting to upgrade to 6.25 as I type this :D
and thanks for the status input, i'm a newbie to this as you can see, thanks again!