Magento Developer – Debugging Hard To Find Errors (White Pages)

This post is for any developers working with Magento

While looking at a white page and having all debugging enabled in Magento, I scrached my head wondering what was wrong. Finally I came across the issue. If this ever happens to you, add xDebug breakpoints to the file here:

app/code/core/Mage/Core/functions.php

There is the function function mageCoreErrorHandler() just add some breakpoints there like this:

breakpoint

While no error message is shown on the page, the error showed up here finally, and allowed me to continue working after looking for 1 – 2 hours to find it. Sometimes even with display_errors on in php.ini, and in index.php of Magento having developer mode set to true, it will still not show you the errors. Hopefully this tip will help someone.

We will be closed January 4 - March 11, 2024. You can still order but for any installs or support tickets please expect a delayed response

Out of Office

FREE RENTAL CONTRACT PDF / WORD FILE

Please signup with your email and we'll send you the files 

We'll send you a few follow up emails with great Rental Business Tips, Special Offers, ways to increase sales, and more.

No thanks, I'll pass
15585

Get The Latest Rental Business Tips and Updates!

Special Offers, Product Updates, Insider Business Tips, sign up today to the Sales Igniter Email List!