Title: Cloudfront CDN Issue
Last modified: January 13, 2022

---

# Cloudfront CDN Issue

 *  Resolved [bling007](https://wordpress.org/support/users/bling007/)
 * (@bling007)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/cloudfront-cdn-issue/)
 * Site facing internal error.
 * Error Details
    ============= An error of type E_ERROR was caused in line 158 
   of the file /var/www/html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-
   php/src/Credentials/CredentialProvider.php. Error message: Uncaught Error: Call
   to undefined function GuzzleHttp\Promise\promise_for() in /var/www/html/wp-content/
   plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Credentials/CredentialProvider.
   php:158 Stack trace: #0 /var/www/html/wp-content/plugins/w3-total-cache/vendor/
   aws/aws-sdk-php/src/ClientResolver.php(443): Aws\Credentials\CredentialProvider::
   fromCredentials(Object(Aws\Credentials\Credentials)) #1 /var/www/html/wp-content/
   plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/ClientResolver.php(323): Aws\
   ClientResolver::_apply_credentials(Object(Aws\Credentials\Credentials), Array,
   Object(Aws\HandlerList)) #2 /var/www/html/wp-content/plugins/w3-total-cache/vendor/
   aws/aws-sdk-php/src/AwsClient.php(199): Aws\ClientResolver->resolve(Array, Object(
   Aws\HandlerList)) #3 /var/www/html/wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.
   php(43): Aws\AwsClient->__construct(Array) #4 /var/www/html/wp-content/plugins/
   w3-total-cache/CdnEngine_Mirror_CloudFront.php(142): W3TC\CdnEngine_Mirror_CloudFront-
   >_init() #5 /

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/cloudfront-cdn-issue/#post-15249051)
 * Hello [@bling007](https://wordpress.org/support/users/bling007/)
 * Thank you for reaching out.
    Can try downgrading W3 Total Cache to 2.1.2. There
   could be a bug in the version of the Aws lib or a different class loaded by the
   autoloader due to another Aws lib loaded for another plugin. Thanks!
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cloudfront-cdn-issue/#post-15277152)
 * No activity for a week.
    Marking topic as resolved

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

The topic ‘Cloudfront CDN Issue’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/cloudfront-cdn-issue/#post-15277152)
 * Status: resolved