Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not install magento2 #2080

Closed
cfcnn opened this issue Oct 11, 2015 · 21 comments
Closed

I can not install magento2 #2080

cfcnn opened this issue Oct 11, 2015 · 21 comments

Comments

@cfcnn
Copy link

cfcnn commented Oct 11, 2015

My environment: centos 6.7, php 5.5.30, nginx 1.8.0, mariadb 10.0.17,

I cloned the Magento GitHub repository git clone -b master git@github.com:magento/magento2.git

There's no error comes out when run " composer install ", everything's normal.
Please see the process:
http://i.imgur.com/ZersO22.gif

monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
zendframework/zend-code suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features)
zendframework/zend-validator suggests installing zendframework/zend-db (Zend\Db component)
zendframework/zend-validator suggests installing zendframework/zend-resources (Translations of validator messages)
zendframework/zend-validator suggests installing zendframework/zend-session (Zend\Session component)
zendframework/zend-i18n suggests installing zendframework/zend-cache (Zend\Cache component)
zendframework/zend-i18n suggests installing zendframework/zend-resources (Translation resources)
zendframework/zend-filter suggests installing zendframework/zend-crypt (Zend\Crypt component)
zendframework/zend-servicemanager suggests installing ocramius/proxy-manager (ProxyManager 0.5.* to handle lazy initialization of services)
zendframework/zend-log suggests installing ext-mongo (*)
zendframework/zend-log suggests installing zendframework/zend-db (Zend\Db component)
zendframework/zend-log suggests installing zendframework/zend-mail (Zend\Mail component)
zendframework/zend-form suggests installing zendframework/zend-captcha (Zend\Captcha component)
zendframework/zend-form suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha component)
zendframework/zend-mvc suggests installing zendframework/zend-authentication (Zend\Authentication component for Identity plugin)
zendframework/zend-mvc suggests installing zendframework/zend-session (Zend\Session component for FlashMessenger, PRG, and FPRG plugins)
zendframework/zend-mvc suggests installing zendframework/zend-version (Zend\Version component)
zendframework/zend-math suggests installing ext-gmp (If using the gmp functionality)
zendframework/zend-math suggests installing ircmaxell/random-lib (Fallback random byte generator for Zend\Math\Rand if OpenSSL/Mcrypt extensions ar                     e unavailable)
zendframework/zend-json suggests installing zendframework/zendxml (To support Zend\Json\Json::fromXml() usage)
zendframework/zend-view suggests installing zendframework/zend-authentication (Zend\Authentication component)
zendframework/zend-view suggests installing zendframework/zend-feed (Zend\Feed component)
zendframework/zend-view suggests installing zendframework/zend-navigation (Zend\Navigation component)
zendframework/zend-view suggests installing zendframework/zend-paginator (Zend\Paginator component)
zendframework/zend-view suggests installing zendframework/zend-permissions-acl (Zend\Permissions\Acl component)
symfony/event-dispatcher suggests installing symfony/http-kernel ()
lusitanian/oauth suggests installing predis/predis (Allows using the Redis storage backend.)
lusitanian/oauth suggests installing symfony/http-foundation (Allows using the Symfony Session storage backend.)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
sjparkinson/static-review suggests installing sensiolabs/security-checker (Required for ComposerSecurityReview.)
Generating autoload files

When run " magento setup:install ", error occurs, please see the process:
http://i.imgur.com/ktcO8si.gif

[Progress: 104 / 282]
Module 'Magento_Indexer':
Running recurring..


  [Magento\Framework\Exception\LocalizedException]
  A method by name offsetUnset already exists in this class.



setup:install [--backend-frontname="..."] [--key="..."] [--session-save="..."] [--definition-format="..."] [--db-host="..."] [--db-name="..."] [--db-user="..."] [--db-engine="..."] [--db-password="..."] [--db-prefix="..."] [--db-model="..."] [--db-init-statements="..."] [-s|--skip-db-validation] [--base-url="..."] [--language="..."] [--timezone="..."] [--currency="..."] [--use-rewrites="..."] [--use-secure="..."] [--base-url-secure="..."] [--use-secure-admin="..."] [--admin-use-security-key="..."] [--admin-user="..."] [--admin-password="..."] [--admin-email="..."] [--admin-firstname="..."] [--admin-lastname="..."] [--cleanup-database] [--sales-order-increment-prefix="..."] [--use-sample-data] [--magento-init-params="..."]

