Categories

Featured templates

How to fix PHP syntax errors in WordPress

Carey Burns February 28, 2018
Rating: 5.0/5. From 1 vote.
Please wait...

Hello, our support is ready to present you a new tutorial that shows how to fix the PHP syntax errors in WordPress.

Such errors usually appear after editing a PHP file or updating a plugin, and start with “Syntax error, unexpected…”

You are most likely locked out of your admin panel and cannot access it when such issue occurs.

  1. In order to fix the syntax error, you need to edit the code that caused this error.

  2. Connect to your server via FTP or hosting control panel and use FileManager. Navigate to the theme file that needs editing. In case you are not sure what file to edit, just look at the error message. The error will tell you exactly which file and which line you need to edit.

  3. You will need to either remove it or edit it to fix the syntax.

  4. Once you are done with removing/editing the file, save changes in it.

  5. Clear browser cache and refresh the page. Your site should be working now!

  6. You may be searching for premium templates to put up your very own website, so take a look at WordPress themes for a wide choice of web design solutions.

Wordpress Premium Themes
This entry was posted in Monstroid Tutorials, WordPress Tutorials and tagged error, php, syntax errors. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket