Parse error - Unavailable website/backend

Hi there,

So I got this website which I created about a year ago. Had no issues until now, but it’s the second time since the beginning of August that it goes down and I am not sure to know exactly why. This currently appears instead of the website:

Parse error: syntax error, unexpected ‘>’ in /home/clients/bf90d2a56e73cfdbaa27cf852979eb79/web/wp-includes/functions.php on line 75

Fatal error: Uncaught Error: Call to undefined function wp_die() in /home/clients/bf90d2a56e73cfdbaa27cf852979eb79/web/wp-includes/class-wp-fatal-error-handler.php:212 Stack trace: #0 /home/clients/bf90d2a56e73cfdbaa27cf852979eb79/web/wp-includes/class-wp-fatal-error-handler.php(143): WP_Fatal_Error_Handler->display_default_error_template(Array) #1 /home/clients/bf90d2a56e73cfdbaa27cf852979eb79/web/wp-includes/class-wp-fatal-error-handler.php(50): WP_Fatal_Error_Handler->display_error_template(Array) #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /home/clients/bf90d2a56e73cfdbaa27cf852979eb79/web/wp-includes/class-wp-fatal-error-handler.php on line 212

And it gets fully impossible to access neither the website, nor the backend. The only way around I found was to to restore my website to a previous version through my website host… It’s currently happening right now (fingers crossed it works). Any luck someone can point me in the right direction to make sure this doesn’t happen anymore?

Thank you!

Hello Jonathan,

Thanks for writing in!

The error message is coming from wp-includes directory which also means that either your core WordPress installation is modified or particular file is corrupted. Above error message has nothing to do with X Theme as WordPress themes goes under /wp-content/ folder.

Please do following:

  1. Download fresh copy of WordPress from WordPress.org and extract the files.
  2. Using FTP software like Filezilla navigate under /wp-includes/ directory.
  3. Then upload the files of /wp-includes/ folder from step 1 and upload them under /wp-includes/ folder of your server.

In case above step is not solving the problem then I would suggest you to reinstall WordPress on your server.

Thanks.

Hi there,

Many many thanks for your help, it’s greatly appreciated!

I’ll look into it and hopefully this should resolve it. Thank you!

You’re always welcome.

Cheers!

EDIT: I found the issue! One of the tag was not closed in my functions.php file for whatever reason. I made sure to reupload that file from a clean wordpress installation file and everything is now running nice and smooth. :slight_smile:

Hi @Prasant,

Thanks again for your help - I did follow the steps and indeed the issue probably came from there, as my website was fully restablished and back online once I uploaded the WP files in /wp-includes/.

However, the website went back to the same state with the exact same error shortly after - so I’m wondering the following: can the issue be caused by the interactions between X theme and Wordpress? Or maybe I should just try to fully reinstall wordpress?

Sorry to bother you with this, this is very stressful for me as I don’t have that much knowledge about how this all work!

Hello Jonathan,

Thanks for updating the thread. :slight_smile:

If the website is rolling back the earlier stage then please do following:

  1. Staging server: Before reinstalling WordPress on live server, I suggest you to setup a staging server and over there reinstall WordPress and test the setup for few days. See if it’s working fine. You can take a look at following resource to check out.

Once every thing is confirmed and working fine on staging, then you can perform the same action on the live server.

In case website is still rolling back then I suggest you to get in touch with the hosting provider as the problem you are facing is not quite related with X Theme and rather hosting support team are better placed to assist you in this.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.