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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 835880.patch | 2.48 KB | ezra-g |
| #3 | 889632.patch | 1.16 KB | ezra-g |
| #1 | 835880.patch | 953 bytes | ezra-g |
Comments
Comment #1
ezra-g commentedDoes this help at all?
This is a quick untested patch that might resolve the problem.
Comment #2
brentratliff commentedPatch 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.
Comment #3
ezra-g commentedI just tested and committed the following fix. We'll get additional testing in the next dev and beta.
Comment #4
ezra-g commentedOops, here's the right patch.