• Resolved martinsah

    (@martinsah)


    I get a 500 response in the web server log (and no visible web errors) when doing an initial setup and clicking “Create Distribution”

    I have used the same AWS Key/Secret for another WordPress installation. I suspect there may be a plugin incompatibility or something. How can I figure out what the problem is?
    Thanks in advance.

    I’ve censored any persona info from the following —

    Here’s the error from Apache on the server:

    <ipaddress> – – [31/May/2020:17:42:46 +0000] “GET /wp-admin/admin-ajax.php?action=wpaac_deploy_cdn&wpaac_ak=<access key>&wpaac_sk=<secretkey>&wpaac_ap=PriceClass_100&wpaac_ori=mysite.com&wpaac_usecdn=&wpaac_minttl=3600&wpaac_maxttl=86400 HTTP/1.1”
    500 1187 “https://mysite.com/wp-admin/admin.php?page=wpa-aws-cloudfront&#8221; “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36”

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author luckychingi

    (@luckychingi)

    Hello @martinsah

    This looks more like an access log. Error log would indicate the issue with a particular line of code in a file.

    I am especially interested in the 500 error that is being logged.

    Can you check and let me know?

    Thread Starter martinsah

    (@martinsah)

    @luckychingi thank you for the quick reply. Here is the error message, reformatted a bit:

    [Mon Jun 01 00:45:14.946612 2020] [php7:error] [pid 1923] [client x.x.x.x:61427] 
    PHP Fatal error:  Uncaught Error: Class 'Aws\\CloudFront\\CloudFrontClient' not found in 
    /home/user/public_html/wp/wp-content/plugins/aws-cdn-by-wpadmin/aws-cdn.php:795
    Stack trace:
    #0 /home/user/public_html/wp/wp-content/plugins/aws-cdn-by-wpadmin/aws-cdn.php(478): wpaawscdn->wpaac_authClient('...', '...')
    #1 /home/user/public_html/wp/wp-includes/class-wp-hook.php(287): wpaawscdn->wpaac_deploy_cdn('')
    #2 /home/user/public_html/wp/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #3 /home/user/public_html/wp/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #4 /home/user/public_html/wp/wp-admin/admin-ajax.php(175): do_action('wp_ajax_wpaac_d...')
    #5 {main}
      thrown in /home/user/public_html/wp/wp-content/plugins/aws-cdn-by-wpadmin/aws-cdn.php on line 795, 
    referer: https://mysite.com/wp-admin/admin.php?page=wpa-aws-cloudfront
    
    Thread Starter martinsah

    (@martinsah)

    I removed the plugin and reinstalled it and it the Create Distribution process succeeded.

    Plugin Author luckychingi

    (@luckychingi)

    Thanks for the update @martinsah

    Plugin Author luckychingi

    (@luckychingi)

    Issue resolved

    Keep getting Below error… 500 Internal Server Error

    /wp-admin/admin-ajax.php?action=wpaac_list_cdn&wpaac_ak=AKIA3DE2P243DCRMTJFH&wpaac_sk=Ch1TE1L33P319QS4jArbI6%2F%2BMZEAqs0bCXGN%2F5gU&wpaac_ori=abx.xyz.com

    There is no other CDN related plugin

    Here is the log:
    PHP Fatal error: require(): Failed opening required ‘phar://aws-3.95.0.phar/aws-autoloader.php’ (include_path=’.:/opt/cpanel/ea-php71/root/usr/share/pear’) in /home/xyz/public_html/wp-content/plugins/aws-cdn-by-wpadmin/admin/aws.phar on line 4

    Can you please guide.

    Plugin Author luckychingi

    (@luckychingi)

    @tarun5585

    What is the version on PHP on the web server?

    PHP Version is : PHP 7.1

    Plugin Author luckychingi

    (@luckychingi)

    Have you tried any other AWS CDN plugin?

    No i have not tried any other plugin.
    What could be the issue?

    Thanks.

    Plugin Author luckychingi

    (@luckychingi)

    I have no idea.

    Try to install any other CDN plugin and check if that works

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘“500” response from Create Distribution’ is closed to new replies.