Amazines Free Article Archive
www.amazines.com - Saturday, January 16, 2021
Read about the most recent changes and happenings at Amazines.com
Log into your account or register as a new author. Start submitting your articles right now!
Search our database for articles.
Subscribe to receive articles emailed straight to your email account. You may choose multiple categories.
View our newest articles submitted by our authors.
View our most top rated articles rated by our visitors.
* Please note that this is NOT the ARTICLE manager
Add a new EZINE, or manage your EZINE submission.
Add fresh, free web content to your site such as newest articles, web tools, and quotes with a single piece of code!
Home What's New? Submit/Manage Articles Latest Posts Top Rated Article Search
Google
Subscriptions Manage Ezines
CATEGORIES
 Article Archive
 Advertising (133447)
 Advice (161198)
 Affiliate Programs (34758)
 Art and Culture (73753)
 Automotive (145648)
 Blogs (75252)
 Boating (9847)
 Books (17221)
 Buddhism (4128)
 Business (1329060)
 Business News (426393)
 Business Opportunities (366367)
 Camping (10967)
 Career (72761)
 Christianity (15849)
 Collecting (11638)
 Communication (115069)
 Computers (241938)
 Construction (38915)
 Consumer (49684)
 Cooking (17072)
 Copywriting (6664)
 Crafts (18205)
 Cuisine (7545)
 Current Affairs (20420)
 Dating (45890)
 EBooks (19696)
 E-Commerce (48225)
 Education (185320)
 Electronics (83506)
 Email (6407)
 Entertainment (159839)
 Environment (28921)
 Ezine (3039)
 Ezine Publishing (5451)
 Ezine Sites (1550)
 Family & Parenting (110930)
 Fashion & Cosmetics (196430)
 Female Entrepreneurs (11848)
 Feng Shui (131)
 Finance & Investment (310479)
 Fitness (106338)
 Food & Beverages (62924)
 Free Web Resources (7940)
 Gambling (30223)
 Gardening (25154)
 Government (10541)
 Health (629647)
 Hinduism (2206)
 Hobbies (44057)
 Home Business (91585)
 Home Improvement (251096)
 Home Repair (46178)
 Humor (4833)
 Import - Export (5453)
 Insurance (45098)
 Interior Design (29586)
 International Property (3485)
 Internet (191003)
 Internet Marketing (146516)
 Investment (22852)
 Islam (1167)
 Judaism (1356)
 Law (80435)
 Link Popularity (4595)
 Manufacturing (20862)
 Marketing (99040)
 MLM (14136)
 Motivation (18222)
 Music (27013)
 New to the Internet (9496)
 Non-Profit Organizations (4048)
 Online Shopping (129632)
 Organizing (7805)
 Party Ideas (11853)
 Pets (38066)
 Poetry (2234)
 Press Release (12684)
 Public Speaking (5635)
 Publishing (7528)
 Quotes (2407)
 Real Estate (126634)
 Recreation & Leisure (95406)
 Relationships (87680)
 Research (16174)
 Sales (80337)
 Science & Technology (110268)
 Search Engines (23487)
 Self Improvement (153233)
 Seniors (6232)
 Sexuality (35950)
 Small Business (49281)
 Software (83016)
 Spiritual (23469)
 Sports (116098)
 Tax (7659)
 Telecommuting (34067)
 Travel & Tourism (307901)
 UK Property Investment (3121)
 Video Games (13428)
 Web Traffic (11749)
 Website Design (56839)
 Website Promotion (36599)
 World News (1000+)
 Writing (35791)
Author Spotlight
MANMOHAN SINGH

Digital marketing professional with 8 years of experience. A good listner, Stratgist and fun loving ...more
CACEY TAYLOR

Im just a man who likes to be happy and see others happy. Im into home business, sports, family, and...more
ELLISEN WANG

I'm Ellisen, nice to meet you! Obviously you're here because you want to know who I am. Wel...more
AYESHA GULZAR

Medical and Pharmaceutical Research writer Doctor of Pharmacy/Pharm D /RPh ...more
CED YONG

Writer, photographer, and graphic agency owner from Singapore. I'm also a Yamaha Electone player and...more


How to Debug Magento Step by Step? by Sam George





Article Author Biography
How to Debug Magento Step by Step? by
Article Posted: 10/03/2013
Article Views: 262
Articles Written: 17
Word Count: 807
Article Votes: 0
AddThis Social Bookmark Button

How to Debug Magento Step by Step?


 
Science & Technology
The following debugging tips can be applied towards any LAMP/XAMPP application we wanted to give a more brief focused step by step debugging checklist for Magento.

Get XDebug or ZendDebugger Working

When all else fails, putting a break-point in the beginning of your back trace and stepping line by line is the best way to debug and/or learn what Magento is doing.

Articles about setting up XDebug with PDT

Articles about setting up ZendDebugger with PDT

Clear the Cache

If you are using caching at all within Magento, one of the first steps to answering the question – “Why is this not working?” – is to clear the Magento cache. There are two ways to clear the cache:

System > Cache Management > Select All > “Refresh” Massaction > Submit

Delete the “cache” directory under BASE_MAGENTO_DIR/var

Clear the Browser Cache

More than once, I have wasted 10 minutes trying to figure out why something wasn’t rendering to the browser correctly, only to find that my browser was caching old responses. If you don’t know how to clear your browser cache, see the following links:

