Hey all!
Recently I have been working around data synchronization between Woocommerce and a 3rd Party API that manages products, categories, product tags, and media.
This 3rd Party API contains around 5k products and I have been running into an issue where the data sync stops all of a sudden. Such examples are:
– PHP Fatal error: Allowed memory size of …
– PHP Notice: Array to string conversion in …wp-includes/functions.php line 3919
– Max execution time…
I have tried batching the products, I have tried adding a wait between batch. I have increased script exec time. And I have come to a point were I don’t know what I should do to handle this.
Do you have experience in synching data? How did you handle this sync?
Any help would be greatly appreciated!
Thank you!
[ad_2]
WP all import.
I had a very similar situation a few years ago and found a plugin that was very similar to (but not) [this](https://github.com/deliciousbrains/wp-background-processing) and it made a massive difference!
Edit: had a brainwave, I used [locomotive](https://github.com/reaktivstudios/locomotive) – it still worked when I used it around 4 years ago, but it hasn’t been updated in almost a decade so you may have some issues!
Contact your hosting provider
Are you building something custom? In that case i’d take a look at [https://github.com/deliciousbrains/wp-background-processing](https://github.com/deliciousbrains/wp-background-processing)