I get the following fatal error with the location module enabled:
PHP Fatal error: Only variables can be passed by reference in
/var/www/vhosts/flex.org/httpdocs/sites/all/modules/location/location.module on line 1719
The temporary solution for me is to comment out that section of code. After that, things work fine.
Comments
Comment #1
bdragon commentedWhat is your PHP version?
Comment #2
bdragon commentedMore specifically, is it 5.0.5?
Comment #3
bdragon commentedHmm, 5.2.6.
What is actually *on* that line? I can't really see what would be causing an error.. I'm already doing an emptiness check! In pristine sources that line is:
if (!empty($location['country']) && location_standardize_country_code($location['country'])) {Comment #4
yesct commentedthis has needed more information for a few months. I'll close it. But if you get more information and still have the problem, please just post back. Thanks.
Comment #5
yesct commentedI wonder if this was related to #431226: Only variables can be passed by reference - location_taxonomy.module: line 43
Comment #6
mikeytown2 commentedThis looks like it could be a PHP bug
http://en.wikipedia.org/wiki/Short-circuit_evaluation
location_standardize_country_code() should never be evaluated if $location['country'] is empty.