Title: Multiple scan errors
Last modified: September 26, 2019

---

# Multiple scan errors

 *  Resolved [nafoster318](https://wordpress.org/support/users/nafoster318/)
 * (@nafoster318)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/multiple-scan-errors/)
 * The site I have installed this plugin on has over 4,000 posts. When I click on
   Scan, it gets to the 67th post and throws a 504 Gateway Time-out. Then when I
   say skip, it gets to the next post and continues to 504 Gateway Time-out errors
   each and every single post afterward.
 * Is there a setting I need to change on my server or the Media Cleaner?

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

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/multiple-scan-errors/#post-11973553)
 * Hello,
 * I am sorry to hear about this issue. It might be difficult to resolve if you 
   are not used to technical issues, but unfortunately there isn’t much you can 
   do about this; the plugin is already very optimized, and I am afraid it’s not
   the number of posts which cause the issue neither (that the server might be exhausted
   after some time analyzing).
 * Did you have a look at this?
    [https://meowapps.com/media-cleaner-debug-issues/#Timeout_Code_524](https://meowapps.com/media-cleaner-debug-issues/#Timeout_Code_524)
 * I hope it helps 🙂
 *  Thread Starter [nafoster318](https://wordpress.org/support/users/nafoster318/)
 * (@nafoster318)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/multiple-scan-errors/#post-11975496)
 * Thanks for your response. I’ve modified the settings of Media Cleaner based on
   the link you provided. I also increased my memory allocation in wp-config.php
   to 2048MB. In the error logs, this poppped up before I made the changes which
   is why I upped the MB to 2048. `PHP Fatal error: Allowed memory size of 201326592
   bytes exhausted (tried to allocate 20480 bytes) in .../wp-includes/wp-db.php 
   on line 1972`
 * Unfortunately, it’s still getting stuck at the 67th post with the same Gateway
   errors. Any ideas on what could be happening? Do I just need to continue upping
   the allocation in wp-config.php?
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/multiple-scan-errors/#post-12003197)
 * You can try to allow more and more memory, but 2048MB is huge already. I am sure
   something else is going on. Maybe you have too many plugins, and other plugins
   are doing something as well? I am not sure, this kind of issue is very difficult
   to debug, unfortunately.
 * It seems like it’s breaking in WordPress itself, to run a certain query, not 
   sure if it’s a query from Media Cleaner or another one (Media Cleaner triggers
   other plugins to render the data, like Page Builders and so on).

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

The topic ‘Multiple scan errors’ is closed to new replies.

 * ![](https://ps.w.org/media-cleaner/assets/icon-256x256.png?rev=2791576)
 * [Media Cleaner: Clean your WordPress!](https://wordpress.org/plugins/media-cleaner/)
 * [Support Threads](https://wordpress.org/support/plugin/media-cleaner/)
 * [Active Topics](https://wordpress.org/support/plugin/media-cleaner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-cleaner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-cleaner/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/multiple-scan-errors/#post-12003197)
 * Status: resolved