• Hi all. I am needing some serious help because my WordPress website is down. I think it may have been updated and it crashed due to bad coding from php files and syntax errors. Anyway, here’s what my website shows when I click on it. I can’t log in to WordPress and edit it so I am using FTP from my hosting company. Oh, and everytime I correct a syntax error, another one shows up.

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/gener928/public_html/wp-includes/template.php on line 131

    What can I do?

    Thanks!
    Aaron

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    First, stop modifying core files, it’s very likely not them causing the problem, and an incorrect edit could lead to a cascade of failures, as you’re seeing. 🙂

    Try downloading WordPress again and delete then replace your copies of everything except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings. Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    (This may, or may not fix the problem, but is at least necessary if you have been modifying core files.)

    If that didn’t resolve the issue, try manually resetting your plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If neither of those resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter atsin310

    (@atsin310)

    Okay, I will try this. Thank you so much! I will get back on here with results.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My website is down; syntax error’ is closed to new replies.