Project

General

Profile

Actions

Bug #47804

closed

EM: Uncaught TYPO3 Exception - Could not resolve dependency

Added by Franz Holzinger over 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-05-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

After replacing the extension div2007 version 0.11.3 to the TYPO3 site, the EM refuses to work.

The file ext_emconf.php is attached. It is the result created after the last upload using the command line tool command 'php t3xutils.php ...'



Uncaught TYPO3 Exception
Could not resolve dependency for "div2007" 

TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException thrown in file
/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php in line 301.

14 TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::getExtensionFromTer("div2007", TYPO3\CMS\Extensionmanager\Domain\Model\Dependency)

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php:

00258:     return TRUE;
00259:    } else {
00260:     $this->getExtensionFromTer($extensionKey, $dependency);
00261:    }
00262:   } else {

13 TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::checkExtensionDependency(TYPO3\CMS\Extensionmanager\Domain\Model\Dependency)

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php:

00188:    } else {
00189:     if ($dependency->getType() === 'depends') {
00190:      $dependenciesToResolve = !(bool) $this->checkExtensionDependency($dependency);
00191:     }
00192:    }

12 TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::checkDependencies(SplObjectStorage)

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php:

00132:    $dependencies = $this->convertDependenciesToObjects(serialize($extension['constraints']));
00133:   }
00134:   $this->checkDependencies($dependencies);
00135:  }
00136: 

11 TYPO3\CMS\Extensionmanager\Utility\DependencyUtility::buildExtensionDependenciesTree(array)

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php:

00135:    throw new \TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException('Extension must be array or object.', 1350891642);
00136:   }
00137:   $this->dependencyUtility->buildExtensionDependenciesTree($extension);
00138:   if ($extension instanceof \TYPO3\CMS\Extensionmanager\Domain\Model\Extension) {
00139:    // We have a TER Extension, which should be downloaded first.

10 TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::resolveDependenciesAndInstall(array)

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extensionmanager/Classes/Controller/ActionController.php:

00085:    $this->managementService->resolveDependenciesAndInstall(
00086:     $this->installUtility->enrichExtensionWithDetails($extension)
00087:    );
00088:   }
00089:   $this->redirect('index', 'List', NULL, array(self::TRIGGER_RefreshModuleMenu => TRUE));

9 TYPO3\CMS\Extensionmanager\Controller\ActionController::toggleExtensionInstallationStateAction("agency")

8 call_user_func_array(array, array)

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:

00261:    $validationResult = $this->arguments->getValidationResults();
00262:    if (!$validationResult->hasErrors()) {
00263:     $actionResult = call_user_func_array(array($this, $this->actionMethodName), $preparedArguments);
00264:    } else {
00265:     $methodTagsValues = $this->reflectionService->getMethodTagsValues(get_class($this), $this->actionMethodName);

7 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::callActionMethod()

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:

00163:    $this->initializeView($this->view);
00164:   }
00165:   $this->callActionMethod();
00166:  }
00167: 

6 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::processRequest(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)

/var/www/path/web/typo3_src-6.0.4/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/path/web/typo3_src-6.0.4/typo3/sysext/extbase/Classes/Mvc/Web/BackendRequestHandler.php:
00045:   /** @var $response \TYPO3\CMS\Extbase\Mvc\ResponseInterface */
00046:   $response = $this->objectManager->create('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/path/web/typo3_src-6.0.4/typo3/sysext/extbase/Classes/Core/Bootstrap.php:

00227:   $requestHandlerResolver = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\RequestHandlerResolver');
00228:   $requestHandler = $requestHandlerResolver->resolveRequestHandler();
00229:   $response = $requestHandler->handleRequest();
00230:   // If response is NULL after handling the request we need to stop
00231:   // This happens for instance, when a USER object was converted to a USER_INT

3 TYPO3\CMS\Extbase\Core\Bootstrap::handleWebRequest()

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extbase/Classes/Core/Bootstrap.php:

00199:    $content = $this->handleCommandLineRequest();
00200:   } else {
00201:    $content = $this->handleWebRequest();
00202:   }
00203: 

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

/var/www/path/web/typo3_src-6.0.4/typo3/sysext/extbase/Classes/Core/Bootstrap.php:

00289:    $configuration['vendorName'] = $moduleConfiguration['vendorName'];
00290:   }

00291:   $content = $this->run('', $configuration);

00292:   print $content;
00293:   return TRUE;

1 TYPO3\CMS\Extbase\Core\Bootstrap::callModule("tools_ExtensionmanagerExtensionmanager")

/var/www/path/web/typo3_src-6.0.4/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;


Files

ext_emconf.php (2.85 KB) ext_emconf.php Franz Holzinger, 2013-05-02 08:34
Actions #1

Updated by Markus Klein over 11 years ago

  • Target version deleted (6.0.5)

Hi!

Without looking into the code, is the following line correct?
'typo3' => '4.3-6.0.99'

Shouldn't that be: 'typo3' => '4.3.0-6.0.99'

Maybe it doesn't matter, but I'm not sure atm.

Actions #2

Updated by Franz Holzinger over 11 years ago

I can change the line to

 'typo3' => '4.3.0-6.0.99',

The result is the same error message.
In former TYPO3 versions it has always been allowed to write '4.3'.

Actions #3

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from New to Closed
  • Is Regression set to No

Taken into account in #63909.
The issues are not linked on purpose, so the refactoring ticket does not get bloated with relations.

Actions

Also available in: Atom PDF