Hi,

I have a bit of an urgent problem that I would really appreciate some help with. My Drupal website is suddenly down and the browser is showing the following error message:

Parse error: syntax error, unexpected end of file in /home/egerroth/public_html/includes/form.inc on line 2869

I have looked in the ftp but I do not have that URL set up. I have

eger-roth.co.uk/html/includes/form.inc

I have downloaded the form.inc file from the above URL and have opended it in Dreamweaver and cannot see any syntax errors on line 2869. I have also downloaded a new copy of Drupal and have replaced the form.inc file with the new one but I still get the same error message.

It all seems rather odd as no changes have been made to Drupal recently (no updates, added plugins etc)

Any help would be really appreciated!

Thanks

Comments

Jaypan’s picture

Sounds like the end of the file is missing. Re-upload a new copy of the file.

Podflower’s picture

I tried uploading a new copy of the form.inc file from a fresh download of Drupal but that didn't work

lolandese’s picture

I suspect the cause is likely starting with a "No space left on device" error (check you deploy logs). Subsequent logs then show "Parse error: syntax error, unexpected end of file in ..".

When pulling code from a repo on a server with insufficient space it might result in incomplete files where the end is missing, thus resulting "unexpected end of file" errors.

If this was the case here it means it would have nothing to do with the module code itself.