-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting guide
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).
-
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.
-
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).
-
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
-
Delete all the package files.
-
Drop all Drupal and LiteCommerce tables from the MySQL database.
-
Unpack the package files into a directory on the server.
-
Edit .htaccess file in the directory and find a line that looks like
# RewriteBase /. -
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 -
Run the installation wizard in a browser.
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.
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:
-
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 -
You should see the USER ACCOUNTS SYNCHRONIZATION section. Click the button 'Synchronize user accounts'
-
Check the users section. Users which you created via LC admin interface should be listed in Drupal now.
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