- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
How to fix PHP syntax errors in WordPress
February 28, 2018
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.
In order to fix the syntax error, you need to edit the code that caused this error.
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.
You will need to either remove it or edit it to fix the syntax.
Once you are done with removing/editing the file, save changes in it.
Clear browser cache and refresh the page. Your site should be working now!
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.