How to Fix Syntax Error in WordPress?

Fix Syntax Error in WordPress

Are you facing syntax error in your WordPress blog. No worry this guide will teach you to fix syntax error in your WordPress site easily.

Fix Syntax Error in WordPress

If you are seeing syntax error in WordPress site then you might have added the incorrect line of code from the WordPress editor or installed faulty plugin or theme.

Adding code incorrectly e.g. missing bracket or comma causes this error. It can also cause by installing or updating plugin and theme in your WordPress blog.

This error is very common and can be fix easily removing or replacing the error code following the path as shown below.

Parse error: syntax error, unexpected ‘;’ in /home1/dip777/public_html/wp-content/themes/hueman/functions.php on line 16.

The error show the particular line has to be edit or remove. You can remove or add the correct line of code in function.php file using FTP client such as FileZilla, CoreFTP or Cyberduck.

Main Cause and Solution of Syntax Error

If you have seen this error after installing or updating plugin or theme then you have to deactivate the plugin or themes. You can refer to this guide on how to deactivate all the plugin.

If you have added the code from your WordPress dashboard in editor section then you might have locked out to access wp-admin and can only access removing added line of code using FTP client.

How to Fix Syntax Error using FTP Client?

FTP client such as FileZilla is the easiest way to access the web server file. Download and Install FileZilla into your computer. Connect FTP client to your web server using login credential.

FTP login

Once connected, double click on public_html folder from the right side and follow the path shown in the error screen.

Ftp sections

Parse error: syntax error, unexpected ‘;’ in /home1/dip777/public_html/wp-content/themes/hueman/functions.php on line 16.

Open wp-content then themes folder. Double click on your current theme folder e.g. Twenty Fifteen to open. You will see function.php file, right click on function.php and click on view/edit.

Fix Syntax Error in WordPress

Parse error: syntax error, unexpected ‘;’ in /home1/dip777/public_html/wp-content/themes/hueman/functions.php on line 16.

Remove the error line of code or replace with the correct code. If you see the error code above it says the error in particular line 16. When you view/edit the file, your editor such as notepad will not show the line number to identify easily. You can count the line manually and correct the error. After correction save the file.

You will see the message to upload the file into the server. Click on yes button that will upload the file back to the server.

Fix Syntax Error in WordPress

Once you remove the error code and save the changes to your web server you will see your blog without syntax error.

Hope this guide on How to fix Syntax Error in WordPress Site is helpful. If this guide helped you, do not hesitate to share and follow us on facebook and twitter.

You may also like...