Hello everyone,

I tried to updated filefield from 3.3. to 3.5. I have php 5.3 installed and as soon as I made the CVS update to 3.5, I received an internal server error.
The apache log says:
[Fri Jun 25 13:25:30 2010] [error] [client ] PHP Parse error: syntax error, unexpected T_IS_IDENTICAL in
/sites/all/modules/filefield/filefield.module on line 984

Best regards
Sera

Comments

quicksketch’s picture

There shouldn't be any parse errors in the 3.5 version. Drupal 6 is not compatible with PHP 5.3.

quicksketch’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

Please reopen if this problem is reproducible. There shouldn't be any parse errors.

Sera’s picture

Version: 6.x-3.5 » 6.x-3.7
Component: Code » Miscellaneous
Status: Closed (fixed) » Active

I found out what the mistake was, or the source of this error:
I installed 3.3 via CVS and upgraded it to 3.5 (and later to 3.6. and now to 3.7) via "CVS update -r DRUPAL-6--3-7 -dP"

While doing so, the merge of the new or changed lines wasn't done correctly. While looking into the filefield.module I noticed that there where lines like
"=========================" or that the <?php tag was declared more than once.

After deleting the whole folder and downloading the complete version 3.7 via CVS everything was fine again :)

So I guess something went wrong with the CVS update.

I hope this helps a little bit more.

Sera’s picture

Title: filefield update from 3.3 to 3.5 causes php syntax error » filefield CVS update from 3.3 to 3.5/3.6/3.7 causes php syntax error

*changed the title to fit better to the problem*

quicksketch’s picture

Version: 6.x-3.7 » 6.x-3.5
Status: Active » Fixed

Thanks for the update Sera.

Status: Fixed » Closed (fixed)

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