WordPress.org

Ready to get started?Download WordPress

Forums

Parse Error: Theme.PHP (10 posts)

  1. trialofchampions
    Member
    Posted 9 months ago #

    Out of nowhere I got this error:

    Parse error: syntax error, unexpected '"', expecting T_STRING in /home/content/27/8813927/html/wp-includes/theme.php on line 27

    right when you go to http://www.OttawaRickshaws.ca. I can't even log into the theme now. I used FileZilla to see if I can replace theme.php but I don't know what to replace it with.

    I'm having trouble deciphering what the error warning is telling me. Is there an extra " somewhere?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    What version of WordPress are you using?

  3. trialofchampions
    Member
    Posted 9 months ago #

    Having a hard time finding that without being able to log in to WP. Is there a file I can check through FTP access to get you that info?

    I updated in March if that helps.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Have a look in wp-includes/version.php

  5. trialofchampions
    Member
    Posted 9 months ago #

    Thanks -

    It's version 3.5.2

  6. trialofchampions
    Member
    Posted 9 months ago #

    This is Line 27 in Theme.php:

    echo(\"123\");

  7. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Try re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

  8. trialofchampions
    Member
    Posted 9 months ago #

    Is there a risk of losing Blog content or is that in WP-Content?

  9. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Providing that you avoid the wp-content folder, there will be no loss of content.

  10. trialofchampions
    Member
    Posted 9 months ago #

    You're a hero! I started by just replacing Themes.PHP and that was enough. I've learned something new today.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.