Solution for Installation Blank Page Issue in Magento

Posted on 2 February, 2017

After released Magento version many developers search over the internet to find the solution for magento installation blank page issue. So, for that reason we have written this short technical note for those who are using PHP 7 version and get a blank page instead of setup page during magento installation.

We think the issue is very easy to fix. Because we have troubleshoot Magento with PHP 7 and find the solution for that kind of problem.

To solve Magento installation blank page issue. You just need to follow some simple step which are listed below.

You need to make changes in Layout.php file which are located at app/code/core/Mage/Core/Model/Layout.php. So, for that go to the magento root directory and open Layout.php file from app/code/core/Mage/Core/Model/Layout.php. And find the following code inside function getOutput(). Maybe it's on line number - 555.

$out .= $this->getBlock($callback[0])->$callback[1]();

And replace with

$out .= $this->getBlock($callback[0])->{$callback[1]}();

If above solution is not working than try to replace with another one which is listed below.

$customcallback = $callback[1];
$out .= $this->getBlock($callback[0])->$customcallback();

I hope this Magento technical note helped you to solve Magento installation problem. Bookmark it for your future reference. If you have any problem or ideas don’t hesitate to leave comment below.

P.S. Do share this note with your team.

Mayank Zalavadia , eCommerce Project Manager

Magento Technical Notes

About Emipro

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. Our customers are companies of all sizes ranging from startups to large enterprises who realize that they need a professional internet solution to generate revenue streams, establish proper communication channels, to achieve desired goals and streamline business operations. [....] Read More

Our writings seems informative ?

Subscribe for our Magento Technical Notes and get more amazing stuff directly to your inbox!

Post Your Review


Your Review has been posted

2 Comment(s)


Posted on 23 November, 2017

I can confirm it works on (with php 7.1 )

Mitesh Dhaduk

Posted on 15 September, 2017

This technical note is most useful when we dont know why installation is not done and displayed blank page.Thank you...