Support » Plugin: C3 Cloudfront Cache Controller » Uncaught errors if distribution does not exist

  • I’m getting uncaught errors leading to 502 errors on menu/post saving when the distribution ID doesn’t exist. Please could you catch these errors in the next version?

    In my nginx log I’m getting:

    2018/05/31 13:36:14 [error] 18639#18639: *14760 FastCGI sent in stderr: “PHP message: Array
    (
    [0] => Error executing “CreateInvalidation” on “https://cloudfront.amazonaws.com/2017-10-30/distribution/None/invalidation”; AWS HTTP error: Client error: POST https://cloudfront.amazonaws.com/2017-10-30/distribution/None/invalidation resulted in a 404 Not Found response:
    <?xml version=”1.0″?>
    <ErrorResponse xmlns=”http://cloudfront.amazonaws.com/doc/2017-10-30/”><Error><Type>Sender</Type>&lt; (truncated…)
    NoSuchDistribution (client): The specified distribution does not exist. – <?xml version=”1.0″?>
    <ErrorResponse xmlns=”http://cloudfront.amazonaws.com/doc/2017-10-30/”><Error><Type>Sender</Type&gt;NoSuchDistribution<Message>The specified distribution does not exist.</Message></Error><RequestId>9673aed6-64d7-11e8-bdeb-b1d2a6983786</RequestId></ErrorResponse>
    )

    PHP message: PHP Warning: array_merge(): Argument #1 is not an array in /var/www/domain.com/html/wp-content/plugins/c3-cloudfront-clear-cache/module/model/invalidation.php on line 97
    PHP message: PHP Warning: array_unique() expects parameter 1 to be array, null given in /var/www/domain.com/html/wp-content/plugins/c3-cloudfront-clear-cache/module/model/invalidation.php on line 98
    PHP message: PHP Warning: array_merge(): Argument #1 is not an array in /var/www/domain.com/html/wp-content/plugins/c3-cloudfront-clear-cache/module/model/invalidation.php on line 98
    PHP message: PHP Warning: array_merge(): Argument #1 is not an array in /var/www/domain.com/html/wp-content/plugins/c3-cloudfront-clear-cache/module/model/invalidation.php on line 97
    PHP message: PHP Warning: array_unique() expects parameter 1 to be array, null given in /var/www/domain.com/html/wp-content/plugins/c3-cloudfront-clear-cache/module/model/invalidation.php on line 98
    PHP message: PHP Warning: array_merge(): Argument #1 is not an array in /var/www/domain.com/html/wp-content/plugins/c3-cloudfront-clear-cache/module/m

  • The topic ‘Uncaught errors if distribution does not exist’ is closed to new replies.