Magento Upgrade: Problems/Errors and Solutions

Here are solution to some errors that I faced while upgrade Magento. Error 1: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in downloader/pearlib/php/System.php on line 400 Solution: Edit file named ‘pear‘. This file is present on root folder of your Magento installation. Add the following lines at the beginning of file: MAGE_PEAR_PHP_BIN=/usr/local/bin/php5; export MAGE_PEAR_PHP_BIN Error 2: … Read more

Magento: Google Analytics not working after Magento upgrade to version 1.7

Problem:- I recently upgraded a Magento shop from version 1.6 to 1.7 and suddenly the Google Analytics stopped tracking data. Solution:- You need to add ‘template’ attribute to googleanlytics block in app/design/frontend/your_package/your_theme/layout/googleanalytics.xml Note:- If you are using the default Magento design then your_package = default or base your_theme = default Here is the edited googleanalytics.xml … Read more