Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#4 | widg.patch | 403 bytes | Jax |
Comments
Comment #1
yktdan CreditAttribution: yktdan commentedsomeone said this is a problem because using a php 5 feature that is illegal in php 4.
Comment #2
shadyman@erroraccessdenied.com CreditAttribution: shadyman@erroraccessdenied.com commentedHi!
I'm using PHP5 and it does this to me.
Comment #3
shadyman@erroraccessdenied.com CreditAttribution: shadyman@erroraccessdenied.com commentedWhoops, ignore my last post. I was running PHP4 by accident :) PHP 5 fixes all.
Comment #4
Jax CreditAttribution: Jax commentedPHP4 does not support a foreach with reference. In PHP4 it should be written differently but in this case the & is totally unnecessary.
Comment #5
Ralf Skirr CreditAttribution: Ralf Skirr commentedSo how can I fix this if I don't have php5 but only php4 on my server?
Regards,
Ralf
Comment #6
Jax CreditAttribution: Jax commentedCheck out the patch I provided. Remove the ampersand on line 45 of widgeditor.module.
Comment #7
Ralf Skirr CreditAttribution: Ralf Skirr commentedThanks, after removing the ampersand in line 45 the module works perfectly. :-)
Comment #8
meba@drupal.org CreditAttribution: meba@drupal.org commentedPlease note this doesn't work even in PHP5.1.6
Patch is correct
Comment #9
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedThanks, fixed in DRUPAL-5 branch.
Comment #10
(not verified) CreditAttribution: commented