Skip to content

Instantly share code, notes, and snippets.

@hlubek
Created October 12, 2011 16:34
Show Gist options
  • Select an option

  • Save hlubek/1281743 to your computer and use it in GitHub Desktop.

Select an option

Save hlubek/1281743 to your computer and use it in GitHub Desktop.
Stacktrace
Uncaught Exception in FLOW3
#1: Catchable Fatal Error: Argument 3 passed to TYPO3\FLOW3\Error\Message_Original::__construct() must be an array, string given in /Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Error_Message_Original.php line 71 (More information)
TYPO3\FLOW3\Error\Exception thrown in file
Packages/Framework/TYPO3.FLOW3/Classes/Error/ErrorHandler.php in line 77.
Reference code: 201110121829267199af
Go to the FORGE issue tracker and report the issue - if you think it is a bug!
26 TYPO3\FLOW3\Error\ErrorHandler::handleError(4096, "Argument 3 passed to TYPO3\FLOW3\Error\Message_Ori…inal::__construct() must be an array, string given", "/Users/work/FLOW3/MyProject-New/Data/Temporary/De…ect_Classes/TYPO3_FLOW3_Error_Message_Original.php", 71, array)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Error_Message_Original.php:
00069: * @api
00070: */
00071: public function __construct($message, $code = NULL, array $arguments = array(), $title = '') {
00072: $this->message = $message;
00073: $this->code = $code;
25 TYPO3\FLOW3\Error\Message_Original::__construct("Fehler beim Speichern", array, "", "")
24 call_user_func_array("parent::__construct", array)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Error_Message.php:
00023: if (!isset($arguments[3])) $arguments[3] = '';
00024: if (!isset($arguments[0])) throw new \TYPO3\FLOW3\Object\Exception\UnresolvedDependenciesException('Missing required constructor argument $message in class ' . __CLASS__ . '. Note that constructor injection is only support for objects of scope singleton (and this is not a singleton) – for other scopes you must pass each required argument to the constructor yourself.', 1296143788);
00025: call_user_func_array('parent::__construct', $arguments);
00026: }
00027:
23 TYPO3\FLOW3\Error\Message::__construct("Fehler beim Speichern", array, "")
22 call_user_func_array("parent::__construct", array)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Error_Error.php:
00023: if (!isset($arguments[3])) $arguments[3] = '';
00024: if (!isset($arguments[0])) throw new \TYPO3\FLOW3\Object\Exception\UnresolvedDependenciesException('Missing required constructor argument $message in class ' . __CLASS__ . '. Note that constructor injection is only support for objects of scope singleton (and this is not a singleton) – for other scopes you must pass each required argument to the constructor yourself.', 1296143788);
00025: call_user_func_array('parent::__construct', $arguments);
00026: }
00027:
21 TYPO3\FLOW3\Error\Error::__construct("Fehler beim Speichern")
Packages/Application/Networkteam.MyProject/Classes/Controller/Admin/AbstractAdminController.php:
00067: protected function getErrorFlashMessage() {
00068: if (strpos($this->actionMethodName, 'update') === 0 || strpos($this->actionMethodName, 'create') === 0) {
00069: return new \TYPO3\FLOW3\Error\Error('Fehler beim Speichern');
00070: } else {
00071: return parent::getErrorFlashMessage();
20 Networkteam\MyProject\Controller\Admin\AbstractAdminController::getErrorFlashMessage()
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Controller_ActionController_Original.php:
00401: */
00402: protected function errorAction() {
00403: $errorFlashMessage = $this->getErrorFlashMessage();
00404: if ($errorFlashMessage !== FALSE) {
00405: $this->flashMessageContainer->addMessage($errorFlashMessage);
19 TYPO3\FLOW3\MVC\Controller\ActionController_Original::errorAction()
18 call_user_func(array)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Controller_ActionController_Original.php:
00264: $actionResult = call_user_func_array(array($this, $this->actionMethodName), $preparedArguments);
00265: } else {
00266: $actionResult = call_user_func(array($this, $this->errorMethodName));
00267: }
00268: }
17 TYPO3\FLOW3\MVC\Controller\ActionController_Original::callActionMethod()
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Controller_ActionController_Original.php:
00142: $this->initializeView($this->view);
00143: }
00144: $this->callActionMethod();
00145: }
00146:
16 TYPO3\FLOW3\MVC\Controller\ActionController_Original::processRequest(TYPO3\FLOW3\MVC\Web\Request, TYPO3\FLOW3\MVC\Web\Response)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Dispatcher_Original.php:
00092: $controller = $this->resolveController($request);
00093: try {
00094: $controller->processRequest($request, $response);
00095: $this->emitAfterControllerInvocation($controller);
00096: } catch (\TYPO3\FLOW3\MVC\Exception\StopActionException $stopActionException) {
15 TYPO3\FLOW3\MVC\Dispatcher_Original::dispatch(TYPO3\FLOW3\MVC\Web\Request, TYPO3\FLOW3\MVC\Web\Response)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Dispatcher.php:
00111:
00112: if (isset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['dispatch'])) {
00113: $result = parent::dispatch($request, $response);
00114:
00115: } else {
14 TYPO3\FLOW3\MVC\Dispatcher::dispatch(TYPO3\FLOW3\MVC\Web\Request, TYPO3\FLOW3\MVC\Web\Response)
13 call_user_func_array(array, array)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Dispatcher.php:
00098: if (__CLASS__ !== $joinPoint->getClassName()) return parent::FLOW3_AOP_Proxy_invokeJoinPoint($joinPoint);
00099: if (isset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode[$joinPoint->getMethodName()])) {
00100: return call_user_func_array(array('self', $joinPoint->getMethodName()), $joinPoint->getMethodArguments());
00101: }
00102: }
12 TYPO3\FLOW3\MVC\Dispatcher::FLOW3_AOP_Proxy_invokeJoinPoint(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_AOP_Advice_AdviceChain_Original.php:
00060: $result = $this->advices[$this->adviceIndex]->invoke($joinPoint);
00061: } else {
00062: $result = $this->proxy->FLOW3_AOP_Proxy_invokeJoinpoint($joinPoint);
00063: }
00064: return $result;
11 TYPO3\FLOW3\AOP\Advice\AdviceChain_Original::proceed(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Security_Aspect_RequestDispatchingAspect_Original.php:
00105:
00106: try {
00107: return $joinPoint->getAdviceChain()->proceed($joinPoint);
00108: } catch (\TYPO3\FLOW3\Security\Exception\AccessDeniedException $exception) {
00109: if ($response instanceof \TYPO3\FLOW3\MVC\Web\Response) $response->setStatus(403);
10 TYPO3\FLOW3\Security\Aspect\RequestDispatchingAspect_Original::setAccessDeniedResponseHeader(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_AOP_Advice_AroundAdvice_Original.php:
00034: $adviceObject = $this->objectManager->get($this->aspectObjectName);
00035: $methodName = $this->adviceMethodName;
00036: return $adviceObject->$methodName($joinPoint);
00037: }
00038: }
9 TYPO3\FLOW3\AOP\Advice\AroundAdvice_Original::invoke(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_AOP_Advice_AdviceChain_Original.php:
00058: $this->adviceIndex++;
00059: if ($this->adviceIndex < count($this->advices)) {
00060: $result = $this->advices[$this->adviceIndex]->invoke($joinPoint);
00061: } else {
00062: $result = $this->proxy->FLOW3_AOP_Proxy_invokeJoinpoint($joinPoint);
8 TYPO3\FLOW3\AOP\Advice\AdviceChain_Original::proceed(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Security_Aspect_RequestDispatchingAspect_Original.php:
00063:
00064: try {
00065: return $joinPoint->getAdviceChain()->proceed($joinPoint);
00066: } catch (\TYPO3\FLOW3\Security\Exception\AuthenticationRequiredException $exception) {
00067: $response = $joinPoint->getMethodArgument('response');
7 TYPO3\FLOW3\Security\Aspect\RequestDispatchingAspect_Original::blockIllegalRequestsAndForwardToAuthenticationEntryPoints(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_AOP_Advice_AroundAdvice_Original.php:
00034: $adviceObject = $this->objectManager->get($this->aspectObjectName);
00035: $methodName = $this->adviceMethodName;
00036: return $adviceObject->$methodName($joinPoint);
00037: }
00038: }
6 TYPO3\FLOW3\AOP\Advice\AroundAdvice_Original::invoke(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_AOP_Advice_AdviceChain_Original.php:
00058: $this->adviceIndex++;
00059: if ($this->adviceIndex < count($this->advices)) {
00060: $result = $this->advices[$this->adviceIndex]->invoke($joinPoint);
00061: } else {
00062: $result = $this->proxy->FLOW3_AOP_Proxy_invokeJoinpoint($joinPoint);
5 TYPO3\FLOW3\AOP\Advice\AdviceChain_Original::proceed(TYPO3\FLOW3\AOP\JoinPoint)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Dispatcher.php:
00125: $adviceChain = $adviceChains['TYPO3\FLOW3\AOP\Advice\AroundAdvice'];
00126: $adviceChain->rewind();
00127: $result = $adviceChain->proceed(new \TYPO3\FLOW3\AOP\JoinPoint($this, 'TYPO3\FLOW3\MVC\Dispatcher', 'dispatch', $methodArguments, $adviceChain));
00128:
00129: } catch(\Exception $e) {
4 TYPO3\FLOW3\MVC\Dispatcher::dispatch(TYPO3\FLOW3\MVC\Web\Request, TYPO3\FLOW3\MVC\Web\Response)
/Users/work/FLOW3/MyProject-New/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_MVC_Web_RequestHandler_Original.php:
00072: }
00073:
00074: $this->dispatcher->dispatch($request, $response);
00075: $response->send();
00076: }
3 TYPO3\FLOW3\MVC\Web\RequestHandler_Original::handleRequest()
Packages/Framework/TYPO3.FLOW3/Classes/Core/Bootstrap.php:
00355: $requestHandlerResolver = $this->objectManager->get('TYPO3\FLOW3\MVC\RequestHandlerResolver');
00356: $requestHandler = $requestHandlerResolver->resolveRequestHandler();
00357: $requestHandler->handleRequest();
00358:
00359: $this->emitFinishedRuntimeRun();
2 TYPO3\FLOW3\Core\Bootstrap::handleWebRequest()
Packages/Framework/TYPO3.FLOW3/Classes/Core/Bootstrap.php:
00170:
00171: if (FLOW3_SAPITYPE === 'Web') {
00172: $this->handleWebRequest();
00173: } else {
00174: $this->handleCommandLineRequest();
1 TYPO3\FLOW3\Core\Bootstrap::run()
/Users/work/FLOW3/MyProject-New/Web/index.php:
00037: $context = getenv('FLOW3_CONTEXT') ?: (getenv('REDIRECT_FLOW3_CONTEXT') ?: 'Development');
00038: $bootstrap = new \TYPO3\FLOW3\Core\Bootstrap($context);
00039: $bootstrap->run();
00040:
00041: ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment