Default value assigned to a parameter passed by reference

ags - November 1, 2009 - 20:04
Project:Nodewords
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Parse error: syntax error, unexpected '=', expecting ')' in /home/domain/sites/all/modules/nodewords/nodewords.install on line 340

Linea 340-341: function nodewords_update_6113(&$sandbox = NULL) {
$ret = array();

#1

kiamlaluno - November 1, 2009 - 22:24

The update function argument is the same as reported in http://api.drupal.org/api/function/hook_update_N/6.

#2

kiamlaluno - November 1, 2009 - 22:24
Version:6.x-1.3-beta5» 6.x-1.x-dev

#3

DrupalFan2 - November 13, 2009 - 21:10

Can you solve this now?

#4

kiamlaluno - November 14, 2009 - 12:22
Title:Installation Error» Default value assigned to a parameter passed by reference
Status:active» fixed

Assigning a default value for a parameter passed by reference is only allowed in PHP5; I removed the default value for that parameter.

Thanks for the report.

#5

Lucidity - November 21, 2009 - 19:19

--
solved my problem

#6

webgimp - November 25, 2009 - 12:28

i am a bit of a noob just trying out Drupal for the first time. What do I have to do to fix this problem?

#7

ilo - November 26, 2009 - 10:30

webgimp, I suggest you to get the latest version of the code again. This issue would have been fixed, and others you will find if you keep using the previous version if you don't have the chance to wait for the next stable release.

#8

zigla - November 29, 2009 - 14:09

if in my server php 4 how i can fix ?

#9

System Message - December 13, 2009 - 14:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.