Bug #67985
closedRegression: Change in FileHandlingUtility leads to race condition
0%
Description
After upgrading from 6.2.13 to 6.2.14, a site threw errors in the form:
Fatal error: Call to a member function includeLLFile() on null in /kunden/../TYPO3.CMS/typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php on line 44
It seems there must be some race condition in initializing contexts. The Language Service on $GLOBALS doesnt seem to be fully populated in some cases where extbase initializes the Utility through the initializeObject method.
Updated by Cedric Ziel over 9 years ago
BTW: This was introduced through af872e2698080c51d8e27479af5fd9f53da091f5
Updated by Stephan Großberndt over 9 years ago
Which is https://review.typo3.org/#/c/40776/2
Updated by Andreas Moeller over 9 years ago
I get the same problem from update to 6.2.13 to 6.2.14
Updated by Gerwin Kramer over 9 years ago
I also get the same problem with the upgrade from 6.2.13 to 6.2.14
Updated by Florian Engelke over 9 years ago
Same error:
( ! ) Fatal error: Call to a member function includeLLFile() on a non-object in /home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php on line 44 Call Stack # Time Memory Function Location 1 0.0003 247384 {main}( ) .../index.php:0 2 0.0256 3086600 require( '/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/cms/tslib/index_ts.php' ) .../index.php:28 3 0.4404 22064544 TYPO3\CMS\Frontend\Page\PageGenerator::renderContent( ) .../index_ts.php:212 4 0.4404 22064616 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGet( ) .../PageGenerator.php:214 5 0.4405 22065736 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle( ) .../ContentObjectRenderer.php:697 6 0.4423 22234784 TYPO3\CMS\Frontend\ContentObject\UserContentObject->render( ) .../ContentObjectRenderer.php:752 7 0.4423 22235232 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction( ) .../UserContentObject.php:41 8 0.4429 22281656 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:6634} ( ) .../ContentObjectRenderer.php:6634 9 0.4429 22281736 TYPO3\CMS\Extbase\Core\Bootstrap->run( ) .../ContentObjectRenderer.php:6634 10 0.4994 24544720 TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest( ) .../Bootstrap.php:184 11 0.5110 24953576 TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler->handleRequest( ) .../Bootstrap.php:195 12 0.5769 25832632 TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch( ) .../FrontendRequestHandler.php:56 13 0.6385 26329512 TYPO3\CMS\Extbase\Mvc\Controller\ActionController->processRequest( ) .../Dispatcher.php:69 14 1.3175 32138432 TYPO3\CMS\Extbase\Mvc\Controller\ActionController->callActionMethod( ) .../ActionController.php:157 15 1.3183 32219080 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:286} ( ) .../ActionController.php:286 16 1.3183 32219496 FluidTYPO3\Flux\Controller\AbstractFluxController->renderAction( ) .../ActionController.php:286 17 1.3197 32235448 FluidTYPO3\Flux\Controller\AbstractFluxController->performSubRendering( ) .../AbstractFluxController.php:217 18 1.3204 32281736 FluidTYPO3\Flux\Controller\AbstractFluxController->callSubControllerAction( ) .../AbstractFluxController.php:245 19 1.3216 32289200 TYPO3\CMS\Extbase\Mvc\Controller\ActionController->processRequest( ) .../AbstractFluxController.php:280 20 1.3359 32320656 TYPO3\CMS\Extbase\Mvc\Controller\ActionController->callActionMethod( ) .../ActionController.php:157 21 1.3360 32321792 TYPO3\CMS\Fluid\View\AbstractTemplateView->render( ) .../ActionController.php:327 22 1.4238 32511232 TYPO3\CMS\Fluid\Core\Parser\ParsingState->render( ) .../AbstractTemplateView.php:182 23 1.4238 32511232 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\RootNode->evaluate( ) .../ParsingState.php:82 24 1.4238 32511232 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode->evaluateChildNodes( ) .../RootNode.php:26 25 2.5643 42269760 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode->evaluate( ) .../AbstractNode.php:47 26 2.5644 42271936 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender( ) .../ViewHelperNode.php:132 27 2.5644 42271936 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod( ) .../AbstractViewHelper.php:230 28 2.5644 42273152 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:248} ( ) .../AbstractViewHelper.php:248 29 2.5644 42273816 TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper->render( ) .../AbstractViewHelper.php:248 30 2.5645 42274136 TYPO3\CMS\Fluid\View\AbstractTemplateView->renderSection( ) .../RenderViewHelper.php:90 31 2.5645 42274960 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode->evaluate( ) .../AbstractTemplateView.php:239 32 2.5645 42276832 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender( ) .../ViewHelperNode.php:132 33 2.5646 42276832 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod( ) .../AbstractViewHelper.php:230 34 2.5646 42277568 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:248} ( ) .../AbstractViewHelper.php:248 35 2.5646 42277736 TYPO3\CMS\Fluid\ViewHelpers\SectionViewHelper->render( ) .../AbstractViewHelper.php:248 36 2.5646 42277568 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->renderChildren( ) .../SectionViewHelper.php:97 37 2.5646 42277568 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode->evaluateChildNodes( ) .../AbstractViewHelper.php:278 38 2.8343 43034568 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode->evaluate( ) .../AbstractNode.php:47 39 2.8353 43057696 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender( ) .../ViewHelperNode.php:132 40 2.8353 43057696 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod( ) .../AbstractViewHelper.php:230 41 2.8354 43059000 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:248} ( ) .../AbstractViewHelper.php:248 42 2.8354 43059760 TYPO3\CMS\Fluid\ViewHelpers\ForViewHelper->render( ) .../AbstractViewHelper.php:248 43 2.8354 43060384 TYPO3\CMS\Fluid\ViewHelpers\ForViewHelper::renderStatic( ) .../ForViewHelper.php:75 44 2.8354 43061824 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->TYPO3\CMS\Fluid\Core\ViewHelper\{closure}( ) .../ForViewHelper.php:124 45 2.8354 43061824 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->renderChildren( ) .../AbstractViewHelper.php:292 46 2.8354 43061824 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode->evaluateChildNodes( ) .../AbstractViewHelper.php:278 47 2.8354 43061904 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode->evaluate( ) .../AbstractNode.php:47 48 2.8355 43063952 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender( ) .../ViewHelperNode.php:132 49 2.8356 43063952 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod( ) .../AbstractViewHelper.php:230 50 2.8356 43064872 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:248} ( ) .../AbstractViewHelper.php:248 51 2.8356 43065224 TYPO3\CMS\Fluid\ViewHelpers\IfViewHelper->render( ) .../AbstractViewHelper.php:248 52 2.8356 43065224 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper->renderThenChild( ) .../IfViewHelper.php:95 53 2.8356 43065272 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->renderChildren( ) .../AbstractConditionViewHelper.php:96 54 2.8356 43065272 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode->evaluateChildNodes( ) .../AbstractViewHelper.php:278 55 2.8356 43065832 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode->evaluate( ) .../AbstractNode.php:47 56 2.8357 43068048 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender( ) .../ViewHelperNode.php:132 57 2.8357 43068616 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod( ) .../AbstractViewHelper.php:230 58 2.8357 43069352 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:248} ( ) .../AbstractViewHelper.php:248 59 2.8357 43070072 FluidTYPO3\Vhs\ViewHelpers\SwitchViewHelper->render( ) .../AbstractViewHelper.php:248 60 2.8361 43076856 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode->evaluate( ) .../SwitchViewHelper.php:85 61 2.8362 43078824 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender( ) .../ViewHelperNode.php:132 62 2.8362 43078824 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod( ) .../AbstractViewHelper.php:230 63 2.8362 43079560 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:248} ( ) .../AbstractViewHelper.php:248 64 2.8362 43079728 FluidTYPO3\Vhs\ViewHelpers\CaseViewHelper->render( ) .../AbstractViewHelper.php:248 65 2.8362 43079976 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->renderChildren( ) .../CaseViewHelper.php:60 66 2.8362 43079976 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode->evaluateChildNodes( ) .../AbstractViewHelper.php:278 67 2.8362 43080144 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode->evaluate( ) .../AbstractNode.php:47 68 2.8364 43083656 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender( ) .../ViewHelperNode.php:132 69 2.8364 43083656 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod( ) .../AbstractViewHelper.php:230 70 2.8364 43084392 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:248} ( ) .../AbstractViewHelper.php:248 71 2.8364 43084560 FluidTYPO3\Vhs\ViewHelpers\Content\RenderViewHelper->render( ) .../AbstractViewHelper.php:248 72 2.8365 43084560 FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper->getContentRecords( ) .../RenderViewHelper.php:45 73 2.8367 43102760 FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper->getRenderedRecords( ) .../AbstractContentViewHelper.php:125 74 2.8367 43103352 FluidTYPO3\Vhs\ViewHelpers\Content\AbstractContentViewHelper->renderRecord( ) .../AbstractContentViewHelper.php:210 75 2.8367 43104072 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle( ) .../AbstractContentViewHelper.php:242 76 2.8375 43171792 TYPO3\CMS\Frontend\ContentObject\RecordsContentObject->render( ) .../ContentObjectRenderer.php:752 77 2.8410 43516952 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle( ) .../RecordsContentObject.php:119 78 2.8411 43522568 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle( ) .../ContentObjectRenderer.php:734 79 2.8414 43536448 TYPO3\CMS\Frontend\ContentObject\CaseContentObject->render( ) .../ContentObjectRenderer.php:752 80 2.8415 43536848 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle( ) .../CaseContentObject.php:45 81 2.8416 43537200 TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject->render( ) .../ContentObjectRenderer.php:752 82 2.8416 43537200 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGet( ) .../ContentObjectArrayContentObject.php:40 83 2.8460 43708104 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle( ) .../ContentObjectRenderer.php:697 84 2.8460 43708456 TYPO3\CMS\Frontend\ContentObject\CaseContentObject->render( ) .../ContentObjectRenderer.php:752 85 2.8461 43708456 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle( ) .../CaseContentObject.php:45 86 2.8462 43708808 TYPO3\CMS\Frontend\ContentObject\UserContentObject->render( ) .../ContentObjectRenderer.php:752 87 2.8462 43708952 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction( ) .../UserContentObject.php:41 88 2.8462 43710528 call_user_func_array:{/home/shared_typo3/typo3_source/typo3_src-6.2.14/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:6634} ( ) .../ContentObjectRenderer.php:6634 89 2.8462 43710560 TYPO3\CMS\Extbase\Core\Bootstrap->run( ) .../ContentObjectRenderer.php:6634 90 2.8481 43691160 TYPO3\CMS\Extbase\Core\Bootstrap->handleRequest( ) .../Bootstrap.php:184 91 2.8496 43691536 TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler->handleRequest( ) .../Bootstrap.php:195 92 2.8584 43835296 TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch( ) .../FrontendRequestHandler.php:56 93 2.8584 43835344 TYPO3\CMS\Extbase\Mvc\Dispatcher->resolveController( ) .../Dispatcher.php:67 94 2.8585 43835456 TYPO3\CMS\Extbase\Object\ObjectManager->get( ) .../Dispatcher.php:96 95 2.8585 43835672 TYPO3\CMS\Extbase\Object\Container\Container->getInstance( ) .../ObjectManager.php:94 96 2.8585 43835592 TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal( ) .../Container.php:108 97 2.8590 43843184 TYPO3\CMS\Extbase\Object\Container\Container->injectDependencies( ) .../Container.php:166 98 2.8834 43997528 TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal( ) .../Container.php:222 99 2.8850 44131984 TYPO3\CMS\Extbase\Object\Container\Container->injectDependencies( ) .../Container.php:166 100 2.8871 44308408 TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal( ) .../Container.php:222 101 2.8886 44444360 TYPO3\CMS\Extbase\Object\Container\Container->injectDependencies( ) .../Container.php:166 102 2.8933 44713400 TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal( ) .../Container.php:222 103 2.8944 44794960 TYPO3\CMS\Extbase\Object\Container\Container->injectDependencies( ) .../Container.php:166 104 2.8962 44850152 TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal( ) .../Container.php:222 105 2.8968 44868240 TYPO3\CMS\Extbase\Object\Container\Container->injectDependencies( ) .../Container.php:166 106 2.9849 45972264 TYPO3\CMS\Extbase\Object\Container\Container->getInstanceInternal( ) .../Container.php:222 107 2.9864 46098472 TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility->initializeObject( ) .../Container.php:168
Updated by Florian Engelke over 9 years ago
But when i'm logged in (backend), all is fine.
Updated by Susanne Moog over 9 years ago
- Status changed from New to Needs Feedback
As far as I can tell from the stack trace and the code this is caused by an extension using the filehandling utility of the extension manager in the frontend. Without further information it's hard to say what is really going wrong here.
Please provide information about your setup / extbase/fluid based extensions you are using.
Updated by Florian Engelke over 9 years ago
Awww my fault...
i use the wrong Controler
use TYPO3\CMS\Extensionmanager\Controller\ActionController;
should beuse TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
Updated by Andreas Moeller over 9 years ago
Thanks Susi,
thats it!
head to the wall
Updated by Susanne Moog over 9 years ago
- Status changed from Needs Feedback to Closed
In another case I checked this was exactly the same problem - probably caused by autocomplete for the namespace. I'm closing this ticket now. If you have another problem with this, please open a new one.
Updated by Carsten Bleicker over 9 years ago
Florian Engelke wrote:
Awww my fault...
i use the wrong Controler
use TYPO3\CMS\Extensionmanager\Controller\ActionController;
should beuse TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
Haha, same issue here, same solution ;)
Stupid PHPSTORM autocomplete :D