For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

1

Locate the php.ini file (commonly found in the root folder or a directory like /etc/).

2

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.

3

Save the file and reload the web server.

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

1

Locate the .htaccess file and add the following lines:

2

Save the file and reload the webserver.

3. Updating wp-config.php

1

Open the wp-config.php file.

2

Add these lines before the end of the file:

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:

1

Log in to the Cloudflare dashboard, and select your account and domain.

2

Go to Security → WAF → Tools.

3

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.

4

For Zone, select whether the rule applies to the current website only or all websites in the account.

5

(Optional) Enter a note for the rule (for example, Payment Gateway).

6

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?