Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The theme identifier was not set. Please check your TypoScript configuration. #123

Open
ProWebs opened this issue Mar 20, 2018 · 2 comments

Comments

@ProWebs
Copy link

ProWebs commented Mar 20, 2018

Got this error on Backend with typo3 8.7.10 using the latest comits of YAG.

`Exception thrown in file
/var/www/html/htdocs/typo3conf/ext/yag/Classes/Domain/Configuration/ConfigurationBuilderFactory.php in line 94.

17 Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance("backend", NULL, boolean)

/var/www/html/htdocs/typo3conf/ext/yag/Classes/Controller/AbstractController.php:

00376:
00377: Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::injectSettings($this->settings);

00378: $this->configurationBuilder = Tx_Yag_Domain_Configuration_ConfigurationBuilderFactory::getInstance($contextIdentifier, $this->settings['theme'], $resetContext);

00379:
00380: if (TYPO3_MODE === 'FE') {

16 Tx_Yag_Controller_AbstractController::injectConfigurationManager(TYPO3\CMS\Extbase\Configuration\ConfigurationManager)

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Object/Container/Container.php:

00231: }
00232: if (is_callable([$instance, $injectMethodName])) {

00233: $instance->{$injectMethodName}($instanceToInject);

00234: }
00235: }

15 TYPO3\CMS\Extbase\Object\Container\Container::injectDependencies(Tx_Yag_Controller_GalleryController, TYPO3\CMS\Extbase\Object\Container\ClassInfo)

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Object/Container/Container.php:

00180: }
00181: $instance = $this->instanciateObject($classInfo, $givenConstructorArguments);

00182: $this->injectDependencies($instance, $classInfo);

00183: $this->initializeObject($instance, $classInfo);
00184: if (!$classIsSingleton) {

14 TYPO3\CMS\Extbase\Object\Container\Container::getInstanceInternal("Tx_Yag_Controller_GalleryController", array)

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Object/Container/Container.php:

00124: {
00125: $this->prototypeObjectsWhichAreCurrentlyInstanciated = [];

00126: return $this->getInstanceInternal($className, $givenConstructorArguments);

00127: }
00128:

13 TYPO3\CMS\Extbase\Object\Container\Container::getInstance("Tx_Yag_Controller_GalleryController", array)

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Object/ObjectManager.php:

00096: $instance = call_user_func_array([\TYPO3\CMS\Core\Utility\GeneralUtility::class, 'makeInstance'], $arguments);
00097: } else {

00098: $instance = $this->objectContainer->getInstance($objectName, $arguments);

00099: }
00100: return $instance;

12 TYPO3\CMS\Extbase\Object\ObjectManager::get("Tx_Yag_Controller_GalleryController")

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php:

00112: {
00113: $controllerObjectName = $request->getControllerObjectName();

00114: $controller = $this->objectManager->get($controllerObjectName);

00115: if (!$controller instanceof \TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface) {
00116: throw new \TYPO3\CMS\Extbase\Mvc\Exception\InvalidControllerException(

11 TYPO3\CMS\Extbase\Mvc\Dispatcher::resolveController(TYPO3\CMS\Extbase\Mvc\Web\Request)

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php:

00081: throw new \TYPO3\CMS\Extbase\Mvc\Exception\InfiniteLoopException('Could not ultimately dispatch the request after ' . $dispatchLoopCount . ' iterations. Most probably, a @ignorevalidation annotation is missing on re-displaying a form with validation errors.', 1217839467);
00082: }

00083: $controller = $this->resolveController($request);

00084: try {
00085: $controller->processRequest($request, $response);

10 TYPO3\CMS\Extbase\Mvc\Dispatcher::dispatch(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)

/var/www/html/typo3_src-8.7.10/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: }

9 TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler::handleRequest()

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Core/Bootstrap.php:

00197: $requestHandler = $requestHandlerResolver->resolveRequestHandler();
00198:

00199: $response = $requestHandler->handleRequest();

00200: // If response is NULL after handling the request we need to stop
00201: // This happens for instance, when a USER object was converted to a USER_INT

8 TYPO3\CMS\Extbase\Core\Bootstrap::handleRequest()

/var/www/html/typo3_src-8.7.10/typo3/sysext/extbase/Classes/Core/Bootstrap.php:

00184: {
00185: $this->initialize($configuration);

00186: return $this->handleRequest();

00187: }
00188:

7 TYPO3\CMS\Extbase\Core\Bootstrap::run("", array)

/var/www/html/typo3_src-8.7.10/typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php:

00180: // Run Extbase
00181: $bootstrap = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Core\Bootstrap::class);

00182: $content = $bootstrap->run('', $configuration);

00183:
00184: $response->getBody()->write($content);

6 TYPO3\CMS\Backend\Http\BackendModuleRequestHandler::dispatchModule("web_YagTxYagM1")

/var/www/html/typo3_src-8.7.10/typo3/sysext/backend/Classes/Http/BackendModuleRequestHandler.php:

00087:
00088: $moduleName = (string)$this->request->getQueryParams()['M'];

00089: return $this->dispatchModule($moduleName);

00090: }
00091:

5 TYPO3\CMS\Backend\Http\BackendModuleRequestHandler::handleRequest(TYPO3\CMS\Core\Http\ServerRequest)

/var/www/html/typo3_src-8.7.10/typo3/sysext/core/Classes/Core/Bootstrap.php:

00313:
00314: // Execute the command which returns a Response object or NULL

00315: $this->response = $requestHandler->handleRequest($request);

00316: return $this;
00317: }

4 TYPO3\CMS\Core\Core\Bootstrap::handleRequest(TYPO3\CMS\Core\Http\ServerRequest)

/var/www/html/typo3_src-8.7.10/typo3/sysext/backend/Classes/Http/Application.php:

00090: }
00091:

00092: $this->bootstrap->handleRequest($this->request);

00093:
00094: if ($execute !== null) {

3 TYPO3\CMS\Backend\Http\Application::run()

/var/www/html/typo3_src-8.7.10/typo3/sysext/backend/Resources/Private/Php/backend.php:

00022: $classLoader = require DIR . '/../../../../../../vendor/autoload.php';
00023:

00024: (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run();

00025: });

2 {closure}()

/var/www/html/typo3_src-8.7.10/typo3/sysext/backend/Resources/Private/Php/backend.php:

00023:
00024: (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run();

00025: });

1 require("/var/www/html/typo3_src-8.7.10/typo3/sysext/backend/Resources/Private/Php/backend.php")

/var/www/html/typo3_src-8.7.10/typo3/index.php:

00001: <?php
00002:

00003: require DIR . '/sysext/backend/Resources/Private/Php/backend.php';

@schrej-zz
Copy link

I have the same issue.
No feedback for 6 month now?
Any hints?
Thanks

@schrej-zz
Copy link

I was able to figure out, what the issue is.
You just have to rename ext/yag/Configuration/TypoScript/Backend/setup.txt to "Setup.txt".
I think setup.txt should be the right name based on the nomenclature, but I was not able to figure out, where the reference to this file is in the code. So it's just a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants