Posted by dortez on January 23, 2009 at 12:21am
Jump to:
| Project: | Ubercart Donation Products |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | greenSkin |
| Status: | closed (fixed) |
Issue Summary
I downloaded the relavent Ubercart Donation Products modile for my Drupal 5 website and I get the follow error once I upload the module (I do not even enable it):
Parse error: syntax error, unexpected '=', expecting ')' in /home/keypacor/public_html/sites/all/modules/uc_donation/uc_donation.module on line 421
Any ideas?
Drupal 5.10
MySQL database 4.1.22
PHP 4.4.7
Ubercart 5.x-1.7
Comments
#1
I had the same problem. As soon as I removed the "&" sign in front of "$args" it worked again.
I'm not a big PHP programmer though but I thought it would make sense assigning a value (NULL) not to a reference but to a variable. Maybe someone who knows about this could tell me if I'm right or wrong.
#2
It is possible to assign a default value to a reference in PHP5, but is not allowed in PHP4. I will remove the variable as a reference as I don't pass anything back to it. The params were taken from the uc_product function though in an earlier version.
#3
Fixed... finally. :P
#4
Automatically closed -- issue fixed for 2 weeks with no activity.