Tested identical sites in PHP 5.2 and PHP 5.3. PHP 5.3 will not allow the profile information to be loaded in the checkout process. After email address is submitted for anonymous users the following errors occur (dev snapshot):

warning: Parameter 2 to profile_user() expected to be a reference, value given in /var/www/example.com/includes/module.inc on line 462.
warning: array_values() expects parameter 1 to be array, null given in /var/www/example.com/sites/all/modules/uc_signup/uc_signup.module on line 92.
warning: Parameter 2 to profile_user() expected to be a reference, value given in /var/www/example.com/includes/module.inc on line 462.
warning: array_values() expects parameter 1 to be array, null given in /var/www/example.com/sites/all/modules/uc_signup/uc_signup.module on line 92.

Thanks for a great module, I just don't want to downgrade my PHP to an older version.

CommentFileSizeAuthor
#4 835880.patch2.48 KBezra-g
#3 889632.patch1.16 KBezra-g
#1 835880.patch953 bytesezra-g

Comments

ezra-g’s picture

Status: Active » Needs review
StatusFileSize
new953 bytes

Does this help at all?

This is a quick untested patch that might resolve the problem.

brentratliff’s picture

Patch prevents uc_signup from hooking into the checkout workflow altogether. I think the problem is similar to this error which is present on PHP 5.3 with the google analytics module installed.

warning: Parameter 1 to profile_load_profile() expected to be a reference, value given in /var/www/example.com/includes/module.inc on line 462.

Here is an explanation to what appears to be causing incompatibility in contrib modules such as google analytics and uc_signup. http://drupal.org/node/679404. Long story long, it has to do with passing by reference with module_invoke in PHP 5.3. I'll take a look at a creating a patch with something similar to what fixed the google analytics module unless you see a quick fix. Thanks again.

ezra-g’s picture

Status: Needs review » Fixed
StatusFileSize
new1.16 KB

I just tested and committed the following fix. We'll get additional testing in the next dev and beta.

ezra-g’s picture

StatusFileSize
new2.48 KB

Oops, here's the right patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.