Magento Common Problems

Magento Common Problems

tudip-logo

Tudip

24 June 2016

There are a bunch of problems that we face while moving Magento from 1 server to another server. This article lists all the issues that we faced till date and their solutions:
help-1013700_640-e1459152256201
  • The most common one is you moved sites from your development machine to deployment server and it does not work. In order to fix it:
    1. First, go to app/etc/local.xml and change the DB settings.
    2. Open table core_config_data and change values against web/unsecure/base_url and web/secure/base_url. If you are giving values like www.mymagentosite.com/ make sure you do not miss that /
    3. Remove contents of var folder as it is relevant to your dev instance and not the production instance.
  • Change Admin password as you forgot what password you gave at the time of installation. Run this command and you can change it:
    UPDATE admin_user SET password=CONCAT(MD5('qXbond123'), ':qX') WHERE username='admin'; // here bond123 is password and admin is the username
    
  • You see this message and do not know where the error is “There has been an error processing your request” error.
    1. Go to errors folder and rename local.xml.sample to local.xml and now you would be able to see the errors.
  • Every once in a while you come across this error “SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine”.
    1. Most likely you are running out of disk space on this machine (shared hosting?). Clean up the unused files/DBs and you should be fine.
  • The DB dump is way too big and you are sure what you can remove while moving the DB. Here are a few tables that you should truncate right away:
    1. TRUNCATE `log_url`;
    2. TRUNCATE `log_url_info`;
    3. TRUNCATE `log_visitor`;
    4. TRUNCATE `log_visitor_info`;
    5. TRUNCATE `dataflow_batch_import`;
    6. TRUNCATE `dataflow_batch_export`;
    7. TRUNCATE `index_event`;
    8. TRUNCATE `report_event`;
  • While installing the plugins you have given write permission to the complete folder and now you want to reset the permissions as they were earlier. There is this brilliant Magento clean up tool that you can use. Follow these steps:
    1. Download this PHP script from https://www.magentocommerce.com/wiki/media/groups/227/magento-cleanup2.zip
    2. Extract and move it to your mageno installation’s root folder as magento-cleanup.php
    3. Hit <Your Installation Path>/magento-cleanup.php from browser and it would reset the permissions right.
We are sure that this is not the end of the problems with Magento. We will keep updating this article with new findings. In the meantime, if you come across any other problem that is not covered here, please leave a comment and we can help you.
  • There is this very annoying problem in the Magento on Chrome, 1) admin login does not work and 2) add to cart does not work. To fix both the problems, comment last 3 codes of the code block:
session_set_cookie_params(

$this->getCookie()->getLifetime(),

$this->getCookie()->getPath()

// $this->getCookie()->getDomain(),

// $this->getCookie()->isSecure()

// $this->getCookie()->getHttponly()

);

search
Blog Categories
Request a quote