by Bhumi // Dec 27,2012 // No comment
Today I am going to start the series of the articles in Magento.No doubt Magento is a best open source e-commerce platform and whenever you are developing any site, code debugging is necessory and for that Magento provides options to enable system log and errors.
As we seen before about how to set Template Path Hint in Magento so today I am going to explain how you enable system log and errors/warning in magento site.
First of all, let’s start with System Log.To Turn on error/system log, you need to follow below steps:
"Developer" option which is on the bottom of the list.YesIt looks like below screen.you can view in below screen for understading

NOTE: Default path for system log is /var/log/system.log.
Now, Let’s see to display PHP errors in Magento
You are working with Magento and you are not able to see PHP errors..ah sometimes its frustrating.So let’s see the way to turn errors which you can display for development use only and don’t forget to disable it on a production site.
Open your root index.php and find out below if condition
|
1 2 3 4 |
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } |
remove if condition and just display like below
|
1 2 |
Mage::setIsDeveloperMode(true); |
and then remove # from below sentence to enable warning to display.
|
1 2 |
ini_set(‘display_errors’, 1); |
Hope I could help someone and in today’s tutorial, you get idea about how you debug your code in Magento.
NOTE: Don’t forget to disable both system log and errors/warning when you move site to live.
As you can see, it’s very simple.I hope this little tutorial helps you with how to use browser detection built-in library into Joomla.Again if you have any questions just drop me a comment. So that’s all for now.
Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.
Conquer SmartPhone Internet Era with Magento Mobile Themes
On looking at stressed faces of Magento users, it is easy to understand the reason of their stress. The impact of SmartPhone powered virtual era READ MORE
Magento Extension Admin Configuration
This is the next article of magento series and I am going to cover creation of basic custom payment option in admin panel.In Previous article,we READ MORE
After few days,I am back again with my new quick article release. Today we will continue with Magento article series and i am going to READ MORE
Magento Extension Configuration
Magento is a powerful open source eCommerce solutions.Let’s move to the one step ahead in Magento article series.In this blog post, we will see how READ MORE
Magento is a well known open source ecommerce platform.Recently I have started working on Magento and i want to check the position of blocks in READ MORE
Be a Contributor at CreativeDev.Write an article or tutorial to the community and share some of your knowledge!