• I was updating three plugins with the auto-updater, it seemed to go well, and immediately after the site was, and is, “broken”.

    When I attempt to connect to the url, the only message is:

    Parse error: syntax error, unexpected T_FUNCTION in /home3/goofy/public_html/odplonline/wp-content/plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php on line 873

    I don’t think this is a stuck-in-maintenance mode issue, there is not .maintenance file visible in the home directory (I’ve look via ftp).

    Much obliged for your thoughts.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • It appears that the latest version of the WP Maintenance Mode plugin is using a feature in PHP that is not available in PHP 5.2. If you’re server is running that version then this plugin will not work. As you can see on the page for that plugin it says that the plugin “Requires PHP Version: 5.6“.

    To use this plugin you will need to update PHP on your server. This is something you’ll need to ask your host to do. If they refuse or cannot do this, I believe this is grounds for finding another host immediately. PHP 5.2 was released 12 years ago, and support was dropped for it over 7 years ago.

    If you do not need the plugin anymore, then manually deleting the /wp-content/plugins/wp-maintenance-mode/ folder via FTP or the File Manager in your hosting control panel will also solve the issue. If you don’t know how to access either of those your host will be able to help you.

    Thread Starter orthodoxy

    (@orthodoxy)

    Jacob, thank you very much. Deleted the plugin folder and we are back running.

    I will inquire as to the php version and an upgrade.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘site broken: “unexpected T_FUNCTION … wp-maintenance-mode.php on line 873”’ is closed to new replies.