Installation and Backend Errors with V3.3.2 + T3 7.6.49
Error in Backend-Module
- I get an Backend error while opening ANY page in the Backend (also a RootPage) with the Modul Tracking/Cookie
- a valid/correct license key was added
Uncaught TYPO3 Exception
Undeclared arguments passed to ViewHelper TYPO3\CMS\Fluid\ViewHelpers\ElseViewHelper: if. Valid arguments are:
TYPO3\CMS\Fluid\Core\ViewHelper\Exception thrown in file
/app/vendor/typo3/cms/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php in line 490.
17 TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::validateAdditionalArguments(array)
/app/vendor/typo3/cms/typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php:
00871: }
00872: $this->abortIfRequiredArgumentsAreMissing($argumentDefinitions, $argumentsObjectTree);
00873: $viewHelper->validateAdditionalArguments($undeclaredArguments);
00874: return $argumentsObjectTree + $undeclaredArguments;
00875: }
16 TYPO3\CMS\Fluid\Core\Parser\TemplateParser::parseArguments(" if="{licenseError} == '1'"", TYPO3\CMS\Fluid\ViewHelpers\ElseViewHelper)
/app/vendor/typo3/cms/typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php:
00552: $resolvedViewHelperClassName = $this->resolveViewHelperName($namespaceIdentifier, $methodIdentifier);
00553: $viewHelper = $this->objectManager->get($resolvedViewHelperClassName);
00554: $argumentsObjectTree = $this->parseArguments($arguments, $viewHelper);
00555: $this->initializeViewHelperAndAddItToStack($state, $namespaceIdentifier, $methodIdentifier, $argumentsObjectTree);
00556:
15 TYPO3\CMS\Fluid\Core\Parser\TemplateParser::openingViewHelperTagHandler(TYPO3\CMS\Fluid\Core\Parser\ParsingState, "f", "else", " if="{licenseError} == '1'"", boolean)
/app/vendor/typo3/cms/typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php:
00518: $this->textHandler($state, $matchedVariables[1]);
00519: } elseif (preg_match($regularExpression_openingViewHelperTag, $templateElement, $matchedVariables) > 0) {
00520: $this->openingViewHelperTagHandler($state, $matchedVariables['NamespaceIdentifier'], $matchedVariables['MethodIdentifier'], $matchedVariables['Attributes'], ($matchedVariables['Selfclosing'] !== ''));
00521: } elseif (preg_match($regularExpression_closingViewHelperTag, $templateElement, $matchedVariables) > 0) {
00522: $this->closingViewHelperTagHandler($state, $matchedVariables['NamespaceIdentifier'], $matchedVariables['MethodIdentifier']);
14 TYPO3\CMS\Fluid\Core\Parser\TemplateParser::buildObjectTree(array, 2)
/app/vendor/typo3/cms/typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php:
00366: $splitTemplate = $this->splitTemplateAtDynamicTags($templateString);
00367:
00368: $parsingState = $this->buildObjectTree($splitTemplate, self::CONTEXT_OUTSIDE_VIEWHELPER_ARGUMENTS);
00369:
00370: $variableContainer = $parsingState->getVariableContainer();
13 TYPO3\CMS\Fluid\Core\Parser\TemplateParser::parse("↵↵<f:layout name="Default" />↵↵<f:section name="co…lse>↵ </f:if>↵ </f:else>↵ </f:if>↵</f:section>↵")
/app/vendor/typo3/cms/typo3/sysext/fluid/Classes/View/AbstractTemplateView.php:
00169: $parsedTemplate = $this->templateCompiler->get($templateIdentifier);
00170: } else {
00171: $parsedTemplate = $this->templateParser->parse($this->getTemplateSource($actionName));
00172: if ($parsedTemplate->isCompilable()) {
00173: $this->templateCompiler->store($templateIdentifier, $parsedTemplate);
12 TYPO3\CMS\Fluid\View\AbstractTemplateView::render()
/app/vendor/typo3/cms/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:
00310:
00311: if ($actionResult === null && $this->view instanceof ViewInterface) {
00312: $this->response->appendContent($this->view->render());
00313: } elseif (is_string($actionResult) && $actionResult !== '') {
00314: $this->response->appendContent($actionResult);
11 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::callActionMethod()
/app/vendor/typo3/cms/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:
00174: $this->initializeView($this->view);
00175: }
00176: $this->callActionMethod();
00177: }
00178:
10 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::processRequest(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)
/app/vendor/typo3/cms/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php:
00084: $controller = $this->resolveController($request);
00085: try {
00086: $controller->processRequest($request, $response);
00087: } catch (\TYPO3\CMS\Extbase\Mvc\Exception\StopActionException $ignoredException) {
00088: }
9 TYPO3\CMS\Extbase\Mvc\Dispatcher::dispatch(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)
/app/vendor/typo3/cms/typo3/sysext/extbase/Classes/Mvc/Web/BackendRequestHandler.php:
00030: /** @var $response \TYPO3\CMS\Extbase\Mvc\ResponseInterface */
00031: $response = $this->objectManager->get(\TYPO3\CMS\Extbase\Mvc\Web\Response::class);
00032: $this->dispatcher->dispatch($request, $response);
00033: return $response;
00034: }
8 TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler::handleRequest()
/app/vendor/typo3/cms/typo3/sysext/extbase/Classes/Core/Bootstrap.php:
00204: $requestHandler = $requestHandlerResolver->resolveRequestHandler();
00205:
00206: $response = $requestHandler->handleRequest();
00207: // If response is NULL after handling the request we need to stop
00208: // This happens for instance, when a USER object was converted to a USER_INT
7 TYPO3\CMS\Extbase\Core\Bootstrap::handleRequest()
/app/vendor/typo3/cms/typo3/sysext/extbase/Classes/Core/Bootstrap.php:
00191: {
00192: $this->initialize($configuration);
00193: return $this->handleRequest();
00194: }
00195:
6 TYPO3\CMS\Extbase\Core\Bootstrap::run("", array)
/app/vendor/typo3/cms/typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php:
00213: // Run Extbase
00214: $bootstrap = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Core\Bootstrap::class);
00215: $content = $bootstrap->run('', $configuration);
00216:
00217: $response->getBody()->write($content);
5 TYPO3\CMS\Backend\Http\BackendModuleRequestHandler::dispatchModule("web_SgCookieOptinOptin")
/app/vendor/typo3/cms/typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php:
00091: $moduleName = (string)$this->request->getQueryParams()['M'];
00092: if ($this->isDispatchedModule($moduleName)) {
00093: return $this->dispatchModule($moduleName);
00094: } else {
00095: // @deprecated: This else path is deprecated and throws deprecations logs at registration time. Can be removed with TYPO3 CMS 8.
4 TYPO3\CMS\Backend\Http\BackendModuleRequestHandler::handleRequest(TYPO3\CMS\Core\Http\ServerRequest)
/app/vendor/typo3/cms/typo3/sysext/core/Classes/Core/Bootstrap.php:
00309:
00310: // Execute the command which returns a Response object or NULL
00311: $this->response = $requestHandler->handleRequest($request);
00312: return $this;
00313: }
3 TYPO3\CMS\Core\Core\Bootstrap::handleRequest(TYPO3\CMS\Core\Http\ServerRequest)
/app/vendor/typo3/cms/typo3/sysext/backend/Classes/Http/Application.php:
00092: }
00093:
00094: $this->bootstrap->handleRequest($this->request);
00095:
00096: if ($execute !== null) {
2 TYPO3\CMS\Backend\Http\Application::run()
/app/vendor/typo3/cms/typo3/index.php:
00018: call_user_func(function () {
00019: $classLoader = require __DIR__ . '/../vendor/autoload.php';
00020: (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run();
00021: });
1 {closure}()
/app/vendor/typo3/cms/typo3/index.php:
00019: $classLoader = require __DIR__ . '/../vendor/autoload.php';
00020: (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run();
00021: });
Trying to (de/re)activate the extension causes next error
- I get an SQL-Error while activating the extension in the extension manager (after an Update from 3.1.4)
Error: You have an error in your SQL syntax;ALTER TABLE tx_sgcookieoptin_domain_model_optin ADD -- Template Full;
PS: A downgrade to sgalinski/sg-cookie-optin:"3.2.8"
helped