Question

I made an edit in the template's functions.php and now I can't access my website.

I know I have to fix the problem from the Cpanel but I'm now scared to do anything because I've tried once and the screen started flashing.

This is the error I get:

Parse error: syntax error, unexpected '<' in /.../wp-content/themes/oblique/functions.php on line 291

Is there anyone that can help me with this?

Was it helpful?

Solution

Do you have the original copy of the theme's functions.php file? Replace it in order to restore access to your website.

But, as the error indicates, you have an unexpected < in your code on line 291. This means that there was an extra character added that wasn't necessary and throws off your code.

Open the functions.php file from your theme located in /wp-content/themes/oblique/ on a text editor that support your text editor (Notepad++, Sublime Text, etc.) scroll down to that line number and you should see the issue. Below is an example of a textpad with line numbers to give you a better visual:

Sublime Text

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top