• Resolved gramaiemanuel

    (@gramaiemanuel)


    Hello,

    I am unable to create automatic backups to AWS S3.

    I have configured the updraft plugin according to instructions but, when testing the connections, I get:

    PHP Fatal error (Error) has occurred during test_storage_settings subaction. Error Message: Class "Aws\Credentials\Credentials" not found (Code: 0, line 128 in /var/www/html/<WEBSITE_URL>/wp-content/plugins/updraftplus/includes/S3compat.php)

    Plugin version is 1.24.2 .

    WordPress 6.4.3

    On the configuration page I do get two warnings:

    Avertizare:?Your web server's PHP installation does not included a?required?(for Amazon S3) module (Curl). Please contact your web hosting provider's support and ask for them to enable it.

    And:

    Avertizare:?Your web server's PHP installation does not include a required module (XMLWriter). Please contact your web hosting provider's support and ask for them to enable it.

    But I cannot make anything of it since both modules are installed on the EC2 instance where the website is hosted.

    [.....] plus/includes$ php -i | grep "xml"
    /etc/php/8.2/cli/conf.d/15-xml.ini,
    /etc/php/8.2/cli/conf.d/20-simplexml.ini,
    /etc/php/8.2/cli/conf.d/20-xmlreader.ini,
    /etc/php/8.2/cli/conf.d/20-xmlwriter.ini,
    xmlrpc_error_number => 0 => 0
    xmlrpc_errors => Off => Off
    libxml Version => 2.9.14
    libxml
    mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
    xml
    libxml2 Version => 2.9.14
    xmlreader
    xmlwriter
    libxslt compiled against libxml Version => 2.9.10
    [....]plus/includes$ curl
    curl: try 'curl --help' or 'curl --manual' for more information
    

    Any ideas on how to fix?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support vupdraft

    (@vupdraft)

    In the first instance can you try updating the plugin?

    Thread Starter gramaiemanuel

    (@gramaiemanuel)

    Hello @vupdraft , plugin is already at version “1.24.2 “, as I mentioned above.

    Are there any newer versions available?

    Thanks,

    Emanuel

    Hi,

    Could you please look into your “wp-config.php” file to see if there’s any UpdraftPlus-related constant being defined in that file. Typically, the constant has “UPDRAFTPLUS_” prefix in the beginning of its name and please let us know if find it.

    Also, could you please take a look at the WP’s Plugins page to see if there’s a plugin named “UpdraftPlus AWS SDK” installed and activated on your website.

    Have you tried reinstalling the UpdraftPlus plugin?, I suspect that in UpdraftPlus’ previous automatic updates attempt, there was an issue from the WordPress core side which then caused some of the UpdraftPlus plugin files were not fully extracted thus resulting in UpdraftPlus throwing an error due to missing files.

    Thanks
    Anthon

    Thread Starter gramaiemanuel

    (@gramaiemanuel)

    Hello,

    I didn’t find anything containing “UPDRAFT” in the wp-config.php file.

    I didn’t find the “UpdraftPlus AWS SDK” in the installed plugins. I also could’t find it on the available plugin list or by searching on google. Could you please provide the plugind URL, so I can install it?

    I tried reinstalling but it didn’t work.

    Thanks,

    Emanuel

    Hi Emanuel,

    Apologies, I forgot to say that if you find the “UpdraftPlus AWS SDK” plugin installed and activated then you might want to deactivate it. Is there any cloud-storage-related plugins installed on your website, if yes, could you please try to deactivate them?. However, if by deactivating some plugin can resolve the class not found issue, you will still need to contact your hosting provider and speak to them about the following notices:

    Your web server's PHP installation does not included a required (for Amazon S3) module (Curl). Please contact your web hosting provider's support and ask for them to enable it.

    Your web server's PHP installation does not include a required module (XMLWriter). Please contact your web hosting provider's support and ask for them to enable it.

    Those two modules might have been already installed by your hosting provider, but your hosting provider has the ability to disable XMLWriter class and Curl functions which can be done via php.ini configuration file.

    Thanks
    Anthon

    Thread Starter gramaiemanuel

    (@gramaiemanuel)

    Hello,

    No worries, thank you for your assistance.

    No cloud-storage related plugins are installed via wordpress.

    The website is hosted on an AWS EC2 instance.

    I can install and enable/disable what is needed.

    But why shouold I disable XMLWriter and Curl? From the error message I understand that they should be enabled.

    Thanks,

    Emanuel

    Hi Emanuel,

    If you believe those two modules are correctly installed. You could try to check whether the modules are enabled and listed in the phpinfo() report. This information can also be fetched via UpdraftPlus plugin by accessing the “Advanced Tools” -> “Site Information” and then click on the “Show PHP information” link text. If those modules are enabled you will be getting a report similar to the below one:

    However, if you don’t see them listed and enabled in the report then it’s likely an issue related your AWS EC2 instance settings which you should contact their support for further assistance.

    Thanks
    Anthon

    Thread Starter gramaiemanuel

    (@gramaiemanuel)

    Hello,

    Thank you @anthoniusalfred for your feedback. Indeed, curl and xmlwriter were installed on the wordpress instance but not detected by php (I only performed “apt install curl” but I should have installed “apt install php-curl”).

    Greetings,

    Emanuel

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Unable to create automatic backups to AWS S3’ is closed to new replies.