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

Indexer.php error --dev76 #567

Closed
clockworkgeek opened this issue May 6, 2014 · 3 comments
Closed

Indexer.php error --dev76 #567

clockworkgeek opened this issue May 6, 2014 · 3 comments
Assignees

Comments

@clockworkgeek
Copy link

Today I tried the command line indexer and saw this:

$ php -f dev/shell/newindexer.php -- reindexall
Error happened during application run.

Note this was with PHP 5.4. The log shows this:

2014-05-06T12:40:07+00:00 ERR (3): 
exception 'Zend_Exception' with message 'dbModel read resource does not implement \Zend_Db_Adapter_Abstract' in /XXX/lib/Magento/Framework/Data/Collection/Db.php:186
Stack trace:
#0 /XXX/lib/Magento/Framework/Model/Resource/Db/Collection/AbstractCollection.php(135): Magento\Framework\Data\Collection\Db->setConnection(false)
#1 /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php(215): Magento\Framework\Model\Resource\Db\Collection\AbstractCollection->__construct(Object(Magento\Core\Model\EntityFactory), Object(Magento\Framework\Logger), Object(Magento\Framework\Data\Collection\Db\FetchStrategy\Query), Object(Magento\Framework\Event\Manager\Proxy), NULL, NULL)
#2 /XXX/lib/Magento/Framework/ObjectManager/ObjectManager.php(74): Magento\Framework\ObjectManager\Factory\Factory->create('Magento\Indexer...', Array)
#3 /XXX/var/generation/Magento/Indexer/Model/Resource/Indexer/State/CollectionFactory.php(43): Magento\Framework\ObjectManager\ObjectManager->create('Magento\Indexer...', Array)
#4 /XXX/app/code/Magento/Indexer/Model/Indexer/Collection.php(72): Magento\Indexer\Model\Resource\Indexer\State\CollectionFactory->create()
#5 /XXX/lib/Magento/Framework/Data/Collection.php(697): Magento\Indexer\Model\Indexer\Collection->loadData(false, false)
#6 /XXX/lib/Magento/Framework/Data/Collection.php(354): Magento\Framework\Data\Collection->load()
#7 /XXX/app/code/Magento/Indexer/Model/Shell.php(216): Magento\Framework\Data\Collection->getItems()
#8 /XXX/app/code/Magento/Indexer/Model/Shell.php(95): Magento\Indexer\Model\Shell->parseIndexerString('all')
#9 /XXX/app/code/Magento/Indexer/Model/Shell.php(74): Magento\Indexer\Model\Shell->runShowInfo()
#10 /XXX/app/code/Magento/Indexer/App/Shell.php(69): Magento\Indexer\Model\Shell->run()
#11 /XXX/lib/Magento/Framework/App/EntryPoint/EntryPoint.php(80): Magento\Indexer\App\Shell->launch()
#12 /XXX/dev/shell/newindexer.php(34): Magento\Framework\App\EntryPoint\EntryPoint->run('Magento\Indexer...', Array)
#13 {main}

When attempting with PHP 5.5 this is the output instead:

$ php -f dev/shell/newindexer.php -- reindexall
PHP Warning:  Invalid argument supplied for foreach() in /XXX/lib/Magento/Framework/Module/Declaration/FileResolver.php on line 90
PHP Stack trace:
PHP   1. {main}() /XXX/dev/shell/newindexer.php:0
PHP   2. Magento\Framework\App\EntryPoint\EntryPoint->run() /XXX/dev/shell/newindexer.php:34
PHP   3. Magento\Framework\App\ObjectManagerFactory->create() /XXX/lib/Magento/Framework/App/EntryPoint/EntryPoint.php:77
PHP   4. Magento\Framework\ObjectManager\ObjectManager->get() /XXX/lib/Magento/Framework/App/ObjectManagerFactory.php:140
PHP   5. Magento\Framework\ObjectManager\Factory\Factory->create() /XXX/lib/Magento/Framework/ObjectManager/ObjectManager.php:87
PHP   6. Magento\Framework\ObjectManager\Factory\Factory->_resolveArguments() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:197
PHP   7. Magento\Framework\ObjectManager\ObjectManager->get() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:130
PHP   8. Magento\Framework\ObjectManager\Factory\Factory->create() /XXX/lib/Magento/Framework/ObjectManager/ObjectManager.php:87
PHP   9. Magento\Framework\ObjectManager\Factory\Factory->_resolveArguments() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:197
PHP  10. Magento\Framework\ObjectManager\ObjectManager->get() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:130
PHP  11. Magento\Framework\ObjectManager\Factory\Factory->create() /XXX/lib/Magento/Framework/ObjectManager/ObjectManager.php:87
PHP  12. Magento\Framework\ObjectManager\Factory\Factory->_resolveArguments() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:197
PHP  13. Magento\Framework\ObjectManager\ObjectManager->get() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:130
PHP  14. Magento\Framework\ObjectManager\Factory\Factory->create() /XXX/lib/Magento/Framework/ObjectManager/ObjectManager.php:87
PHP  15. Magento\Framework\ObjectManager\Factory\Factory->_resolveArguments() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:197
PHP  16. Magento\Framework\ObjectManager\ObjectManager->get() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:130
PHP  17. Magento\Framework\ObjectManager\Factory\Factory->create() /XXX/lib/Magento/Framework/ObjectManager/ObjectManager.php:87
PHP  18. Magento\Framework\Module\ModuleList->__construct() /XXX/lib/Magento/Framework/ObjectManager/Factory/Factory.php:209
PHP  19. Magento\Framework\Module\Declaration\Reader\Filesystem->read() /XXX/lib/Magento/Framework/Module/ModuleList.php:56
PHP  20. Magento\Framework\Config\Reader\Filesystem->read() /XXX/lib/Magento/Framework/Module/Declaration/Reader/Filesystem.php:114
PHP  21. Magento\Framework\Module\Declaration\FileResolver->get() /XXX/lib/Magento/Framework/Config/Reader/Filesystem.php:133
Error happened during application run.
Could not write error message to log. Please use developer mode to see the message.
@verklov verklov self-assigned this May 14, 2014
@verklov
Copy link
Contributor

verklov commented May 14, 2014

@clockworkgeek, thank you for reporting this issue! The team will investigate on it and we will get back to you once we have the results.

@clockworkgeek
Copy link
Author

I can no longer recreate the above. I may have gotten the database permissions wrong, it was something I changed recently and now the indexer performs flawlessly.

@verklov
Copy link
Contributor

verklov commented May 15, 2014

Good to hear you cannot replicate the issue any more. Please close this issue if it does not show up. Thank you for reporting this anyway!

magento-team pushed a commit that referenced this issue Oct 21, 2015
[Merchant Beta] [MPI] [Sparta] Sprint70_merchant_beta
okorshenko pushed a commit that referenced this issue Dec 14, 2016
MAGETWO-60460: Remove minor changes in Payment and Vault API
magento-devops-reposync-svc pushed a commit that referenced this issue Dec 4, 2023
ACPT-1587:  fixing static test failures for ACPT-1587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants