Support » Plugin: Amazon AWS CDN » No cloudfront distribution found

  • I have installed “Amazon AWS CDN” on my blog. I have created an IAM User in AWS Console. I click create distribution and nothing happen. I check to my amazon console, I can’t find distribution. I’m using openlitespeed on digitalocean and Here’s the error log,

    [STDERR] PHP Warning: Undefined array key "Items" in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php on line 351

    [STDERR] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php:351
    Stack trace:
    #0 /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php(757): wpaawscdnadmin->wpaac_list_cdn()
    #1 /var/www/html/wp-includes/class-wp-hook.php(303): wpaawscdnadmin->wpaac_create_cdn()
    #2 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 /var/www/html/wp-admin/admin-ajax.php(187): do_action()
    #5 {main}
    thrown in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php on line 351

    I hope you can help me.. Thank you..

    • This topic was modified 1 month, 3 weeks ago by planetndeso.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author luckychingi

    (@luckychingi)

    Hello @planetndeso

    Can you share the output of the following command
    Debian based:

    dpkg -l | grep php | tee packages.txt

    Redhat based:

    yum list installed | grep php

    Thread Starter planetndeso

    (@planetndeso)

    Here’s the output,

    ii  lsphp73                        7.3.31-1+focal                        amd64        server-side, HTML-embedded scripting language (LSAPI binary)
    ii  lsphp73-common                 7.3.31-1+focal                        all          Common files for packages built from the PHP source
    ii  lsphp73-imap                   7.3.31-1+focal                        amd64        IMAP module for PHP
    ii  lsphp73-json                   7.3.31-1+focal                        amd64        JSON module for PHP
    ii  lsphp73-mysql                  7.3.31-1+focal                        amd64        MySQL module for PHP
    ii  lsphp73-opcache                7.3.31-1+focal                        amd64        Zend OpCache module for PHP
    ii  lsphp80                        8.0.11-1+focal                        amd64        server-side, HTML-embedded scripting language (LSAPI binary)
    ii  lsphp80-common                 8.0.11-1+focal                        all          Common files for packages built from the PHP source
    ii  lsphp80-curl                   8.0.11-1+focal                        amd64        CURL module for PHP
    ii  lsphp80-igbinary               3.2.1-1+focal                         amd64        igbinary PHP serializer
    ii  lsphp80-imagick                3.4.4-1+focal                         amd64        Provides a wrapper to the ImageMagick library
    ii  lsphp80-imap                   8.0.11-1+focal                        amd64        IMAP module for PHP
    ii  lsphp80-memcached              3.1.5-1+focal                         amd64        memcached extension module for PHP, uses libmemcached
    ii  lsphp80-msgpack                2.1.2-1+focal                         amd64        PHP extension for interfacing with MessagePack
    ii  lsphp80-mysql                  8.0.11-1+focal                        amd64        MySQL module for PHP
    ii  lsphp80-opcache                8.0.11-1+focal                        amd64        Zend OpCache module for PHP
    ii  lsphp80-redis                  5.3.4-1+focal                         amd64        PHP extension for interfacing with Redis
    ii  php-common                     2:75                                  all          Common files for PHP packages
    ii  php-readline                   2:7.4+75                              all          readline module for PHP [default]
    ii  php7.4-common                  7.4.3-4ubuntu2.6                      amd64        documentation, examples and common module for PHP
    ii  php7.4-readline                7.4.3-4ubuntu2.6                      amd64        readline module for PHP
    Plugin Author luckychingi

    (@luckychingi)

    Thanks @planetndeso

    Could you try installing php-xml

    LMK if that helps.

    Thread Starter planetndeso

    (@planetndeso)

    Hi,

    I had installed php-xml but i still got same error log.

    Thank You

    Plugin Author luckychingi

    (@luckychingi)

    Are there any other error reported in the syslogs or when WP-DEBUG is enabled?

    Thread Starter planetndeso

    (@planetndeso)

    On syslogs, still get same error report like this,

    [STDERR] PHP Warning: Undefined array key "Items" in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php on line 351

    [STDERR] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php:351
    Stack trace:
    #0 /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php(757): wpaawscdnadmin->wpaac_list_cdn()
    #1 /var/www/html/wp-includes/class-wp-hook.php(303): wpaawscdnadmin->wpaac_create_cdn()
    #2 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 /var/www/html/wp-admin/admin-ajax.php(187): do_action()
    #5 {main}
    thrown in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php on line 351

    my wp-debug is disabled.. should i activate wp-debug ?

    Thread Starter planetndeso

    (@planetndeso)

    Here’s from wp-debug log,

    [09-Oct-2021 21:20:08 UTC] PHP Warning:  Undefined array key "Items" in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php on line 351
    [09-Oct-2021 21:20:08 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php:351
    Stack trace:
    #0 /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php(757): wpaawscdnadmin->wpaac_list_cdn()
    #1 /var/www/html/wp-includes/class-wp-hook.php(303): wpaawscdnadmin->wpaac_create_cdn()
    #2 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 /var/www/html/wp-admin/admin-ajax.php(187): do_action()
    #5 {main}
      thrown in /var/www/html/wp-content/plugins/aws-cdn-by-wpadmin/admin/class-aws-cdn-admin.php on line 351
    Plugin Author luckychingi

    (@luckychingi)

    Can you share the AWS user screen or ensure that the permissions are set to CloudFrontFullAccess & AWSCertificateManagerFullAccess

    Here;s how is thould be
    https://wpadmin.ca/wp-content/uploads/2021/10/AWS-CF_User.png

    https://console.aws.amazon.com/iam/home#/users/<Your User>?section=permissions
    Replace <Your User> your the username on AWS

    Thread Starter planetndeso

    (@planetndeso)

    @luckychingi here’s the screenshot i’m sure i set correctly for that,

    https://postimg.cc/1nR8N2w5

    • This reply was modified 1 month, 3 weeks ago by planetndeso.
    Plugin Author luckychingi

    (@luckychingi)

    Hello @planetndeso

    Can I get access to your setup?

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.