Erron on line 421 of Ubercart Donation Products

dortez - January 23, 2009 - 00:21
Project:Ubercart Donation Products
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:greenSkin
Status:closed
Description

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

#1

jakob_dunning - January 26, 2009 - 16:20

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

greenSkin - January 26, 2009 - 16:29
Assigned to:Anonymous» greenSkin

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

greenSkin - March 12, 2009 - 23:23
Status:active» fixed

Fixed... finally. :P

#4

System Message - March 26, 2009 - 23:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.