Closed (fixed)
Project:
Ubercart Donation Products
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jan 2009 at 00:21 UTC
Updated:
26 Mar 2009 at 23:30 UTC
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
Comment #1
jakob_dunning commentedI 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.
Comment #2
greenskin commentedIt 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.
Comment #3
greenskin commentedFixed... finally. :P