When I install it at www.domain.com/setup/, error occurs, please see the process:
http://i.imgur.com/9rVUuPW.gif

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/wwwroot/www.domain.com/lib/internal/Magento/Framework/Code/Generator.php:106
Stack trace:
#0 /home/wwwroot/www.domain.com/lib/internal/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/wwwroot/www.domain.com/lib/internal/Magento/Framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\\Store\\M...')
#4 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Store\\M...')
#5 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php(73): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Store\\M...')
#6 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...', Array)
#7 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Data/Collection/EntityFactory.php(37): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Store\\M...', Array)
#8 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Data/Collection.php(610): Magento\Framework\Data\Collection\EntityFactory->create('Magento\\Store\\M...')
#9 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(575): Magento\Framework\Data\Collection->getNewEmptyItem()
#10 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Data/Collection/AbstractDb.php(556): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false)
#11 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/Resource/Store/Collection.php(165): Magento\Framework\Data\Collection\AbstractDb->load(false, false)
#12 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Data/Collection.php(831): Magento\Store\Model\Resource\Store\Collection->load()
#13 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/Storage/Db.php(210): Magento\Framework\Data\Collection->count()
#14 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/Storage/Db.php(468): Magento\Store\Model\Storage\Db->_initStores()
#15 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/StorageFactory.php(142): Magento\Store\Model\Storage\Db->reinitStores()
#16 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/StorageFactory.php(117): Magento\Store\Model\StorageFactory->_reinitStores(Object(Magento\Store\Model\Storage\Db), Array)
#17 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/StoreManager.php(121): Magento\Store\Model\StorageFactory->get(Array)
#18 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/StoreManager.php(175): Magento\Store\Model\StoreManager->_getStorage()
#19 /home/wwwroot/www.domain.com/var/generation/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManager->getStore(NULL)
#20 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL)
#21 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Config/ScopePool.php(119): Magento\Store\Model\Resolver\Store->getScope(NULL)
#22 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Config/ScopePool.php(74): Magento\Framework\App\Config\ScopePool->_getScopeCode('store', NULL)
#23 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Config.php(45): Magento\Framework\App\Config\ScopePool->getScope('store', NULL)
#24 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Config.php(58): Magento\Framework\App\Config->getValue('catalog/fronten...', 'store', NULL)
#25 /home/wwwroot/www.domain.com/app/code/Magento/Catalog/Model/Indexer/AbstractFlatState.php(57): Magento\Framework\App\Config->isSetFlag('catalog/fronten...', 'store')
#26 /home/wwwroot/www.domain.com/app/code/Magento/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/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(68): call_user_func_array(Array, Array)
#29 /home/wwwroot/www.domain.com/lib/internal/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/wwwroot/www.domain.com/app/code/Magento/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/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#33 /home/wwwroot/www.domain.com/var/generation/Magento/Indexer/Model/Config/Data/Interceptor.php(39): Magento\Indexer\Model\Config\Data\Interceptor->___callPlugins('get', Array, Array)
#34 /home/wwwroot/www.domain.com/var/generation/Magento/Indexer/Model/Config/Data/Proxy.php(103): Magento\Indexer\Model\Config\Data\Interceptor->get(NULL, NULL)
#35 /home/wwwroot/www.domain.com/app/code/Magento/Indexer/Model/Config.php(30): Magento\Indexer\Model\Config\Data\Proxy->get()
#36 /home/wwwroot/www.domain.com/app/code/Magento/Indexer/Setup/Recurring.php(89): Magento\Indexer\Model\Config->getIndexers()
#37 /home/wwwroot/www.domain.com/setup/src/Magento/Setup/Model/Installer.php(784): Magento\Indexer\Setup\Recurring->install(Object(Magento\Setup\Module\Setup), Object(Magento\Setup\Model\ModuleContext))
#38 /home/wwwroot/www.domain.com/setup/src/Magento/Setup/Model/Installer.php(695): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema')
#39 [internal function]: Magento\Setup\Model\Installer->installSchema()
#40 /home/wwwroot/www.domain.com/setup/src/Magento/Setup/Model/Installer.php(298): call_user_func_array(Array, Array)
#41 /home/wwwroot/www.domain.com/setup/src/Magento/Setup/Controller/Install.php(87): Magento\Setup\Model\Installer->install(Array)
#42 /home/wwwroot/www.domain.com/vendor/zendframework/zend-mvc/Controller/AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction()
#43 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#44 /home/wwwroot/www.domain.com/vendor/zendframework/zend-eventmanager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#45 /home/wwwroot/www.domain.com/vendor/zendframework/zend-eventmanager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#46 /home/wwwroot/www.domain.com/vendor/zendframework/zend-mvc/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#47 /home/wwwroot/www.domain.com/vendor/zendframework/zend-mvc/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/wwwroot/www.domain.com/vendor/zendframework/zend-eventmanager/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#50 /home/wwwroot/www.domain.com/vendor/zendframework/zend-eventmanager/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#51 /home/wwwroot/www.domain.com/vendor/zendframework/zend-mvc/Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#52 /home/wwwroot/www.domain.com/setup/index.php(31): Zend\Mvc\Application->run()
#53 {main}

