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

bdragon’s picture

Status: Active » Postponed (maintainer needs more info)

What is your PHP version?

bdragon’s picture

More specifically, is it 5.0.5?

bdragon’s picture

Hmm, 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'])) {

yesct’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

this 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.

yesct’s picture

mikeytown2’s picture

This 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.