Parse error: syntax error unexpected $end in

Hello,

I have this error message on my site when i visit: http://a2wpress.com/
Parse error: syntax error, unexpected end of file in /home/a2wpress/public_html/wp-includes/class-http.php on line 716

http://a2wpress.com/

Please can you help fix this.

  • Adam Czajczyk

    Hey Felix,

    I hope you're well today and thank you for your question!

    It seems like something has truncated the class-http.php file. It's not that uncommon issue, however there's still no good explanation of it. That said, are you using any caching/security plugins? If so, could you please turn them off (following all the necessary steps described in their docs) and see if the error's still occurring?

    If so, please login to your site via FTP and check the contents of /wp-includes/class-http.php file. It should be much longer than the 716 lines (at least 2276 for WP 4.2 version). If it is indeed truncated, please download the very same WP version as you're using at the moment from wordpress.org, extract the archive to your local disk and upload the /wp-includes/class-http.php file to your sever.

    Please be sure to take a full backup copy of your entire install first and let me know if it helped!

    Cheers,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.