Title: Uncaught errors if distribution does not exist
Last modified: June 1, 2018

---

# Uncaught errors if distribution does not exist

 *  [axmpda](https://wordpress.org/support/users/axmpda/)
 * (@axmpda)
 * [8 years ago](https://wordpress.org/support/topic/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&#8221](https://cloudfront.amazonaws.com/2017-10-30/distribution/None/invalidation&#8221);;
   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](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](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.

 * ![](https://ps.w.org/c3-cloudfront-clear-cache/assets/icon-256x256.jpg?rev=3337009)
 * [C3 Cloudfront Cache Controller](https://wordpress.org/plugins/c3-cloudfront-clear-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/c3-cloudfront-clear-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/c3-cloudfront-clear-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/c3-cloudfront-clear-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/c3-cloudfront-clear-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/c3-cloudfront-clear-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [axmpda](https://wordpress.org/support/users/axmpda/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/uncaught-errors-if-distribution-does-not-exist/)
 * Status: not resolved