Not sure how or why but my clients site stopped working and I keep getting this error
Parse error: syntax error, unexpected ';', expecting '(' in /home/ndwindpr/public_html/sites/all/modules/htmlpurifier/htmlpurifier.module on line 170

It started with him not being able to upload an image to an imagefield in some content.
I tried to upload the image but the field would hang on upload. The image was on the server, but the script would just spin, no title field, no thumbnail, etc.
I searched for a reason and some suggested making sure the php mem limit was high enough.
I set it to 128MB just to make sure
When I tried to come back to the site all I get now is this error.

Very critical, it's a client site, a journalist who just had an article in the Seattle Times, so I'm sure people are looking at it.


ezyang’s picture

Could you post the contents of the file around the line number mentioned in the message here? You could also try reinstalling the module.

jhenson’s picture

Still don't know what caused the error, but I've restored from a backup and it's gone now. Hopefully it won't come back when I upgrade again :D

abaloo’s picture

Does anyone have an answer on this please? My site has just gone down in this way.

ezyang’s picture

abaloo: Could you attach the contents of htmlpurifier.module to this ticket? Thanks!

nfuids’s picture

I had the same issue.

It turned out that when updating my site, I must have deleted the .htaccess (overwritten it) and it made it so my domain was using PHP 4 instead of PHP 5. Switching it back to PHP5 fixed the problem.

Hope this help!

ezyang’s picture

Title:parse error» Give friendly error message if running under PHP4
Priority:Critical» Normal

Ok, renaming the bug accordingly.

ezyang’s picture

Status:Active» Fixed

Fixed in CVS.

Status:Fixed» Closed (fixed)

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