When run " magento setup:uninstall ", error occurs
Autoload error: A method by name getIterator already exists in this class.

The same problem: #1947

Please help me. Thanks.
Regards

@ghost
Copy link

ghost commented Oct 11, 2015

You can try removing var/cache/*, var/generation/*, var/di/*, var/page_cache/* and trying to uninstall again.

You can also try cloning again into an empty directory and trying the install again.

@NadiyaS NadiyaS added the PS label Oct 12, 2015
@mazhalai
Copy link
Contributor

@cfcnn can you please try @xcomSteveJohnson's suggestion and let us know if that helped?

@cfcnn
Copy link
Author

cfcnn commented Oct 14, 2015

Hi, @mazhalai @xcomSteveJohnson's suggestion is not working. I think I might find the solution, I need more time to test, I'll update later.

@cfcnn
Copy link
Author

cfcnn commented Oct 14, 2015

All tests were based on VMware 11, Centos 6.7 , nginx 1.8.0 & 1.9.0, php 5.5.25, 5.5.30,5.6.9, 5.6.14, mysql 5.6, mariadb 10.0.17, 10.0.21. No matter under what combination, it occurs the same error. All Magento2 installations failed even I kept changing the values of Centos, nginx, php.ini, my.cnf .

Magento 2 was installed successfully in production environment.

I have no idea what the problem exactly is. Maybe it's just a special case for me.

@orlangur
Copy link
Contributor

@cfcnn, this problem does not seem to be env-specific.

Do you try clean Magento 2 installation or there are some additional modules? With latest develop, cleaned up var/* and database, executed composer install in advance does it show the same result now?

@orlangur
Copy link
Contributor

Hmmm, very interesting, there is quite old similar issue also: #462 So, it could be something related to PHP Reflection behavior differences.

@cfcnn
Copy link
Author

cfcnn commented Oct 14, 2015

In order to keep all procedures pure, I reinstalled Centos, nginx, php, mysql,magento2.
Every magento2 installation was cloned by "git clone -b master git@github.com:magento/magento2.git" , it's supposed to be the latest version.
Before installation, the var/* directory is checked and confirmed clean,

The production environment : centos 6.4, nginx 1.8.0, php 5.6.14, mariadb 10.0.21.
I zip the magento2 installation file of test environment, upload it to production environment,
install it by "php magento setup:install --...", install successfully and work well at frontend and backend.
It is also installed successfully based on production environment of centos, apache, php, mysql.
No errors even reinstalling.
Same installation file is working fine in Win7 wamp.
http://prntscr.com/8r7xih

@orlangur
Copy link
Contributor

I see. Don't know what else could be done here except debugging the code in action.

https://github.com/zendframework/zend-code/blob/3da502f243df7a189b9c1cfc70a96944ef111957/src/Generator/ClassGenerator.php#L751
So, with xdebug breakpoints or some additional temporary var_dumps needs to be tracked all $this-->methods property modifications during generation, to see, how the offsetUnset passes here for the first and second time. Only addMethod and addMethodFromGenerator methods do modify this property.

@buskamuza
Copy link
Contributor

Hi @cfcnn .
Could you, please, provide your phpinfo()/php -i? Thanks.

@cfcnn
Copy link
Author

cfcnn commented Oct 14, 2015

@buskamuza
Copy link
Contributor

Thanks. Could you, please, try to disable opcache and see if it helps?

@cfcnn
Copy link
Author

cfcnn commented Oct 15, 2015

I disabled opcache before you told, it didn't help.
The file phpinfo.txt is what I used in both test environment and production environment.
Just now I test based on php 7.0.0RC4, in docroot, execute "composer install", error occurs:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- This package requires php ~5.5.0|~5.6.0 but your PHP version (7.0.0RC4) does not satisfy that requirement.

@mazhalai
Copy link
Contributor

@cfcnn some package's composer's were not updated. We are working on it. Can you tell us which exact package gave this error?

@cfcnn
Copy link
Author

cfcnn commented Oct 17, 2015

@mazhalai My test environment: centos 6.7, nginx 1.8.0, php 7.0.0RC5, mariadb 10.0.21,
The latest developer version of Magento2 was installed, no error when installing in php 7.0.0RC5,
If install it in php 5.5,5.6, still has the same installation error:

Module 'Magento_Indexer':
Running recurring..

[Magento\Framework\Exception\LocalizedException]
A method by name offsetUnset already exists in this class.

but in php 7.0.0RC5, can't login into backend admin.error as following:
a:4:{i:0;s:36:"Error at offset 10516 of 51611 bytes";i:1;s:7724:"#0 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Model/Menu/Config.php(137): ArrayObject->unserialize('x:i:0;a:10:{i:1...')
#1 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Model/Menu/Config.php(109): Magento\Backend\Model\Menu\Config->_initMenu()
#2 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Block/Menu.php(314): Magento\Backend\Model\Menu\Config->getMenu()
#3 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Model/View/Result/Page.php(61): Magento\Backend\Block\Menu->getMenuModel()
#4 /home/wwwroot/www.domain.com/var/generation/Magento/Backend/Model/View/Result/Page/Interceptor.php(24): Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Backend...')
#5 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Controller/Adminhtml/Dashboard/Index.php(35): Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu('Magento_Backend...')
#6 /home/wwwroot/www.domain.com/var/generation/Magento/Backend/Controller/Adminhtml/Dashboard/Index/Interceptor.php(24): Magento\Backend\Controller\Adminhtml\Dashboard\Index->execute()
#7 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Action/Action.php(102): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->execute()

Test in Win7 wamp(Apache 2.4.10,php5.5.30,mariadb10.0.14), can't login into backend admin, error as following:

a:4:{i:0;s:53:"Class Magento\User\Model\Resource\User does not exist";i:1;s:6216:"#0 D:\www\magento2\lib\internal\Magento\Framework\Code\Reader\ClassReader.php(19): ReflectionClass->__construct('Magento\User\Mo...')
#1 D:\www\magento2\lib\internal\Magento\Framework\ObjectManager\Definition\Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\User\Mo...')
#2 D:\www\magento2\lib\internal\Magento\Framework\ObjectManager\Factory\Dynamic\Developer.php(71): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\User\Mo...')
#3 D:\www\magento2\lib\internal\Magento\Framework\ObjectManager\ObjectManager.php(71): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\User\Mo...')
#4 D:\www\magento2\lib\internal\Magento\Framework\Model\AbstractModel.php(461): Magento\Framework\ObjectManager\ObjectManager->get('Magento\User\Mo...')
#5 D:\www\magento2\lib\internal\Magento\Framework\Model\AbstractModel.php(516): Magento\Framework\Model\AbstractModel->_getResource()
#6 D:\www\magento2\app\code\Magento\User\Model\User.php(509): Magento\Framework\Model\AbstractModel->load(NULL)
#7 D:\www\magento2\app\code\Magento\Backend\App\Action\Plugin\Authentication.php(114): Magento\User\Model\User->reload()
#8 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#9 D:\www\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(68): call_user_func_array(Array, Array)
#10 D:\www\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Array, 'designLoader')
#11 D:\www\magento2\lib\internal\Magento\Framework\App\Action\Plugin\Design.php(39): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#12 [internal function]: Magento\Framework\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#13 D:\www\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(68): call_user_func_array(Array, Array)
#14 D:\www\magento2\lib\internal\Magento\Framework\Interception\Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Array, 'adminMassaction...')
#15 D:\www\magento2\app\code\Magento\Backend\App\Action\Plugin\MassactionKey.php(33): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#16 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#17 D:\www\magento2\lib\internal\Magento\Framework\Interception\Interceptor.php(141): call_user_func_array(Array, Array)
#18 D:\www\magento2\var\generation\Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor.php(39): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#19 D:\www\magento2\lib\internal\Magento\Framework\App\FrontController.php(54): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#20 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#21 D:\www\magento2\lib\internal\Magento\Framework\Interception\Interceptor.php(74): call_user_func_array(Array, Array)
#22 D:\www\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#23 D:\www\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#24 D:\www\magento2\lib\internal\Magento\Framework\Module\Plugin\DbStatusValidator.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#25 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#26 D:\www\magento2\lib\internal\Magento\Framework\Interception\Chain\Chain.php(68): call_user_func_array(Array, Array)
#27 D:\www\magento2\lib\internal\Magento\Framework\Interception\Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'storeCookieVali...')
#28 D:\www\magento2\app\code\Magento\Store\Model\Plugin\StoreCookie.php(78): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#29 [internal function]: Magento\Store\Model\Plugin\StoreCookie->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#30 D:\www\magento2\lib\internal\Magento\Framework\Interception\Interceptor.php(141): call_user_func_array(Array, Array)
#31 D:\www\magento2\var\generation\Magento\Framework\App\FrontController\Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#32 D:\www\magento2\lib\internal\Magento\Framework\App\Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#33 D:\www\magento2\lib\internal\Magento\Framework\App\Bootstrap.php(258): Magento\Framework\App\Http->launch()
#34 D:\www\magento2\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#35 {main}";s:3:"url";s:7:"/admin/";s:11:"script_name";s:10:"/index.php";}

@mazhalai
Copy link
Contributor

@cfcnn are you on the develop or master branch? The class Magento\User\Model\Resource\User has been renamed to Magento\User\Model\ResourceModel\User in the develop branch, to be compliant with PHP 7. Please see
https://github.com/magento/magento2/blob/develop/app/code/Magento/User/Model/ResourceModel/User.php

@daim2k5
Copy link
Contributor

daim2k5 commented Nov 4, 2015

@cfcnn do you get still the error in the develop branch?

@cfcnn
Copy link
Author

cfcnn commented Nov 10, 2015

@daim2k5 Can install Magento2.0 rc develop branch in PHP7, but can not login backend.
check the error log file in var/report

a:4:{i:0;s:36:"Error at offset 10516 of 51608 bytes";i:1;s:7724:"#0 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Model/Menu/Config.php(137): ArrayObject->unserialize('x:i:0;a:10:{i:1...')
#1 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Model/Menu/Config.php(109): Magento\Backend\Model\Menu\Config->_initMenu()
#2 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Block/Menu.php(314): Magento\Backend\Model\Menu\Config->getMenu()
#3 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Model/View/Result/Page.php(61): Magento\Backend\Block\Menu->getMenuModel()
#4 /home/wwwroot/www.domain.com/var/generation/Magento/Backend/Model/View/Result/Page/Interceptor.php(24): Magento\Backend\Model\View\Result\Page->setActiveMenu('Magento_Backend...')
#5 /home/wwwroot/www.domain.com/app/code/Magento/Backend/Controller/Adminhtml/Dashboard/Index.php(35): Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu('Magento_Backend...')
#6 /home/wwwroot/www.domain.com/var/generation/Magento/Backend/Controller/Adminhtml/Dashboard/Index/Interceptor.php(24): Magento\Backend\Controller\Adminhtml\Dashboard\Index->execute()
#7 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Action/Action.php(102): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->execute()
#8 /home/wwwroot/www.domain.com/app/code/Magento/Backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#9 [internal function]: Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#10 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#11 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->___callParent('dispatch', Array)
#12 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Array, 'adminAuthentica...')
#13 /home/wwwroot/www.domain.com/app/code/Magento/Backend/App/Action/Plugin/Authentication.php(135): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#14 [internal function]: Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#15 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array)
#16 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Array, 'designLoader')
#17 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Action/Plugin/Design.php(39): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#18 [internal function]: Magento\Framework\App\Action\Plugin\Design->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#19 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array)
#20 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Array, 'adminMassaction...')
#21 /home/wwwroot/www.domain.com/app/code/Magento/Backend/App/Action/Plugin/MassactionKey.php(33): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#22 [internal function]: Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#23 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Interceptor.php(140): call_user_func_array(Array, Array)
#24 /home/wwwroot/www.domain.com/var/generation/Magento/Backend/Controller/Adminhtml/Dashboard/Index/Interceptor.php(39): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#25 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/FrontController.php(55): Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#26 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#27 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#28 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#29 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#30 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#31 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#32 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array)
#33 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Interceptor.php(136): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'storeCookieVali...')
#34 /home/wwwroot/www.domain.com/app/code/Magento/Store/Model/Plugin/StoreCookie.php(78): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#35 [internal function]: Magento\Store\Model\Plugin\StoreCookie->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#36 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/Interception/Interceptor.php(140): call_user_func_array(Array, Array)
#37 /home/wwwroot/www.domain.com/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#38 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#39 /home/wwwroot/www.domain.com/lib/internal/Magento/Framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#40 /home/wwwroot/www.domain.com/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#41 {main}";s:3:"url";s:98:"/admin/admin/dashboard/index/key/3d73b7045f45e11bea71d16903e1338951c603c0a67c0802e8e6b4cd75159037/";s:11:"script_name";s:10:"/index.php";}

Another error :

php -f bin/magento setup:static-content:deploy

Requested languages: en_US
=== frontend -> Magento/luma -> en_US ===
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Compilation from source:
frontend/Magento/luma/en_US/css/email.less
variable @modal-slide-header__padding-vertical is undefined in file /home/wwwroot/www.domain.com/var/view_preprocessed/css/frontend/Magento/luma/en_US/css/source/_theme.less in _theme.less on line 254, column 37
252| // Modal popup
253| @modal-action-close__font-size: @font-size__base;
254| @modal-slide-action-close__padding: @modal-slide-header__padding-vertical @modal-popup__padding;
255|
256| // Checkout tooltip icon
257| @checkout-tooltip-icon__font-size: 21px;>

@ishakhsuvarov
Copy link
Contributor

@cfcnn Try updating you PHP7 to the newest version.
This issue seems to originate from PHP 7 bug #70730 which was fixed in PHP 7.0.0 RC 6

@Vinai
Copy link
Contributor

Vinai commented Nov 10, 2015

Regarding the static content display error, please check #2273

@dmitrii-fediuk
Copy link

My universal fix for all the «variable @modal-slide-header__padding-vertical is undefined» problems: https://mage2.pro/t/193

@daim2k5
Copy link
Contributor

daim2k5 commented Nov 25, 2015

@cfcnn do you have still the issue?

magento-engcom-team pushed a commit that referenced this issue Feb 16, 2018
[Pangolin] Deliver Test Fixes

- MQE-741: Two steps with same step key, the later step will overwrite the previous step
- MQE-799: Bump MFTF version to 2.0.3 and test fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants