cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.0.4 Installation Error at 36%

Magento 2.0.4 Installation Error at 36%

WHY is this happening? Per my research it has something to do with my permissions but I didnt really want to preference this by saying that as it may NOT be MY problem. I've been working on this 2 weeks now Smiley Sad Please give me some insight as to whats wrong or exactly WHAT permissions each folder should be. I dont understand what this permissions documentation means because I've changed those 3 folders(var, pub, and app/etc) to 770 and still got the error so please tell me what I'm missing.

 

I passed the readiness check with no problems. My site is on a VPS with PHP 5.6 and MySql 5.6.0

 

Module 'Magento_Indexer':
Running recurring.. 
[ERROR] exception 'Magento\Framework\Exception\LocalizedException' with message 'A method by name offsetUnset already exists in this class.' in /home/coolname/public_html/vendor/magento/framework/Code/Generator.php:103
Stack trace:
#0 /home/coolname/public_html/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\\Store\\M...')
#1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\\Store\\M...')
#2 [internal function]: spl_autoload_call('Magento\\Store\\M...')
#3 /home/coolname/public_html/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\\Store\\M...')
#4 /home/coolname/public_html/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Store\\M...')
#5 /home/coolname/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(71): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Store\\M...')
#6 /home/coolname/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...', Array)
#7 /home/coolname/public_html/vendor/magento/framework/Data/Collection/EntityFactory.php(37): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Store\\M...', Array)
#8 /home/coolname/public_html/vendor/magento/framework/Data/Collection.php(610): Magento\Framework\Data\Collection\EntityFactory->create('Magento\\Store\\M...')
#9 /home/coolname/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(569): Magento\Framework\Data\Collection->getNewEmptyItem()
#10 /home/coolname/public_html/vendor/magento/framework/Data/Collection/AbstractDb.php(550): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false)
#11 /home/coolname/public_html/vendor/magento/module-store/Model/ResourceModel/Website/Collection.php(119): Magento\Framework\Data\Collection\AbstractDb->load(false, false)
#12 /home/coolname/public_html/vendor/magento/framework/Data/Collection.php(333): Magento\Store\Model\ResourceModel\Website\Collection->load()
#13 /home/coolname/public_html/vendor/magento/module-store/Model/WebsiteRepository.php(124): Magento\Framework\Data\Collection->getItems()
#14 /home/coolname/public_html/vendor/magento/module-store/Model/StoreResolver/Website.php(46): Magento\Store\Model\WebsiteRepository->getDefault()
#15 /home/coolname/public_html/vendor/magento/module-store/Model/StoreResolver.php(130): Magento\Store\Model\StoreResolver\Website->getAllowedStoreIds(NULL)
#16 /home/coolname/public_html/vendor/magento/module-store/Model/StoreResolver.php(116): Magento\Store\Model\StoreResolver->readStoresData()
#17 /home/coolname/public_html/vendor/magento/module-store/Model/StoreResolver.php(85): Magento\Store\Model\StoreResolver->getStoresData()
#18 /home/coolname/public_html/vendor/magento/module-store/Model/StoreManager.php(151): Magento\Store\Model\StoreResolver->getCurrentStoreId()
#19 /home/coolname/public_html/var/generation/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL)
#20 /home/coolname/public_html/vendor/magento/module-store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL)
#21 /home/coolname/public_html/vendor/magento/framework/App/Config/ScopePool.php(119): Magento\Store\Model\Resolver\Store->getScope(NULL)
#22 /home/coolname/public_html/vendor/magento/framework/App/Config/ScopePool.php(74): Magento\Framework\App\Config\ScopePool->_getScopeCode('store', NULL)
#23 /home/coolname/public_html/vendor/magento/framework/App/Config.php(45): Magento\Framework\App\Config\ScopePool->getScope('store', NULL)
#24 /home/coolname/public_html/vendor/magento/framework/App/Config.php(58): Magento\Framework\App\Config->getValue('catalog/fronten...', 'store', NULL)
#25 /home/coolname/public_html/vendor/magento/module-catalog/Model/Indexer/AbstractFlatState.php(57): Magento\Framework\App\Config->isSetFlag('catalog/fronten...', 'store')
#26 /home/coolname/public_html/vendor/magento/module-catalog/Model/Indexer/Category/Flat/Plugin/IndexerConfigData.php(42): Magento\Catalog\Model\Indexer\AbstractFlatState->isFlatEnabled()
#27 [internal function]: Magento\Catalog\Model\Indexer\Category\Flat\Plugin\IndexerConfigData->aroundGet(Object(Magento\Indexer\Model\Config\Data\Interceptor), Object(Closure), NULL, NULL)
#28 /home/coolname/public_html/vendor/magento/framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#29 /home/coolname/public_html/vendor/magento/framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Indexer...', 'get', Object(Magento\Indexer\Model\Config\Data\Interceptor), Array, 'indexerProductF...')
#30 /home/coolname/public_html/vendor/magento/module-catalog/Model/Indexer/Product/Flat/Plugin/IndexerConfigData.php(41): Magento\Indexer\Model\Config\Data\Interceptor->Magento\Framework\Interception\{closure}(NULL, NULL)
#31 [internal function]: Magento\Catalog\Model\Indexer\Product\Flat\Plugin\IndexerConfigData->aroundGet(Object(Magento\Indexer\Model\Config\Data\Interceptor), Object(Closure), NULL, NULL)
#32 /home/coolname/public_html/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#33 /home/coolname/public_html/var/generation/Magento/Indexer/Model/Config/Data/Interceptor.php(39): Magento\Indexer\Model\Config\Data\Interceptor->___callPlugins('get', Array, Array)
#34 /home/coolname/public_html/var/generation/Magento/Indexer/Model/Config/Data/Proxy.php(103): Magento\Indexer\Model\Config\Data\Interceptor->get(NULL, NULL)
#35 /home/coolname/public_html/vendor/magento/module-indexer/Model/Config.php(32): Magento\Indexer\Model\Config\Data\Proxy->get()
#36 /home/coolname/public_html/vendor/magento/module-indexer/Setup/Recurring.php(90): Magento\Indexer\Model\Config->getIndexers()
#37 /home/coolname/public_html/setup/src/Magento/Setup/Model/Installer.php(821): Magento\Indexer\Setup\Recurring->install(Object(Magento\Setup\Module\Setup), Object(Magento\Setup\Model\ModuleContext))
#38 /home/coolname/public_html/setup/src/Magento/Setup/Model/Installer.php(732): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema')
#39 [internal function]: Magento\Setup\Model\Installer->installSchema()
#40 /home/coolname/public_html/setup/src/Magento/Setup/Model/Installer.php(331): call_user_func_array(Array, Array)
#41 /home/coolname/public_html/setup/src/Magento/Setup/Controller/Install.php(97): Magento\Setup\Model\Installer->install(Array)
#42 /home/coolname/public_html/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction()
#43 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#44 /home/coolname/public_html/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#45 /home/coolname/public_html/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#46 /home/coolname/public_html/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#47 /home/coolname/public_html/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#48 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#49 /home/coolname/public_html/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#50 /home/coolname/public_html/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#51 /home/coolname/public_html/vendor/zendframework/zend-mvc/src/Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#52 /home/coolname/public_html/setup/index.php(31): Zend\Mvc\Application->run()
#53 {main}

 