Firefox

Internet Explorer

Safari

Google Chrome

Make Sure Your Configurations Are Set For the Proper Scope

Because the System > Configurations can be set for specific scopes (Default / Website / Store View), we have to make sure that we have set the configurations for the proper scope. To check this, use the Magento Admin Panel -

System > Configuration > Upper Left Corner (Change to the scope/store view you are working with)

Turn On Logging

This one is a big one. Almost EVERY time, if there is a problem in Magento, something will appear in either the system.log or the exception.log. Checking these logs should become second nature to you. To turn on logging, use the Magento Admin Panel -

System > Configuration > Advanced > Developer > Log Settings > Enable

Check the magento exception.log under BASE_MAGENTO_DIR/var

Check the magento system.log under BASE_MAGENTO_DIR/var

Use Template Path Hints

Template Hints are pretty amazing. When you want to figure out which Block or phtml file a problem is occurring in, you can turn on template hints and see the information right on the browser. It’s awesome, so if you haven’t tried it, try it right now.

To turn on template path hints, use the Magento Admin Panel -

First, you NEED to select the store view you want to show the hints on. If you don’t, the configuration option won’t appear.

System > Configuration > Advanced > Developer > Debug > Template Path Hints and/or Add Block Names to Hints

By default, there is no way to turn on hints for the Admin Panel, so take a look at this article for help: Enable Template/Block Hints in Admin Panel

Tracing

If you have implemented a home-grown tracing mechanism, turn it on and look at the log. A common tracing mechanism consists of coding tracing statements within the code that log ENTRY into a function, important information within the function, and EXIT from the function. This information can be crucial in debugging problems in a production environment.

XDebug Tracing

XDebug provides some pretty kick-butt tracing ability. If you turn it on, get ready for a lot of data, but it can be very helpful when trying to pinpoint a problem.

Check the Apache error_log

When all else fails, take a look at the apache error_log. It could be a problem with the setup of your webserver.

Google It

It may come as a surprise, but there are still people that don’t turn to Google as a “troubleshooting option”. They should. When you want to ask a developer something, first ask it to Google. For instance, if you want to know how to do a rewrite of a model, just Google: How do I rewrite a model in Magento. If you want to know why you are getting an error like “HEADERS ALREADY SENT”, Google: headers already sent magento. Chances are, another developer will give you a response like THIS if you ask them the question anyway.

Search Or Ask The Magento Forums

One of the big pros to Magento is the active community members. Many are willing to help answer your questions for free, and quickly. Before you ask your question, search the forums. If you don’t find your answer, ask your question.

Use the Varien_Profiler

If you are having performance issues, turn on and use the Varien_Profiler. Do this in the Admin Panel -

System > Configuration > Advanced > Developer > Debug > Profiler

Then, if you still can’t figure it out, start all over again.

XHTMLJunkies specialized in Database Development, Web Design, Content Management Solutions, E-commerce Development and Website Development. We have team of experts and professionals who willing to work with new technologies to fulfill all your requirements.

Related Articles - Magento, Extension,

Email this Article to a Friend!

Receive Articles like this one direct to your email box!
Subscribe for free today!

 Rate This Article  
Completely useless, should be removed from directory.
Minimal useful information.
Decent and informative.
Great article, very informative and helpful.
A 'Must Read'.

 

Do you Agree or Disagree? Have a Comment? POST IT!

 Reader Opinions 
Submit your comments and they will be posted here.
Make this comment or to the Author only:
Name:
Email:
*Your email will NOT be posted. This is for administrative purposes only.
Comments: *Your Comments WILL be posted to the AUTHOR ONLY if you select PRIVATE and to this PUBLIC PAGE if you select PUBLIC, so write accordingly.
 
Please enter the code in the image:



 Author Login 
LOGIN
Register for Author Account

 

Advertiser Login

 

ADVERTISE HERE NOW!
   Limited Time $60 Offer!
   90  Days-1.5 Million Views  

 

Great Paranormal Romance


STEVERT MCKENZIE

Stevert Mckenzie, Travel Enthusiast. ...more
LAURA JEEVES

At LeadGenerators, we specialise in content-led Online Marketing Strategies for our clients in the t...more
TIM FAY

I am not a writer nor am I trying to become a writer. I am an average person with average intelligen...more
LINDA DECANN

Linda DeCann is US based pursuing her career as brand ambassador. Previously she has helped hundreds...more
GENE MYERS

Author of four books and two screenplays; frequent magazine contributor. I have four other books "in...more
CHRIS BURTON

I am an International Corporate Consultant specialising in the bespoke formation of offshore compani...more
STEPHEN BYE

Steve Bye is currently a fiction writer, who published his first novel, ‘Looking Forward Through The...more
DAMIAN POWELL

Demonstrated exceptional leadership in the government and private sector at an executive level. Skil...more
PAUL RICE

hello everyone l been on the net since 2000 and enjoy my work l work as an affiliate and also have w...more
RENE VALENCIA

My name is Rene I am a Las Vegas nightlife blogger and long time socialite. I currently write for bo...more

HomeLinksAbout UsContact UsTerms of UsePrivacy PolicyFAQResources
Copyright © 2021, All rights reserved.
Some pages may contain portions of text relating to certain topics obtained from wikipedia.org under the GNU FDL license