Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36504
    Dave Hornford
    Guest

    When we try an upload an image we are getting this error
    [22-Apr-2021 19:49:07 UTC] PHP Fatal error: Uncaught Error: Class ‘Aws\Credentials\Credentials’ not found in /var/www/***/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php:32
    Stack trace:
    #0 /var/www/***/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php(64): W3TC\CdnEngine_Mirror_CloudFront->_init()
    #1 /var/www/***/wp-content/plugins/w3-total-cache/Cdn_Core.php(272): W3TC\CdnEngine_Mirror_CloudFront->purge(Array, Array)
    #2 /var/www/***/wp-content/plugins/w3-total-cache/Cdn_Plugin.php(215): W3TC\Cdn_Core->purge(Array, Array)
    #3 /var/www/***/wp-includes/class-wp-hook.php(294): W3TC\Cdn_Plugin->delete_attachment(8009)
    #4 /var/www/***/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #5 /var/www/***/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #6 /var/www/***/wp-includes/post.php(6054): do_action(‘delete_attachme…’, 8009, Object(WP_Post))
    #7 /var/www/***/wp-admin/includes/ajax-actions.php(2445): wp_delete_attach in /var/www/***/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php on line 32

    It demonstrates in the user-land with an error that the server does not have sufficient capacity. This is in the media upload page.

    #36529
    Marko Vasiljevic
    Keymaster

    Hello Dave,

    Thanks for reaching out, and thanks for choosing W3 Total Cache.
    The mentioned class is a basic implementation of the AWS Credentials interface that allows callers to pass in the AWS Access Key and AWS Secret Access Key in the constructor.
    Is the CDN enabled in Performance>General settings and have you added the access key and secret key? Have you configured the CDN in W3 Total Cache?
    Thanks!

    #36545
    Dave Hornford
    Guest

    We have enabled CDN and credentials.
    I just re-enabled the Cloudfront at General Settings, to screenshot Test Distribution. The test failed.

    When I tried to save setting on page this error was created

    #7 /var/www/***/wp-admin/admin.php(237): in /var/www/conexiam.com/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php on line 32
    [23-Apr-2021 14:24:56 UTC] PHP Fatal error: Uncaught Error: Class ‘Aws\Credentials\Credentials’ not found in /var/www/conexiam.com/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php:32
    Stack trace:
    #0 /var/www/***/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php(64): W3TC\CdnEngine_Mirror_CloudFront->_init()
    #1 /var/www/***/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php(109): W3TC\CdnEngine_Mirror_CloudFront->purge(Array, Array)
    #2 /var/www/***/wp-content/plugins/w3-total-cache/CacheFlush_Locally.php(115): W3TC\CdnEngine_Mirror_CloudFront->purge_all(Array)
    #3 /var/www/***/wp-content/plugins/w3-total-cache/CacheFlush.php(97): W3TC\CacheFlush_Locally->cdn_purge_all(Array)
    #4 /var/www***/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.php(376): W3TC\CacheFlush->cdn_purge_all(Array)
    #5 /var/www/***/wp-content/plugins/w3-total-cache/Generic_AdminActions_Flush.php(233): W3TC\Generic_AdminActions_Flush->flush_cdn(Array)
    #6 /var/www/*** in /var/www/***/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php on line 32

    Got the critical error from WordPress. Returned to General and disabled CloudFront.

    #36562
    Marko Vasiljevic
    Keymaster

    Hello Dave,
    It appears that there is an issue with the AWS setup. Please double-check the configuration on the Cloudfront and make sure that everything is set up properly.
    Please check our FAQ for more details.
    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Uncaught ClouFront error Class ‘Aws Credentials Credentials’ not found’ is closed to new replies.