Title: Create Distribution doesnt work
Last modified: January 18, 2024

---

# Create Distribution doesnt work

 *  [bendur95](https://wordpress.org/support/users/bendur95/)
 * (@bendur95)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/create-distribution-doesnt-work/)
 * “Create Distribution” button doesn’t work. This is my log file:
 *     ```wp-block-code
       "nt/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(): Failed opening '/var/www/mywebsite.com/htdocs/wp-config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(/var/www/mywebsite.com/htdocs/wp-config.php): Failed to open stream: No such file or directory in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(): Failed opening '/var/www/mywebsite.com/htdocs/wp-config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(/var/www/mywebsite.com/htdocs/wp-config.php): Failed to open stream: No such file or directory in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(): Failed opening '/var/www/mywebsite.com/htdocs/wp-config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(/var/www/mywebsite.com/htdocs/wp-config.php): Failed to open stream: No such file or directory in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(): Failed opening '/var/www/mywebsite.com/htdocs/wp-config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php on line 113PHP message: PHP Warning:  include_once(/var/www/mywebsite.com/htdocs/wp-config.php): Failed to open stream: No such file or directory in /var/www/mywebsite.com/htdocs/wp-content/plugins/aws-cdn-by-wpadmin/class-aws-cdn.php
       ```
   

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

 *  Thread Starter [bendur95](https://wordpress.org/support/users/bendur95/)
 * (@bendur95)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/create-distribution-doesnt-work/#post-17355375)
 * I think that my problem is that my wp-config.php file is in var/www/mywebsite.
   com and the plugin is looking for inside htdocs. How could I fix it?
 *  [xenomprime](https://wordpress.org/support/users/xenomprime/)
 * (@xenomprime)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/create-distribution-doesnt-work/#post-17712284)
 * If you are getting a 500 error, I fixed it by adding to the plugin class-aws-
   cdn-admin.php on line **465**:
   `if (count($result['DistributionList']['Items'])
   > 0) {`Replaced with
 * if (isset($result[‘DistributionList’][‘Items’]) && count($result[‘DistributionList’][‘
   Items’]) > 0) { $dls = $result[‘DistributionList’][‘Items’];

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

The topic ‘Create Distribution doesnt work’ is closed to new replies.

 * ![](https://ps.w.org/aws-cdn-by-wpadmin/assets/icon-256x256.jpg?rev=2647571)
 * [WPAdmin AWS CDN](https://wordpress.org/plugins/aws-cdn-by-wpadmin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aws-cdn-by-wpadmin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aws-cdn-by-wpadmin/)
 * [Active Topics](https://wordpress.org/support/plugin/aws-cdn-by-wpadmin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aws-cdn-by-wpadmin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aws-cdn-by-wpadmin/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [xenomprime](https://wordpress.org/support/users/xenomprime/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/create-distribution-doesnt-work/#post-17712284)
 * Status: not resolved