Fix WooCommerce & PrestaShop Sync Errors on Shared Hosting
Store not syncing or showing 'Error establishing a database connection'? Lower Simultaneous connections for WooCommerce and PrestaShop on shared hosting.
- 1
Why shared hosting causes sync errors
Shared hosting plans limit how many database (MySQL) connections your site can open at once. When Build the Drop syncs stock and prices or publishes products, it sends several API requests to your store in parallel. On shared hosting, a burst like that can make your store answer 'Error establishing a database connection' or simply time out.
- 2
Recognise the symptoms
Build the Drop shows the store as failing to sync and you may receive an email such as 'Your woocommerce store is not syncing'. In the dashboard you will see errors like 'WooCommerce communication failed'. If it happens now and then, no action is needed (see the automatic retries below). If it keeps repeating, change the setting in the next steps.
- 3
Open the Simultaneous connections setting
In the dashboard go to Stores, open your WooCommerce or PrestaShop store and find 'Simultaneous connections'. You can choose from 1 to 10 requests at a time. The default is '2 at a time (recommended)'. The setting is saved per store account and only exists for self-hosted stores (WooCommerce and PrestaShop), not for Shopify or BigCommerce.
- 4
Choose the right value
On shared hosting with database errors, set it to '1 at a time'. The default of 2 fits most stores, so leave it if you have no errors. If you have a VPS or dedicated server and a large catalog, raise it gradually (for example to 4 or 6) and watch for errors after each change. A lower value means slower syncing but a more stable store; a higher value is faster but needs a server that can take it.
- 5
Automatic retries
Build the Drop already retries WooCommerce database-connection errors, and temporary gateway errors (502, 503 and 504) on read requests, with increasing waits between attempts. Occasional errors usually recover on their own. This setting is for stores that fail repeatedly.
- 6
Optional checks on the hosting side
If errors continue even with '1 at a time', ask your hosting provider about the maximum number of MySQL connections and the PHP workers available to your plan. Also check whether a security plugin or a firewall is rate-limiting REST API requests to your store. These checks are on the hosting side and outside Build the Drop.
- 7
Products that failed with duplicate SKUs
If some products failed with 'Failed to create WooCommerce variations…' because of duplicate SKUs, that was a separate issue that is now fixed (variation SKUs are prefixed with the AliExpress item id): just republish those products.
- 8
Next steps
Need to connect a store first? See how to connect WooCommerce or how to connect PrestaShop. To learn how stock is kept up to date, read automatic stock sync explained.
Related guides
- How to Enable the PrestaShop Webservice for Build the DropYour PrestaShop store stopped syncing? Turn the Webservice and the Build The Drop key back on in one click or manually, then let Build the Drop catch up.
- How to Connect Your PrestaShop Store to Build the DropConnect your PrestaShop shop to Build the Drop: install the module, enter your shop URL and approve the connection in your back office. No API keys needed.
- How to Connect Your WooCommerce Store to Build the DropConnect your WooCommerce store to Build the Drop in minutes: check HTTPS and permalinks, enter your URL and approve access in wp-admin. No plugin needed.
- Import Orders and Export Products and Orders with CSVStore without an integration? Export your products to list them, upload your orders as CSV so Build the Drop sends them to the supplier, and export tracking.