Thursday, 9 July 2015

Shelter Job log: Error- Magento template - SQLSTATE[28000] [1045] Access denied for user 'magento'@'localhost'


  1. Error: SQLSTATE[28000] [1045] Access denied for user 'magento'@'localhost'
    1. Adding a user in http://visstudiodev2/phpmyadmin
    2. Magento database
    3. Adding a new user to the Privilege user settings 
    4. I deleted everything inside the var/cach. And it worked for me. "So all i did was rename /magento-path-here/var/cache folder to /magento-path-here/var/cache-old and refreshed the page and all was fine." ^Fixed the problem first go. Thanks mate you're a legend!
  2. Error: ( ! ) Notice: Undefined index: HTTP_X_FORWARDED_FOR 
    1. Changing $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; to $ip = $_SERVER['REMOTE_ADDR'];
  3. Error: frontend\default\shelter\template\magazento/homepage/data.phtml. Basically it was showing the template path hints so just disable the path hints
    1. Changing the magento db, core_config_data table, changing where path=template_hints, and path=template_hints_block value from 1 to 0. 
      1. SELECT * FROM `core_config_data`where path='dev/debug/template_hints'; 
      2. SELECT * FROM `core_config_data`where path='dev/debug/template_hints_blocks'
    2. clear the var/cache


No comments:

Post a Comment