• Resolved rnk123

    (@rnk123)


    Hello all, started getting the following PHP fatal error message for my weekly backups to Amazon S3.

    Error: PHP Fatal error (Error) has occurred during test_storage_settings subaction. Error Message: Call to a member function isUseDualStackEndpoint() on null (Code: 0, line 375 in /home/customer/www/myspanishconnect.com/public_html/wp-content/plugins/updraftplus/vendor/aws/aws-sdk-php/src/S3/S3Client.php)

    Updraft has been running without issues until a few days ago (less than a week as previous backup ran ok). Current version Version: 2.22.4.25. WordPress version 5.9 when the issue appeared, now running 5.9.1 (issue still there)

    AWS keys have been just refreshed as part troubleshooting, but error remains.

    Any thoughts please? Thanks in advance

    Additional site information

    Web server:	Apache (Linux siteground321.com 64-bit #1 SMP PREEMPT Wed Jun 9 16:10:01 EEST 2021)
    ABSPATH:	/home/customer/www/myspanishconnect.com/public_html/
    WP_CONTENT_DIR:	/home/customer/www/myspanishconnect.com/public_html/wp-content
    WP_PLUGIN_DIR:	/home/customer/www/myspanishconnect.com/public_html/wp-content/plugins
    Table prefix:	rysxwc7o5_
    Web-server disk space in use by UpdraftPlus:	2.1 GB refresh
    Peak memory usage:	42 MB
    Current memory usage:	42 MB
    Memory limit:	768M
    PHP version:	7.4.28 - show PHP information (phpinfo)
    MySQL version:	5.7.32-35-log
    Current SQL mode:	NO_ENGINE_SUBSTITUTION
    Curl version:	7.66.0 / SSL: OpenSSL/1.1.1l-fips / libz: 1.2.11
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Can you try to temporarily deactivate all other plugins except UpdraftPlus and then attempt a new backup. Do you still get the same issue?

    Thanks,
    Bryle

    I also suddenly had this problem starting on Feb 16th and just realized today. Probably because of the last few updates, but I don’t know which.

    Thread Starter rnk123

    (@rnk123)

    Hi @bcrodua, thanks for your message, the issue seems to be linked to the Easy Digital Downloads – Amazon S3 plugin that is also active on the site. If we disable the EDD-S3 plugin the UpdraftPlus error goes away.

    Now, both plugins were running fine until a few days ago. Unfortunately disabling the EDD plugin permanently is not an option for this site.

    Any troubleshooting options for UpdraftPlus?

    Thanks

    Plugin Contributor DNutbourne

    (@dnutbourne)

    Hi,

    Apologies for the inconvenience.

    Changes to the UpdraftPlus version of the AWS SDK have resulted in conflicts with a number of other plugins.
    This appears to have been due to issues in how namespacing has been implemented on these plugins.

    I will pass the name of this plugin on to our development team, who are investigating this further.

    In the meantime, I would also recommend contacting the developers of the other plugin and asking them to also investigate.

    Best practice for plugins loading libraries etc., is to only load the library at the point where it is strictly needed.
    (For example, UpdraftPlus only loads the S3 library just before contacting AWS).
    It appears that the other library is loading its code on all page loads, including other plugins’ admin pages.

    Best Wishes,
    Dee

    Plugin Author David Anderson

    (@davidanderson)

    > “Current version: 2.22.4.25.”

    Since you’re using the paid version, please can you open a ticket at https://updraftplus.com/paid-support-requests/ , mention this topic, and ask to be sent our new testing version? We have a testing version which attempts to resolve some conflicts with (and caused by) other plugins.

    David

    Plugin Author David Anderson

    (@davidanderson)

    Do you get the same issue with today’s UD release? If so, when you contact the support channel, please send us a copy of the conflicting plugin (e.g. use wetransfer.com – don’t try to include it directly as it’ll be blocked by filters).

    David

    There also seems to be a conflict with WP Activity Log (Premium) with mirroring enabled to send logs to AWS. When I disabled WP Activity Log backups went thru.

    • This reply was modified 2 years, 9 months ago by Rick Hoekman.
    Plugin Author David Anderson

    (@davidanderson)

    You can try adding…

    define('UPDRAFTPLUS_S3_OLDLIB', true);

    … to your wp-config.php file as a work-around.

    David

    Thread Starter rnk123

    (@rnk123)

    Conflict with Easy Digital Downloads(EDD) – Amazon S3 plugin is still present on newer Version: 2.22.8.25. We just sent the request through the paid support request. Thanks

    • This reply was modified 2 years, 8 months ago by rnk123.
    Plugin Author David Anderson

    (@davidanderson)

    Please add the define mentioned in my most recent post. If you have added it correctly (early in wp-config.php), you can’t see the error message mentioned in the first post of this topic. If seeing a different error message, please post it.

    The issue should also be reported to the suppliers of those plugins. The root problem (leaving aside our work-around) is that they load libraries on every WordPress request (front-end, back-end, AJAX, JSON),including requests solely intended for other plugins, thus polluting the process space. If we did that also, then it wouldn’t just be UpdraftPlus processes that crashed – it’d be every page on your site. (And every page on your site will go down if you install a second plugin doing the same as that). Hence it’s best to get it corrected at source too.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PHP Fatal error when loading to Amazon S3’ is closed to new replies.