Skip to content

Troubleshooting guide

beatnbite edited this page Nov 23, 2011 · 20 revisions

LiteCommerce troubleshooting guide

"ERROR: -1 (code N/A) - Cache rebuild is already started, please wait"

Try to clean the classes cache as follows, refresh the page and wait until the script finishes the cache rebuilding process.

To clean the cache remove all files and directories beneath "<litecommerce>/var/run" directory, where <litecommerce> is the directory where your "stand-alone" LiteCommerce version is installed (or is the "modules/lc_connector/litecommerce" subdirectory of the directory where your Drupal-based website is installed).

"Fatal error: Allowed memory size of .... bytes exhausted" when rebuilding the LC classes cache

  1. Start editing the LiteCommerce settings file. For the stand-alone LC version it is <litecommerce-directory>/etc/config.php. For the Ecommerce CMS package including LC and Drupal 7 the path is <drupal-directory>/modules/lc_connector/litecommerce/etc/config.php.

  2. Find use_tokenizer = Off line in the [decorator] section, replace 'Off' with 'On' and save the file. That will switch to a cache rebuilding function (Tokenizer) that uses less memory, but is much slower that the default one (Reflections).

  3. Run the cache rebuilding process again

Memory usage with different installation profiles:

  • ~84M - Drupal + LC3, Reflections
  • ~64M - Drupal + LC3, Tokenizer
  • ~64M - LC3 stand-alone, Reflections
  • ~48M - LC3 stand-alone, Tokenizer

"500 Internal Server Error" when installing the D7+LC3 package not into the web root

  1. Delete all the package files.

  2. Drop all Drupal and LiteCommerce tables from the MySQL database.

  3. Unpack the package files into a directory on the server.

  4. Edit .htaccess file in the directory and find a line that looks like # RewriteBase / .

  5. Add a new line with a correct RewriteBase rule. For example, if the directory is available in a browser at "http://www.yoursite.com/~user/shop/" you are to add the following line:

     RewriteBase /~user/shop
    
  6. Run the installation wizard in a browser.

The cache re-building process hangs on the "Doctrine_Plugin_UpdateSchema" plugin

Re-building cache [step 3 of 5], please wait...

Run the "Doctrine_Plugin_ProxyGenerator" plugin... [3.02sec, 10.4MB (9.3MB)]
Run the "Doctrine_Plugin_UpdateSchema" plugin...

Refreshing the page results into the "ERROR: -1" error message.

To get the ORM working LiteCommerce queries data from the "information_schema" system database. Selecting from this database is very slow on old MySQL versions (see http://bugs.mysql.com/bug.php?id=38918) that results into the above error on some computers.

Upgrading to a newer MySQL version (at least 5.1.31) should fix the problem.

Troubles with the account management in admin-zone.

I created the account in the LC users section when the disabled DrupalConnector module. After it I can't delete it from LC admin zone, it is not visible in the Drupal back-end, and it is impossible to create one more account with the same e-mail since the system says that this e-mail is already in use.

Try to synchronize LC and Drupal accounts:

  1. Go to the LC Connector module settings. This page is located under Modules -> LC Connector -> Configure or accessible by direct URL as <URL-to-Drupal>/admin/modules/lc_connector

  2. You should see the USER ACCOUNTS SYNCHRONIZATION section. Click the button 'Synchronize user accounts'

  3. Check the users section. Users which you created via LC admin interface should be listed in Drupal now.

After I added product to a bag I see 'X items in bag'. How to fix it?

This issue may be related with a specific configuration of gettext extension on your server. LiteCommerce may use other way to manage translations - via database. Open file /etc/config.php and find the option (this should be at the bottom of config file):

[other]
; Translation drive code - auto / gettext / db
translation_driver = auto

Replace 'auto' with 'db'. Then remove directory /var/locale

Clone this wiki locally