WooCommerce Common Errors
When managing the Products on WooCommerce via LitCommerce, you may encounter some errors related to the WordPress connection or the WordPress Security Restrictions.
This article provides general troubleshooting steps to help address these issues.
Connection Instability
You may encounter the following error message when creating the listings from the Sales Channel to WooCommerce.

This means the connection between LitCommerce and your WordPress site is not stable. It might be caused by the Maximum Execution Time and Memory Limit in your WordPress settings.
To optimize the connection between LitCommerce and WordPress, you can set these settings to 300 seconds and 256MB. Respectively using one of the following methods:
1. Editing the php.ini File
Locate the php.ini file (commonly found in the root folder or a directory like /etc/).
Open the file for editing and add or modify the following lines:
max_execution_time: Sets the maximum time (in seconds) a script is allowed to run.
memory_limit: Defines the maximum amount of memory a script can consume.
Save the file and reload the web server.
2. Modifying the .htaccess File (for Apache server only)
Locate the .htaccess file and add the following lines:
Save the file and reload the webserver.
3. Updating wp-config.php
Open the wp-config.php file.
Add these lines before the end of the file:
Save the file and reload the webserver.
4. Contacting your Hosting Provider
If the above methods don’t work, contact your hosting provider and request the following adjustments:
Maximum Execution Time: 300 seconds
Memory Limit: 256MB
WordPress Security Restrictions
Typically, WordPress hosting providers automatically enable the Firewall on the user’s WordPress site. However, this security method may block actions performed through LitCommerce.

To address, this, follow the steps below to add our IP addresses to the whitelist on WordPress:
Log in to the Cloudflare dashboard, and select your account and domain.
Go to Security → WAF → Tools.
Under IP Access Rules, enter the following details:
For Value, enter all IP addresses of LitCommerce below:
IPV4:
72.14.177.223
96.126.114.141
45.33.27.6
45.79.34.198
50.116.21.133
IPV6:
2600:3c00::f03c:95ff:fe0a:5ecf
2600:3c00::f03c:92ff:feee:7fdf
2600:3c00::f03c:93ff:fe80:ade8
2600:3c00::f03c:93ff:fea9:2e9f
2600:3c00::f03c:93ff:fe37:d535
Select
Allow.
For Zone, select whether the rule applies to the current website only or all websites in the account.
(Optional) Enter a note for the rule (for example, Payment Gateway).
Select Add.

After completing the steps, your setup should allow LitCommerce requests through the firewall and look like this:

For further information, follow this article.
If the issue persists, contact our Support Team via the Chat Box in the bottom-right corner of our Help Center.
Last updated
Was this helpful?