Support » Plugin: UpdraftPlus WordPress Backup Plugin » E_COMPILE_ERROR was caused in line 216 of the file updraftplus.php

  • Resolved Scott

    (@scottblackopsca)


    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, UpdraftPlus – Backup/Restore.

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 216 of the file
    …./wp-content/plugins/updraftplus/updraftplus.php. Error message: require_once(): Failed opening required ‘…/wp-content/plugins/updraftplus/options.php’ (include_path=’.:/usr/local/php5_6/lib/php’)

    WP 5.2.1
    PHP 7.1
    UpdraftPlus Version 1.16.14

    • This topic was modified 2 years ago by Scott.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi,

    It’s most likely that someone has hacked your site. When someone has broken in, they (or rather, their automated tools) usually then look for popular plugins (UD has over 2 million installs) to insert their malicious code into. You should manually inspect the contents of that file. It’s certain that the version distributed from wordpress.org, last released 4 weeks ago, does not have a PHP syntax error in, otherwise we’d have been hearing about it constantly since the release (even if it had managed to get past the automated testing for such things; either at our end, or wordpress.org’s end (you can’t upload code with syntax errors, it’s checked at their end too)).

    For good measure, no compile error on a pristine version of that file on PHP 5.6 (mentioned in the message you’re seeing) or PHP 7.1 (the version you mention as running):

    # wget -q https://downloads.wordpress.org/plugin/updraftplus.1.16.14.zip
    # unzip -q updraftplus.1.16.14.zip
    # php56 --syntax-check updraftplus/updraftplus.php 
    No syntax errors detected in updraftplus/updraftplus.php
    # php71 --syntax-check updraftplus/updraftplus.php 
    No syntax errors detected in updraftplus/updraftplus.php

    Actually, based on the message, it’s also possible that you don’t have UD fully installed, that the file updraftplus/options.php is not there.

    David

    Thread Starter Scott

    (@scottblackopsca)

    I have confirmed that both
    …/wp-content/plugins/updraftplus/updraftplus.php
    and
    …/wp-content/plugins/updraftplus/options.php
    are both identical to a new copy downloaded from the wordpress repository.

    and a wordfence scan confirms all plugins match their repository versions.

    Line 216
    if (!class_exists(‘UpdraftPlus_Options’)) require_once(UPDRAFTPLUS_DIR.’/options.php’);

    Confirmed that the options.php file is /wp-content/plugins/updraftplus/options.php

    Not sure why I see php56 in that include patch from the wordpress error reporting.

    Thread Starter Scott

    (@scottblackopsca)

    I got the first alert May 11 @ 12:15am local time (following an upgrade to WP 5.2)
    since then I have received the alert 5 more times
    May 12 3:49pm
    May 17 10:12am
    May 21 10:53pm
    May 23 10:29pm
    May 29 7:00am

    Plugin Author David Anderson

    (@davidanderson)

    Does your web host deploy a PHP opcode cache? If so, it’s faulty.

    Thread Starter Scott

    (@scottblackopsca)

    PHP opcode cache has been flushed, I will wait an see if the issue happens again over the next week or so.

    Thread Starter Scott

    (@scottblackopsca)

    unfortunately it’s still happening every 3-4 days any other suggestions?

    Plugin Author David Anderson

    (@davidanderson)

    If you turn off the PHP opcode cache, does it stop happening?

    Thread Starter Scott

    (@scottblackopsca)

    Yes, opcode cache was turned off 2 days ago, had another error this morning.

    Is there any update on this? One of my sites has this issue too (identical message).

    Can it be the PHP version? My hosting lets me choose 7.0, 7.1, 7.2 or 7.3… Please advise, thx!

    WP 5.2.1
    PHP 7.0
    UpdraftPlus Version 1.16.15

    Thread Starter Scott

    (@scottblackopsca)

    I tried many php versions
    all the opcode clear / disable as you can see
    uninstall / reinstall
    manually confirming the code matched the repo

    In the end I changed hosting providers, sadly I have to side with David and say if you have tried all of the above it’s likely a bad host.
    Mine WAS godaddy but isn’t anymore and won’t be again.

    Plugin Author David Anderson

    (@davidanderson)

    If the PHP error message says that a file is not present, and if the file certainly is present, then it’s definitely a problem at the PHP layer. i.e. If the hosting company says “there’s no problem here”, then that’s a non-sensical thing for them to say, given that PHP is giving out the errors.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘E_COMPILE_ERROR was caused in line 216 of the file updraftplus.php’ is closed to new replies.