Articles on: Marketplace Basics & Setup

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 Listing 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 on your WordPress settings.
To optimize the connection between LitCommerce and WordPress, you can set these settings to 300 seconds and 256M respectively using one of the following methods:

1. Editing the php.ini File



Step 1: Locate the php.ini file (commonly found in the root folder or a directory like /etc/).
Step 2: Open the file for editing and add or modify the following lines:


max_execution_time = 300
memory_limit = 256M


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.

Step 3: Save the file and reload the webserver.

2. Modifying the .htaccess File (for Apache server only)



Step 1: Locate the .htaccess file and add the following lines:

php_value max_execution_time 300
php_value memory_limit 256M


Step 2: Save the file and reload the webserver.

3. Updating wp-config.php



Step 1: Open the wp-config.php file.
Step 2: Add these lines before the end of the file:


set_time_limit(300);
define('WP_MEMORY_LIMIT', '256M');


Step 3: 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
45.33.127.225
45.79.40.138
45.79.21.85
- 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
2600:3c00::f03c:94ff:fea7:b1e1
2600:3c00::f03c:94ff:fef9:4cc4
2600:3c00::f03c:94ff:fee6:85c0

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.


Once you've completed the troubleshooting steps, try performing the action listing your Products again.

If the issue persists, contact our Support Team via the Chat Box in the bottom-right corner of our Help Center.**

Updated on: 21/01/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!