8 REPLIES 8

Re: Magento 2.0.4 Installation Error at 36%

Please execute the php -v command from the command line standing in the Magento 2 root folder.

Re: Magento 2.0.4 Installation Error at 36%

Hi Dmitry,

 

I'm not sure what that means but I forwarded it to my host and they told me to provide you with this:

 

---
root@host [/home/coolname/public_html]# php -v
PHP 5.6.19 (cli) (built: Mar 29 2016 22:33:20)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
---

Re: Magento 2.0.4 Installation Error at 36%

Ive been obsessively stalking this thread since yesterday..... Anyone?

Re: Magento 2.0.4 Installation Error at 36%

Are there any Magento experts on this forum who care to assist with this problem?

Re: Magento 2.0.4 Installation Error at 36%

So 2.0.5 has been released and this is still happening. Also nearly a month later and still no feedback.... WHY?!?!!!!!!!

Re: Magento 2.0.4 Installation Error at 36%

Hello,

 

Ask your hosting support if they can install or enable PHP7 for you.

 

Then try to install Magento with PHP7

 

https://github.com/magento/magento2/issues/2080

 

 

 

 

Stanislav

Re: Magento 2.0.4 Installation Error at 36%

Does this got fix? I am having same issue I am pretty sure I am using php7

Re: Magento 2.0.4 Installation Error at 36%

Don't try install Magento with pure FTP. allways likely to give corrupted filesystem

Plenty hosters providing a custom ready install. You dont even need to make database first with some.

Magento 2 runs with PHP 5.6 and MYSQL 5.6 No need for PHP 7.

On some hosters you might try a so called GIT install. Not allways succesfull. But fast.

FTP clients take hours! Major hosters also allow drag and drop a zip or tar.gz install download from Magento.com.

 

Be sure to CHMOD the required directories to right permissions.

1.x versions are called with INSTALL, 2.x versions are called with SETUP.

Broken maintenance routines are rstarred by removing that mainttenance flag file in the folder VAR

 

System back-ups from whole system from within Magento are likely to be never carried out. (Incompleted and in wrong folder). promides themes for certaijn versions might not work as promised. Most install instructions are poor.

Like those misleading composer stories. On a hoster you dont need composer.....

 

Yup, I did ran around bunches of FAQ's with people pointing to very interesting PHP adventures. At the end: You dont need to know any PHP, basic knowledge of PHP-admin only and a suitable hoster. Price tag not that important.

Got 2 running on a free account. The difficult part is setting up actual shop.