• Hi all,

    I updated a few plugins on my client’s WP site and now I have a syntax error “Parse error: syntax error, unexpected T_FUNCTION in /home/content/42/9107542/html/wp-content/plugins/elementor/elementor.php on line 55”.

    The site is using a version of PHP: 5.2.17 which is old. I cannot access the dashboard. I tried FTP access and was not able to login using FileZilla using my regular login credentials.

    At this point I have no clue how to fix this. Can anyone advise? I would very much appreciate it.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @kenobbi

    Try MANUALLY Disabling the plugins

    To do this, you will need access to your website’s filesystem through your control panel’s file manager, FTP or direct shell access via SSH. Follow these steps:

    Navigate to/wp-content/plugins

    Find the directory/folder of the plugin causing the problem

    Rename the folder (elementor)

    You should now be able to login to WordPress, and you will receive a small error message indicating that the plugin failed to load.

    Hope this will help.

    Thanks.

    Looking at the affected code in the Elementor Page Builder plugin I can tell that it is using a PHP feature that is not available in 5.2. According to the plugin page you’ll need to be running at least 5.4 to continue using this plugin. Since you’re running such a low version of PHP, I’d keep an eye on this bit of info in the plugin repository before updating anything.

    While WordPress itself is compatible with PHP 5.2, the same can’t be said for plugins. Plugins can have any minimum required version that they like and WordPress doesn’t currently have a mechanism for preventing updates to a version that’s not compatible with your server. This is why it’s important to stay up to date with PHP.

    If your host can’t update your PHP to at last 5.6 (push for 7) then change host. It’s inexcusable to only offer 5.2 at this point and absolutely an offence worth changing hosts over.

    In the meantime, use wbcomdesigns’ method for disabling the plugin. Since it’s a page builder plugin, this is likely going to mess up the front end of your site. So get on that PHP issue ASAP.

    EDIT: The plugin appears to check for a compatible PHP version and deactivates itself if it doesn’t meet the requirement. So for some reason PHP_Version mustn’t be working or correct on your server. Something else to talk to your host about…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Syntax Error on WP site’ is closed to new replies.