Magento Common Problems

Tudip Technologies

24 June, 2016

There are 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:
magento common problems
  • Most common one is you moved sites from your development machine to deployment server and it does not work. In order to fix it:
  • First go to app/etc/local.xml and change the DB settings.
  • 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 /
  • 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.
  • 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”.
  • 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 few tables that you should truncate right away:
  • TRUNCATE `log_url`;
  • TRUNCATE `log_url_info`;
  • TRUNCATE `log_visitor`;
  • TRUNCATE `log_visitor_info`;
  • TRUNCATE `dataflow_batch_import`;
  • TRUNCATE `dataflow_batch_export`;
  • TRUNCATE `index_event`;
  • 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:
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()

);