• On a multi-WP site instance that hosts around 100 sub-domain sites, only one is giving the following error. Even with WP_DEBUG set to true, no additional error output is given.

    ParseError thrown
    syntax error, unexpected ‘new’ (T_NEW)

    I was advised by the users for the impacted site that they were uploading content to the media library when it happened.

    By way of an extremely simplistic if statement (to output a character if the host name matches) and working my way through the includes in the WordPress code, I get to a point where the character is no longer printed (only the error) if I put the if statement after the require line for the wp-includes/load.php file. Looking at the wp-includes/load.php file it’s a bunch of functions and going through those one-by-one seems like it would take a substantial amount of time and as a medium level PHP programmer, I don’t know that I could reasonably work out where the error is coming from.

    Absolutely any help or guidance on how to track down where this error’s coming from would be more than appreciated.

    • This topic was modified 5 years, 7 months ago by James Huff. Reason: moved to Networking WordPress since this is a Multisite issue
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Sorry for the slow reply. It’s odd that a specific location is not indicated in the error message. load.php is what loads theme and plugin code, the problem is likely a theme or plugin with outdated code. To narrow down the culprit, you need to be able to reliably cause the error to occur. Selectively deactivate themes and plugins until the error goes away.

    If that’s impractical, you could try updating everything in the hopes the error has been corrected in the latest versions.

    Dealing with an error on your WordPress site? due to how little information they give you, the ‘parse error’ iMessage on PC (or ‘syntax error’) is Instead of loading your page, a simple message will appear, which explains what the issue is and where it occurred. As such, there are several methods for troubleshooting it.

    • This reply was modified 5 years, 3 months ago by williamsgomez.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multi-WP Parse Error On Single Site’ is closed to new replies.