• tgraasch

    (@tgraasch)


    I was editing the child theme I created for my site (based off of twenty eleven). Specifically I was adjusting the functions.php file but I must have entered some coding incorrectly and now I am unable to access my site or any of the dashboard. When I try to access any of the site, etc. I get the following error message,

    Parse error: syntax error, unexpected ‘<‘ in /hsphere/local/home/johnmroy/frontiersafar.org/wp-content/themes/far2/functions.php on line 595

    Here is a link to the site: http://frontiersafar.org/

    I’m still fairly new to WordPress, so please bear with me if I’ve made a rookie mistake. Could someone please help put me on the right track towards fixing this issue?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Josh

    (@josh401)

    It doesn’t look like the error was in your child theme… unless you have almost 600 lines of text in your child theme functions.php file.

    Instead, it looks like it’s your main themes functions.php file which is wrong.

    Regardless, you need to use FTP of your hosts CPanel to gain access to your sites file directories. Then, navigate to www.yoursite.com/wp-content/themes/far2/functions.php

    Download this file and open it in a text editor… preferably one with numbered lines (notepad++ is a nice free one).

    Go to line 595 in your functions.php file, and copy and paste the syntax from that line here. Unless you can remember what you changed, in which case just change it back and re-upload the file, replacing the original.

    Thread Starter tgraasch

    (@tgraasch)

    Thanks for the help! I’m going to try this in the morning and let you know how it goes.

    I’m so frustrated I made this mistake….guess it’s a learning opportunity!

    Josh

    (@josh401)

    There you go. Chalk it up to experience!

    Basically the error above is telling us there is an “<” that is either in the wrong place, or doesn’t belong.

    Check the line mentioned (595) and see if anything “jumps” out at you.

    Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Site syntax error/parse error’ is closed to new replies.