Title: CloudFront Authentication Issue
Last modified: December 10, 2024

---

# CloudFront Authentication Issue

 *  Resolved [seotaro](https://wordpress.org/support/users/seotaro/)
 * (@seotaro)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/cloudfront-authentication-issue/)
 * Hello,
 * I’ve set up CloudFront with an origin pull configuration connected to W3 Total
   Cache.
 * I manually configured the distribution, subdomain, and IAM, and I can confirm
   that static files are being served correctly through CloudFront.
 * However, the problem is that authentication in W3 Total Cache doesn’t work, so
   I’m unable to use the invalidation feature. When I click the “test” button, it
   shows “Test failed,” and the Chrome console displays the following error:
 *     ```wp-block-code
       POST https://vietnamguide.co.kr/wp-admin/admin.php?page=w3tc_dashboard 500 (Internal Server Error) load-scripts.php?c=1…p-hooks&ver=6.7.1:2
       ```
   
 * In the WordPress debug log, the only error recorded is related to compatibility
   with PHP 8.3, as shown below
 *     ```wp-block-code
       [10-Dec-2024 13:26:45 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>w3-total-cache</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /var/www/vg/wp-includes/functions.php on line 6114
       ```
   
 * What I find confusing is that about six months ago, there were no issues with
   authentication. After disabling the CDN for a while and trying to use it again,
   this problem has started occurring.
 * Could you please let me know how to resolve this issue? Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcloudfront-authentication-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/cloudfront-authentication-issue/#post-18190357)
 * Hello [@seotaro](https://wordpress.org/support/users/seotaro/)
 * Thank you for reaching out and I am happy to help!
 * Can you please share if the environment is in the development mode by any chance?
 * I do see that he CDN is enabled and the fiels are being served from Amazon Web
   Services: CloudFront: cdn.vietnamguide.co.kr
 * x-cache: Hit from Cloudfront
 * Can you confirm this?
   Most likely `display_errors` is `Off`, so the error shouldn’t
   pollute the ajax response.The error 500 doesn’t seem to be logged.  Maybe it’s
   logged in another log file (Apache main error log) so please check this also.
 * Thanks!
 *  Thread Starter [seotaro](https://wordpress.org/support/users/seotaro/)
 * (@seotaro)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/cloudfront-authentication-issue/#post-18200466)
 * Hello, [@vmarko](https://wordpress.org/support/users/vmarko/) thank you for your
   response.
 * My website is not in development mode; it is in live mode.
 * I checked the nginx error log, and I found the following entry:
 *     ```wp-block-code
       2024/12/12 05:16:42 [error] 90466#90466: *103117 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function GuzzleHttp\default_user_agent() in /var/www/vg/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php:40Stack trace:#0 /var/www/vg/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php(88): Aws\Handler\GuzzleV6\GuzzleHandler->__invoke()#1 /var/www/vg/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/AbstractMonitoringMiddleware.php(126): Aws\WrappedHttpHandler->__invoke()#2 /var/www/vg/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Middleware.php(154): Aws\ClientSideMonitoring\AbstractMonitoringMiddleware->__invoke()#3 /var/www/vg/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/FulfilledPromise.php(48): Aws\Middleware::Aws\{closure}()#4 /var/www/vg/wp-content/plugins/w3-total-cache/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\FulfilledPromise::GuzzleHttp\Promise\{" while reading response header from upstream, client: 125.134.150.12, server: vietnamguide.co.kr, request: "POST /wp-admin/admin.php?page=w3tc_dashboard HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "vietnamguide.co.kr", referrer: "https://vietnamguide.co.kr/wp-admin/admin.php?page=w3tc_cdn"
       ```
   
 * Thank you!
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/cloudfront-authentication-issue/#post-18203681)
 * Hello [@seotaro](https://wordpress.org/support/users/seotaro/)
 * Thank you for your feedback.
   Are you using any other plugin that uses the AWS
   SDK ?
 * Thanks!

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

The topic ‘CloudFront Authentication 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/cloudfront-authentication-issue/#post-18203681)
 * Status: resolved