Project

General

Profile

Actions

Bug #61362

closed

Call to a member function getIsStatic() on a non-object in typo3/sysext/extbase/Classes/Persistence/Generic/QueryFactory.php

Added by David Greiner about 10 years ago. Updated over 7 years ago.

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 #1

Updated by David Greiner about 10 years ago

I am using PHP 5.4.31

Actions #2

Updated by Anja Leichsenring about 10 years ago

  • Project changed from 534 to TYPO3 Core
  • Category set to Extbase
  • TYPO3 Version set to 6.2
  • Is Regression set to No
Actions #3

Updated by Stefan Masztalerz almost 10 years ago

Same Problem here when using IGBinary under 5.3.27 and calling the Backend.

Deactivating IGBinary fixes the problem.

Actions #4

Updated by Wouter Wolters over 9 years ago

  • Status changed from New to Needs Feedback

Looks more an IGbinary issue. Is this still a problem in version 7?

Actions #5

Updated by Marco Ziesing about 9 years ago

Got this error in TYPO3 6.2.15 for the scheduler task "Update extension list".

php typo3/cli_dispatch.phpsh extbase language:update
runs without error.

PHP 5.6.13 with and without igbinary extension (cleared all caches after uninstall).
"cf_extbase_datamapfactory_datamap" and "cf_extbase_datamapfactory_datamap_tags" are empty.

Actions #6

Updated by Daniel Goerz over 8 years ago

  • Status changed from Needs Feedback to Closed

I close this due to lack of feedback and also beause I am not able to reproduce this issue on 7 LTS or master.

If the issue still exists in these branches please don't hesitate to reopen the ticket or to file a new ticket with the according steps to reproduce.

Actions #7

Updated by Miron Ogrodowicz Ogrodowicz over 7 years ago

Just wanted to share my experience with this issue.

I ran into this when switching from a server where the igbinary extension was not initially installed. On the destination server the igbinary extension was installed and therefore the already serialized data from the old server (serialized with the default php serialize function) could not be decoded with igbinary_unserialize.

Typo3 7.6.9
php 7.0.19-1

Actions

Also available in: Atom PDF