Actions
Bug #61362
closedCall to a member function getIsStatic() on a non-object in typo3/sysext/extbase/Classes/Persistence/Generic/QueryFactory.php
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2014-09-05
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Hi!
On a freshly installed 6.2.4 I get an error while calling Extbase Command Controller via CLI.
For example firing
php typo3/cli_dispatch.phpsh extbase language:update
results in
PHP Fatal error: Call to a member function getIsStatic() on a non-object in /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Persistence/Generic/QueryFactory.php on line 51 PHP Stack trace: PHP 1. {main}() /var/lib/typo3/TYPO3_6-2/typo3/cli_dispatch.phpsh:0 PHP 2. include() /var/lib/typo3/TYPO3_6-2/typo3/cli_dispatch.phpsh:53 PHP 3. TYPO3\CMS\Extbase\Core\Bootstrap->run() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Scripts/CommandLineLauncher.php:21 PHP 4. TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Core/Bootstrap.php:184 PHP 5. TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler->handleRequest() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Core/Bootstrap.php:195 PHP 6. TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Mvc/Cli/RequestHandler.php:61 PHP 7. TYPO3\CMS\Extbase\Mvc\Controller\CommandController->processRequest() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php:69 PHP 8. TYPO3\CMS\Extbase\Mvc\Controller\CommandController->callCommandMethod() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php:112 PHP 9. call_user_func_array:{/var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php:211}() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php:211 PHP 10. TYPO3\CMS\Lang\Command\LanguageCommandController->updateCommand() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php:211 PHP 11. TYPO3\CMS\Extbase\Object\ObjectManager->get() /var/lib/typo3/TYPO3_6-2/typo3/sysext/lang/Classes/Command/LanguageCommandController.php:43 PHP 12. TYPO3\CMS\Extbase\Object\Container\Container->getInstance() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/ObjectManager.php:94 PHP 13. TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php:108 PHP 14. TYPO3\CMS\Extbase\Object\Container\Container->injectDependencies() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php:162 PHP 15. TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php:218 PHP 16. TYPO3\CMS\Extbase\Object\Container\Container->instanciateObject() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php:161 PHP 17. call_user_func_array:{/var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php:190}() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php:190 PHP 18. TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php:190 PHP 19. TYPO3\CMS\Core\Utility\GeneralUtility::instantiateClass() /var/lib/typo3/TYPO3_6-2/typo3/sysext/core/Classes/Utility/GeneralUtility.php:4346 PHP 20. TYPO3\CMS\Extensionmanager\Utility\Repository\Helper->__construct() /var/lib/typo3/TYPO3_6-2/typo3/sysext/core/Classes/Utility/GeneralUtility.php:4364 PHP 21. TYPO3\CMS\Extbase\Persistence\Repository->findByUid() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extensionmanager/Classes/Utility/Repository/Helper.php:76 PHP 22. TYPO3\CMS\Extbase\Persistence\Repository->findByIdentifier() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Persistence/Repository.php:180 PHP 23. TYPO3\CMS\Extbase\Persistence\Repository->createQuery() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Persistence/Repository.php:208 PHP 24. TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager->createQueryForType() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Persistence/Repository.php:251 PHP 25. TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory->create() /var/lib/typo3/TYPO3_6-2/typo3/sysext/extbase/Classes/Persistence/Generic/PersistenceManager.php:171
In an IRC-Log i found a solution for this problem, but this is a very temporary fix.
14:00 dfeyer Hi strange error with extbase "Call to a member function getIsStatic() on a non-object in QueryFactory.php" just after synchro between a prod server and the dev server ... any idea why ? I try to remove all the cache ... 14:04 dfeyer truncating cf_extbase_datamapfactory_datamap solve the problem ...
Link: http://riesvantwisk.com/cms/home/irc-logs/typo3-irc-log/2013/November/25.html
Actions