Title: Sync Problem
Last modified: December 4, 2019

---

# Sync Problem

 *  Resolved [falki147](https://wordpress.org/support/users/falki147/)
 * (@falki147)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/sync-problem-4/)
 * I have the same problem as many others. It just adds some of the images and then
   keeps on spinning. Turns out, it’s just the request failing in the background.
   When debugging is enabled, it prints that the script has exceeded the maximum
   execution time. I temporarly forced the batch size to be always 5 by adjusting
   the ajax script, which worked for me (however it still failed once nonetheless,
   but it was a lot more stable)

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

 *  Plugin Author [erolsk8](https://wordpress.org/support/users/erolsk8/)
 * (@erolsk8)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/sync-problem-4/#post-12205601)
 * Hi [@falki147](https://wordpress.org/support/users/falki147/), I’m glad you found
   a solution (kind of).
 * I already reduced the number of items to process per batch. But looks like it
   needs to be even smaller in some cases. So I might add an option to pick custom
   batch size, so it can be set to 1. Which would take a lot of time, because it
   would make a request for each image, but it might help in some situations.
 * But I think increasing `max_execution_time` in php.ini on the server is a much
   better solution.
    [https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/](https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/)
 * Anyway, thank you for a detailed explanation of what you found, this is finally
   something useful 🙂
 * For now, I removed batch size of 20 (for more than 1000 items), so 10 is now 
   maximum (for over 100 items being imported). That’s in 1.1.1 version.
 * I’ll update this topic when I add that “custom batch size” option. It’s a small
   change, but I’m not sure when will I find some time to do it.
 *  Thread Starter [falki147](https://wordpress.org/support/users/falki147/)
 * (@falki147)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/sync-problem-4/#post-12205740)
 * Hi,
 * Thanks for the fast response 🙂
 * Yeah, I might just increase the time myself temporarly. This should work too.
   I’ll try it next time.
 * btw, thank you for creating this plugin. It saves me a lot of time.
 *  Plugin Author [erolsk8](https://wordpress.org/support/users/erolsk8/)
 * (@erolsk8)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/sync-problem-4/#post-12206173)
 * Great, I’m happy to hear that 🙂

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

The topic ‘Sync Problem’ is closed to new replies.

 * ![](https://ps.w.org/media-sync/assets/icon.svg?rev=2021152)
 * [Media Sync](https://wordpress.org/plugins/media-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/media-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-sync/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [erolsk8](https://wordpress.org/support/users/erolsk8/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/sync-problem-4/#post-12206173)
 * Status: resolved