• Resolved kneegroh

    (@kneegroh)


    Hello,

    Its safe to say that I’m a complete novice at WP, please be gentle..

    Today i was in functions.php trying to tweak two things and ended up changing a line or two. Tweaked what I thought I needed to, updated, checked out what I thought I had done, didn’t work, went back in and changed the two things i had changed back to what they initially read, updated and now I get this when I try to do anything on the site..

    “Parse error: syntax error, unexpected ‘>’ in /home/content/71/10243371/html/wp-content/themes/CherryFramework/functions.php on line 368”

    I should also mention that what I was trying to tweak was no where near line 368. Please help.

    funtions.php as copied before I made any changes:

    [Excessive code removed]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Where did you download that theme from? These forums only support themes from the repository on this site – so you should ask the people you got it from for help, or download a new copy of the theme.

    Don’t forget <> generally are for matching tags. Its possible you missed something 50 lines BEFORE line 368, and the system is looking for a tag match. The arrow on 368 highlights a matching tag error, from a previous location.

    pay special attention to all the <?php and ?> tags

    start at line 368 and go up to find the error. Its also nice if your editor tool does autoformating, that way you can immediately see where a tag error might occur. I use ‘sublime’, but there are lots of different editor tools out there. Find one that does php, css and html files. Makes life much easier.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error: syntax error, unexpected '>'’ is closed to new replies.