Title: Stops on error / Doesn&#8217;t handle errors &amp; missing regeneration cache
Last modified: November 3, 2023

---

# Stops on error / Doesn’t handle errors & missing regeneration cache

 *  Resolved [jave.web](https://wordpress.org/support/users/javeweb/)
 * (@javeweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/stops-on-error-doesnt-handle-errors-missing-regeneration-cache/)
 * Generally, on a small amount of images works fine, but if there are a lot of 
   them (thousands) it stops being useful because it doesn’t handle JS/Connection
   errors.
 * EVERY JS error in EACH run should NEVER fail to re-try (at least 1-10 times) 
   and then skip it if it still can’t be done.
 * Example of an unhandled error:
 *     ```wp-block-code
       build.js?ver=3.1.6:2 Uncaught TypeError: Cannot read properties of undefined (reading 'hasOwnProperty')
       Relates to this part:
       o = null !== n && n.hasOwnProperty("responseJSON") && null !== n.responseJSON ? n.responseJSON.hasOwnProperty("data") && null !== n.responseJSON.data && n.responseJSON.data.hasOwnProperty("attachment") && null !== n.responseJSON.data.attachment ? {
       ```
   
 * I also tried ofc to hit Pause & Resume, but it doesn’t have any effect once it
   fails.
 * This is very frustrating, because it doesn’t remember even when it ended, so 
   if I want to re-try, it has to go ALL the things it already regenerated – thousands
   of files – it should have a cache of what it recently already successfuly regenerated.
 * Also I’ve noticed that it fails to read files with diacritics (but that may be
   PHP+server setting).
 * And for some reason it seems to also go through PDFs – why? PDFs are not images…
 * Thank you for your work ! 🙂 I’m having great hopes since this should be very
   easy to fix – you can pass it on straight to the developers, thank you. (Please
   don’t ask me to “turn off” plugins etc… this is purely issue of this plugin, 
   nothing else)

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

 *  Thread Starter [jave.web](https://wordpress.org/support/users/javeweb/)
 * (@javeweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/stops-on-error-doesnt-handle-errors-missing-regeneration-cache/#post-17174342)
 * Maybe genereally it would be good if one could skip to some specific media page,
   so one doesn’t have to run the regeneration again and also to pause/resume could
   also work like continuing from the last known state in case of any unhandled 
   errors.
 *  Plugin Support [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/stops-on-error-doesnt-handle-errors-missing-regeneration-cache/#post-17180174)
 * Hi there, [@javeweb](https://wordpress.org/support/users/javeweb/),
 * What you said makes sense. We have a GitHub issue report open about that:
 * [https://github.com/Automattic/regenerate-thumbnails/issues/108](https://github.com/Automattic/regenerate-thumbnails/issues/108)
 * We have reported your observations about that in there.
 * Please let me know if you have any further questions or doubts!

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

The topic ‘Stops on error / Doesn’t handle errors & missing regeneration cache’ 
is closed to new replies.

 * ![](https://ps.w.org/regenerate-thumbnails/assets/icon-128x128.png?rev=1753390)
 * [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/regenerate-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/regenerate-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/regenerate-thumbnails/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/stops-on-error-doesnt-handle-errors-missing-regeneration-cache/#post-17180174)
 * Status: resolved