• Resolved bk9001

    (@bk9001)


    AWS credentials are fine with correct policy. But create distribution doesn’t do any thing. No error and no message.

    Have removed and re-installed – the same issue. Checked AWS CloudTrail no event shown there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @bk9001 I had the same issue and was equally disappointed (cc: your review). It’s caused by a fatal PHP error. However, this reply on an earlier topic actually saved me. To repeat what they said in copy-paste-able text:

    1. go into the wp-content/plugins/aws-cdn-by-wpadmin/admin folder
    2. open the class-aws-cdn-admin.php file with a plain text/code editor.
    3. find line 465
    4. Replace
      if (count($result['DistributionList']['Items']) > 0) {
      with the following:
      if (isset($result["DistributionList"]["Items"]) && count($result["DistributionList"]["Items"]) > 0) {

    One thing to note: there is one more bug in the plugin that causes the plugin to not work at all if your aws account already has a cloudfront distribution. It only works if the account has no distributions yet. Which is, to be frank, a terrible way of programming.

    I hope the team fixes the above isset issue and the mentioned bug, but till then this is a hotfix that works!

    • This reply was modified 5 months, 3 weeks ago by rubenrme.
    Thread Starter bk9001

    (@bk9001)

    @rubenrme You are the man of the time, my friend!!

    It worked after the above change. I hope the team takes above change and adds to their build.

    Thank you for your help!!

    • This reply was modified 5 months, 3 weeks ago by bk9001.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.