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 = 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.

  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:

    php_value max_execution_time 300
    php_value memory_limit 256M
    
  2. Save the file and reload the web server.

3. Updating wp-config.php

  1. Open the wp-config.php file.

  2. Add these lines before the end of the file:

    set_time_limit(300);
    define('WP_MEMORY_LIMIT', '256M');
    
  3. Save the file and reload the web server.

4. Contacting your Hosting Provider

If the above methods don’t work, contact your hosting provider and request the following adjustments:

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, add our IP addresses to the whitelist on WordPress from the Cloudflare dashboard using either method below:

Ensure all of the following LitCommerce's IP addresses are whitelisted:

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

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

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

← How to connect WooCommerce as the Main Store