I simply upload the folder into the modules directory and this is the error that occurs:

"Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/zevgreen/public_html/yiot/test/modules/widgeditor/widgeditor.module on line 45"

I didn't even activate the module yet. Help.

Thanks!
Z

CommentFileSizeAuthor
#4 widg.patch403 bytesJax
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yktdan’s picture

someone said this is a problem because using a php 5 feature that is illegal in php 4.

shadyman@erroraccessdenied.com’s picture

Hi!

I'm using PHP5 and it does this to me.

shadyman@erroraccessdenied.com’s picture

Whoops, ignore my last post. I was running PHP4 by accident :) PHP 5 fixes all.

Jax’s picture

Status: Active » Needs review
FileSize
403 bytes

PHP4 does not support a foreach with reference. In PHP4 it should be written differently but in this case the & is totally unnecessary.

Ralf Skirr’s picture

So how can I fix this if I don't have php5 but only php4 on my server?

Regards,
Ralf

Jax’s picture

Check out the patch I provided. Remove the ampersand on line 45 of widgeditor.module.

Ralf Skirr’s picture

Thanks, after removing the ampersand in line 45 the module works perfectly. :-)

meba@drupal.org’s picture

Please note this doesn't work even in PHP5.1.6

Patch is correct

Gurpartap Singh’s picture

Status: Needs review » Fixed

Thanks, fixed in DRUPAL-5 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)