Archive for the ‘How To Fix’ Category
How To Fix: Warning: date(): It is not safe to rely on the system’s timezone setting
If you try to upgrade Magento using the command line PEAR interface you may encounter the following:
./pear mage-setup
Running initial setup...
Warning: date(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set()...
August 25th, 2010 | How To Fix | Read More
How To Fix: Failed opening required ‘../magento/downloader/pearlib/php/PEAR.php’
I recently came across the situation where I was no longer unable to access the Magento Connect area of a previously working installation of Magento. After logging in to the backend and going to System -> Magento Connect -> Magento Connect Manager I got the following error (note: I had “ini_set(‘display_errors’,...
August 19th, 2010 | How To Fix | Read More
Magento: Resolving “Invalid mode for clean() method”
After what appeared to be a successful upgrade from 1.3.4.2 to 1.4.1.0 using the command line, I was unable to login to the Admin area. Instead it displayed the following report:
a:5:{i:0;s:31:"Invalid mode for clean() method";i:1;s:2982:"#0 /www/www.yourdomain.com/magento/app/code/core/Zend/Cache/Backend/File.php(532):...
July 21st, 2010 | How To Fix | Read More
PHP Fatal error: Call to a member function toHtml() on a non-object in …/Layout.php on line 529
If you’ve just upgraded your Magento Commerce site to the 1.4.x release from a 1.3.x release, and you forgot to change the theme/template to the default one before you performed the upgrade, you’ll probably end up with a blank white screen.
The first thing to do is enable debugging by uncommenting...
July 18th, 2010 | How To Fix | Read More
Magento: How To Fix “Unable detect system directory: report”
After cloning a Magento Commerce Website, it presented me with a blank page and the message “Unable detect system directory: report“. The message implies that Magento needs to create an error report, because of a failure of some kind, but has an issue creating the report in “magento/var/report”.
The...
July 13th, 2010 | How To Fix | Read More
Magento: How To Fix “SQLSTATE[42000]: Syntax error or access violation”
I was recently upgrading a Magento installation from 1.3.2.4 to 1.4.1.0 using the fresh installation technique, which I’ll discuss in an upcoming video tutorial. After entering the database name, username & password in the ‘Configuration’ area, I got the “Exception printing...
July 9th, 2010 | How To Fix | Read More
How to Enable Google Analytics for your Magento Site
Google Analytics is one of the most popular analytics engines for understanding what’s happening on a website. Magento Commerce includes Google Analytics code, so all you have to do is enable the functionality and enter your Google Analytics account ID.
Where to find your tracking code within...
April 30th, 2010 | How To Fix, Magento 1.4.x | Read More
Magento Commerce: Fixing “Exception printing is disabled by default for security reasons”
Whenever Magento 1.4.0.1 encounters an error condition you’re likely to see the message
There has been an error processing your request
Exception printing is disabled by default for security reasons
Error log record number: XXXXXXXXXXXXXXX
Unlike previous versions of Magento where it used to...
April 8th, 2010 | Articles, How To Fix, Magento 1.4.x | Read More
Magento Commerce Index Manager: How To Fix “Could not determine temp directory, please specify a cache_dir manually”
One of the new features in Magento Commerce CE 1.4 is “Index Management”. We had basic functionality for creating catalog and navigation indexes in 1.3, but 1.4 takes it to a whole new level and really improves the time taken to do database lookups.
After installing or upgrading to 1.4...
April 6th, 2010 | Articles, How To Fix, Magento 1.4.x | Read More
Magento Commerce 1.4: How To Fix ‘Unable to submit your request. Please, try again later’ on the Contact Us form
If you’ve upgraded your Magento Commerce site to 1.4.x you may have run in to the problem where any attempt to send a response via your ‘Contact Us’ page fails with “Unable to submit your request. Please try again later”.
If you look at the code /app/code/core/Mage/Contacts/controllers/IndexController.php
public...
March 10th, 2010 | Articles, How To Fix, Magento 1.4.x | Read More






