Bug #49713
closedEM: Uncaught TYPO3 Exception: Encryption Key was empty
0%
Description
Uncaught TYPO3 Exception #1255069597: Encryption Key was empty
EM: If I turn the main select box to 'Get Extensions' then it ends up in an exception.
Uncaught TYPO3 Exception
#1255069597: Encryption Key was empty! (More information)
TYPO3\CMS\Extbase\Security\Exception\InvalidArgumentForHashGenerationException thrown in file
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Security/Cryptography/HashService.php in line 64.
32 TYPO3\CMS\Extbase\Security\Cryptography\HashService::generateHmac("YToyOntzOjY6ImFjdGlvbiI7czozOiJ0ZXIiO3M6MTA6ImNvbnRyb2xsZXIiO3M6NDoiTGlzdCI7fQ==")
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Security/Cryptography/HashService.php:
00076: */
00077: public function appendHmac($string) {
00078: $hmac = $this->generateHmac($string);
00079: return $string . $hmac;
00080: }
31 TYPO3\CMS\Extbase\Security\Cryptography\HashService::appendHmac("YToyOntzOjY6ImFjdGlvbiI7czozOiJ0ZXIiO3M6MTA6ImNvbnRyb2xsZXIiO3M6NDoiTGlzdCI7fQ==")
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php:
00259: $result .= '' . chr(10);
00260: $result .= '' . chr(10);
00261: $result .= '' . chr(10);
00262: } else {
00263: // @deprecated since Fluid 1.4.0, will be removed two versions after Fluid 6.1.
30 TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper::renderHiddenReferrerFields()
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php:
00189: $content .= $this->renderHiddenIdentityField($this->arguments['object'], $this->getFormObjectName());
00190: $content .= $this->renderAdditionalIdentityFields();
00191: $content .= $this->renderHiddenReferrerFields();
00192: if ($this->configurationManager->isFeatureEnabled('rewrittenPropertyMapper') === FALSE) {
00193: // Render hmac after everything else has been rendered
29 TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper::render("ter", array, NULL, NULL, NULL, NULL, NULL, 0, boolean, boolean, "", "", array, boolean, boolean, array, NULL, NULL, NULL, NULL)
28 call_user_func_array(array, array)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:
00253:
00254: try {
00255: return call_user_func_array(array($this, 'render'), $renderMethodParameters);
00256: } catch (\TYPO3\CMS\Fluid\Core\ViewHelper\Exception $exception) {
00257: // @todo [BW] rethrow exception, log, ignore.. depending on the current context
27 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:
00235: $this->initialize();
00236:
00237: return $this->callRenderMethod();
00238: }
00239:
26 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
/var/www/html/typo3temp/Cache/Code/fluid_template/Extensionmanager_List_action_ter_6162cb04072c52d256238c0557477cd58976724e.php:
00201: // End of ViewHelper TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper
00202:
00203: $output4 .= $viewHelper17->initializeArgumentsAndRender();
00204:
00205: $output4 .= '
25 FluidCache_Extensionmanager_List_action_ter_6162cb04072c52d256238c0557477cd58976724e::section_4f9be057f0ea5d2ba72fd2c810e8d7b9aa98b469(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/View/AbstractTemplateView.php:
00238: }
00239: $this->startRendering($renderingTypeOnNextLevel, $parsedTemplate, $renderingContext);
00240: $output = $parsedTemplate->{$methodNameOfSection}($renderingContext);
00241: $this->stopRendering();
00242: } else {
24 TYPO3\CMS\Fluid\View\AbstractTemplateView::renderSection("Content", array, boolean)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/ViewHelpers/RenderViewHelper.php:
00088: return $this->viewHelperVariableContainer->getView()->renderPartial($partial, $section, $arguments);
00089: } elseif ($section !== NULL) {
00090: return $this->viewHelperVariableContainer->getView()->renderSection($section, $arguments, $optional);
00091: }
00092: return '';
23 TYPO3\CMS\Fluid\ViewHelpers\RenderViewHelper::render("Content", NULL, array, boolean)
22 call_user_func_array(array, array)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:
00253:
00254: try {
00255: return call_user_func_array(array($this, 'render'), $renderMethodParameters);
00256: } catch (\TYPO3\CMS\Fluid\Core\ViewHelper\Exception $exception) {
00257: // @todo [BW] rethrow exception, log, ignore.. depending on the current context
21 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:
00235: $this->initialize();
00236:
00237: return $this->callRenderMethod();
00238: }
00239:
20 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/ViewHelperNode.php:
00130: }
00131:
00132: $output = $viewHelper->initializeArgumentsAndRender();
00133:
00134: return $output;
19 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::evaluate(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php:
00045: $output = (string) $output;
00046: }
00047: $subNodeOutput = $subNode->evaluate($renderingContext);
00048:
00049: if (is_object($subNodeOutput)) {
18 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode::evaluateChildNodes(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:
00283: return $closure();
00284: }
00285: return $this->viewHelperNode->evaluateChildNodes($this->renderingContext);
00286: }
00287:
17 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::renderChildren()
/var/www/html/typo3_src-6.1.1/typo3/sysext/extensionmanager/Classes/ViewHelpers/Be/ContainerViewHelper.php:
00117: );
00118: }
00119: $output = $this->renderChildren();
00120: $output = $doc->startPage($pageTitle) . $output;
00121: $output .= $doc->endPage();
16 TYPO3\CMS\Extensionmanager\ViewHelpers\Be\ContainerViewHelper::render("Extension Manager", boolean, boolean, boolean, boolean, "", boolean, boolean, "", boolean, array, array, NULL)
15 call_user_func_array(array, array)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:
00253:
00254: try {
00255: return call_user_func_array(array($this, 'render'), $renderMethodParameters);
00256: } catch (\TYPO3\CMS\Fluid\Core\ViewHelper\Exception $exception) {
00257: // @todo [BW] rethrow exception, log, ignore.. depending on the current context
14 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::callRenderMethod()
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php:
00235: $this->initialize();
00236:
00237: return $this->callRenderMethod();
00238: }
00239:
13 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArgumentsAndRender()
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/ViewHelperNode.php:
00130: }
00131:
00132: $output = $viewHelper->initializeArgumentsAndRender();
00133:
00134: return $output;
12 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode::evaluate(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php:
00045: $output = (string) $output;
00046: }
00047: $subNodeOutput = $subNode->evaluate($renderingContext);
00048:
00049: if (is_object($subNodeOutput)) {
11 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode::evaluateChildNodes(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/RootNode.php:
00024: */
00025: public function evaluate(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
00026: return $this->evaluateChildNodes($renderingContext);
00027: }
00028: }
10 TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\RootNode::evaluate(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/Core/Parser/ParsingState.php:
00090: */
00091: public function render(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
00092: return $this->rootNode->evaluate($renderingContext);
00093: }
00094:
9 TYPO3\CMS\Fluid\Core\Parser\ParsingState::render(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)
/var/www/html/typo3_src-6.1.1/typo3/sysext/fluid/Classes/View/AbstractTemplateView.php:
00198: }
00199: $this->startRendering(self::RENDERING_LAYOUT, $parsedTemplate, $this->baseRenderingContext);
00200: $output = $parsedLayout->render($this->baseRenderingContext);
00201: $this->stopRendering();
00202: } else {
8 TYPO3\CMS\Fluid\View\AbstractTemplateView::render()
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:
00315: }
00316: if ($actionResult === NULL && $this->view instanceof \TYPO3\CMS\Extbase\Mvc\View\ViewInterface) {
00317: $this->response->appendContent($this->view->render());
00318: } elseif (is_string($actionResult) && strlen($actionResult) > 0) {
00319: $this->response->appendContent($actionResult);
7 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::callActionMethod()
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:
00177: $this->initializeView($this->view);
00178: }
00179: $this->callActionMethod();
00180: }
00181:
6 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::processRequest(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php:
00098: $controller = $this->resolveController($request);
00099: try {
00100: $controller->processRequest($request, $response);
00101: } catch (\TYPO3\CMS\Extbase\Mvc\Exception\StopActionException $ignoredException) {
00102: }
5 TYPO3\CMS\Extbase\Mvc\Dispatcher::dispatch(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Web/BackendRequestHandler.php:
00045: /** @var $response \TYPO3\CMS\Extbase\Mvc\ResponseInterface */
00046: $response = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response');
00047: $this->dispatcher->dispatch($request, $response);
00048: return $response;
00049: }
4 TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler::handleRequest()
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Core/Bootstrap.php:
00206: $requestHandler = $requestHandlerResolver->resolveRequestHandler();
00207:
00208: $response = $requestHandler->handleRequest();
00209: // If response is NULL after handling the request we need to stop
00210: // This happens for instance, when a USER object was converted to a USER_INT
3 TYPO3\CMS\Extbase\Core\Bootstrap::handleRequest()
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Core/Bootstrap.php:
00195: public function run($content, $configuration) {
00196: $this->initialize($configuration);
00197: return $this->handleRequest();
00198: }
00199:
2 TYPO3\CMS\Extbase\Core\Bootstrap::run("", array)
/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Core/ModuleRunner.php:
00079:
00080: $bootstrap = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Core\\BootstrapInterface');
00081: $content = $bootstrap->run('', $configuration);
00082: print $content;
00083:
1 TYPO3\CMS\Extbase\Core\ModuleRunner::callModule("tools_ExtensionmanagerExtensionmanager")
/var/www/html/typo3_src-6.1.1/typo3/mod.php:
00045: foreach ($TBE_MODULES['_dispatcher'] as $dispatcherClassName) {
00046: $dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager')->get($dispatcherClassName);
00047: if ($dispatcher->callModule($temp_M) === TRUE) {
00048: $isDispatched = TRUE;
00049: break;
Updated by Christian Kuhn over 11 years ago
- Status changed from New to Needs Feedback
So, probably, an encryption key is missing.
The new install tool in 6.2 takes care of that and calculates a key if it is missing automatically. For 6.1 I think this issue is a "won't fix".
Updated by Franz Holzinger over 11 years ago
Yes, I didn't enter an encryption key in the install tool. It would be fine if TYPO3 could use a default key or at least show a friendly error message in this case.
Updated by Alexander Opitz over 11 years ago
- Status changed from Needs Feedback to New
I'm against a default key, as everybody would know this key.
We should catch the Exception and show an error message.
Updated by Georg Ringer over 11 years ago
- Status changed from New to Needs Feedback
can't reproduce on current master. can you test there? thx
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.
If you think, that this is the wrong decision, then please write to the mailing list typo3.teams.bugs with issue number and an explanation.