Solution for Installation Blank Page Issue in Magento

Solution for Installation Blank Page Issue in Magento

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 it 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.

Thank you ☺,
Mayank Zalavadia