Magento: Installation on PHP7
If you are installing Magento on PHP7, you can get error message This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500
.
Go to index.php
and turn on error display ini_set('display_errors', 1);
You will get error message Fatal error: Uncaught Error: Function name must be a string in .../app/code/core/Mage/Core/Model/Layout.php:555
In file app/code/core/Mage/Core/Model/Layout.php
change:
$out .= $this->getBlock($callback[0])->$callback[1]();
to
$out .= $this->getBlock($callback[0])->{$callback[1]}();
In db configuration you can get error Database server does not support the InnoDB storage engine.
;
In file app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php
change:
to
Image upload not working in admin on product page
In file lib/Varien/File/Uploader.php
change:
to