简体   繁体   中英

Magento Installation Fatal error

I am beginner in the magento field and trying to install magento on localhost. I am using XAMPP server 7.2.1 and magento 2.2.2 The Configuration get all set but when I hit localhost/magento in browser it shows me fatel error like

Fatal error: Declaration of Zend\Mvc\Controller\PluginManager::get($name, ?array $options = NULL) must be compatible with Zend\ServiceManager\AbstractPluginManager::get($name, $options = Array, $usePeeringServiceManagers = true) in C:\xampp\htdocs\magento\vendor\zendframework\zend-mvc\src\Controller\PluginManager.php on line 211

As reported here and here the latest version of XAMPP (the PHP version packed with it) is not compatible with latest Magento versions.

Magento 2 dosen't support the version of php that the latest xampp has packed with it. The problem should be fixed if you download an older version of xampp that has a php version packed compatible with magento 2.

So, as already suggested, the solution is that either you downgrade your PHP version or the complete XAMPP package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM