Sudden Parse Error - Can't Login


#1

Wise veterans - I’ve been setting up a new Wordpress site hosted by DreamHost for about a week. A theme was purchased, installed successfully and was near launch when today I can’t see my site nor log in to the Wordpress admin page. I instead get only this:

Parse error: syntax error, unexpected ‘!’, expecting variable (T_VARIABLE) in /home/wp_933ian/gobrightmedia.com/wp-includes/nav-menu-template.php on line 34

Can someone give me a way to get around the gobrightmedia.com/wp_admin URL so I can find out what happened? What options to I have for not losing all my customization?


#2

It’s an issue with the PHP in that file.

This could be caused by:

  1. Editing WordPress core files (always a bad idea)
  2. An incompatible plugin
  3. An incompatible theme

The solution is to simply undo whichever you have done.

If you edited WP core files, upload an unaltered file via FTP.
Temporarily disable your plugins, by FTPing to your site and renaming your plugins folder
Delete, again via FTP, the incompatible theme.