When using PHP Version 4.4.7, after installing and enabling this module I started getting the following error on every page of my site:

"Parse error: syntax error, unexpected '&', expecting T_VARIABLE"

After searching I found some suggestions that PHP5 may solve the issue. Once I upgraded to PHP5 the error went away.

Comments

styro’s picture

Did it say what line of which file the error occurred? (I don't have easy access to PHP 4.4)

jlevis’s picture

I'm really sorry... I forgot to note the whole error... and since the upgrade fixed the problem I can't reproduce it anymore either!

Again, very sorry.

J

styro’s picture

Status: Active » Closed (fixed)
batpurev’s picture

Status: Closed (fixed) » Active

this error came up on php 4.4.7 install

Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /domains/39862/web/info/sites/all/modules/filefield_paths/filefield_paths.module on line 101

there is another site with this error came up by Google search URL is: http://www.node.sk/ (Note that the maintainer of this site might have already solved this problem at the time you read this post!)

batpurev’s picture

hi all,

this problem is due to requirements of FileField_Path (http://drupal.org/project/filefield_paths) and FileField (http://drupal.org/project/filefield) modules. FileField requires PHP 5 to run and FileField_Path is supporting module for FileField so the error occurs.

styro’s picture

Status: Active » Closed (fixed)