How to fix if you have an Parse error functions.php notification, which is usually “Parse error: syntax error..functions.php online..”, it is mostly happened after you added any codes to your functions.php incorrectly in your WordPress dashboard.
So let’s say you’ve just installed a plugin, and you followed the instruction to paste some codes in your functions.php file, and you added the code there, refreshing your browser, and suddenly you will get this following message:
Parse error: syntax error, unexpected '<' in /home/webinternet/public_html/(my website)/wp-content/themes/yourthemename/functions.php on line 450
First of all, do not be panic. I know whenever you can’t login to your dashboard and you will just see white screen with above error message, you will probably think your whole blog is broken. No it is not. If your error has error establishing database, then read this link instead.
Read the error message carefully
There are many ways to fix it. Re-read the error message again. We use the example above, it said, inside ../wp-content/themes/yourtheme/functions.php on line 450. Pay attention on the word I highlighted to bold fonts. Notice, “themes” word in path, it means inside your theme.
Parse error: syntax error, unexpected $end in /home/content/11/79741933/html/youraccountname/wp-includes/functions.php on line 5435
Notice the difference between the bold fonts highlighted text between the first and the second of both error messages. The second one is in your wp-includes/functions.php. It is in fact a different file. So if you read your error message, and you read wp-includes, then you need to upload the fresh functions.php of WordPress, if it does not work, you will need to re-install or manually update your WordPress core files.
But if you read it inside your theme then follow this tutorial.
Try these two methods first
1. First, try download fresh functions.php file of your theme, and upload it to your theme folder.
2. If the 1st method above does not work? Then look for that line error code (in this example, it says line 450), and clean the code.
If two methods above did not work, try this latest method. This is the easiest, especially for beginners is delete or rename theme folder. This tutorial is using this easiest and fastest way.
Last method to fix this parse error functions.php
1. Go in to your cPanel, and then “File Manager” and navigate to where you installed WordPress. Let’s say you install it in the root, so go to the root and look for “wp-content“.
2. Once you find this folder, look for your theme name, and rename or delete it. In this tutorial, I renamed it.
This will switch your WordPress blog theme to the default theme.
I hope this will be a help if you ever encountered this similar problem, and it is always good if you want to modify something, backup your database and theme files to your computer, or backup your website manually without FTP.