Looks like this: http://drupal.org/node/221730
Hi there,
I just copied my Drupal installation from my test server (PHP5) to my live server (PHP4). I get this error:
Parse error: syntax error, unexpected '=', expecting ')' in /hsphere/local/home/username/domain.tld/sites/all/modules/filefield/filefield.module on line 211
I read the other issue, which is marked won't fix, but I really want to ask the maintainer of this module to rethink his opinion. I really need filefield, and I find it very strange that Drupal, with all 20 other modules is working fine on PHP4, but filefield needs PHP5?
I am running PHP 4.4.4. Please help!
ps: I noticed that if I change &$items = array()
in the parameters to $items = array()
(remove the ampersand) the error disappears. I am not sure if the module is still working though.
Kind regards,
Baris Wanschers
Comments
Comment #1
jpetso CreditAttribution: jpetso commentedDupe of #221730: PHP 4 parse error in filefield_meta.
In short, sorry, PHP 4 is not supported for 5.x-2.3 and later, and yeah, this is even stated on the project page.