Conversation
support“Create Distribution” button doesn’t work. This is my log file: "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
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?
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’];
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?
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’];