[TYPO3-mvc] ControllerAction dispatched twice
dennis ahrens
dennis.ahrens at googlemail.com
Sat Feb 6 16:50:04 CET 2010
Hi Michael,
add the following lines at the end of your action and have a look at
the stacktraces you will see in your typo3 sys.log.
try {
throw new Tx_Extbase_Execption('why the hell this action is called twice');
} catch(Tx_Extbase_Exception $e) {
t3lib_div::sysLog($e->getTraceAsString(),'yourExtName',0);
}
make sure, that your log shows errors with loglevel 0 - or use a
higher loglevel.
regards
Dennis
2010/2/3 Thomas "Thasmo" Deinhamer <thasmo at gmail.com>:
> Probably some kind of error occurs and the extbase action controller
> executes the default 'errorAction' method, which will redirect to the
> last called action. This would recall your method, which will maybe
> result in executing the method twice and sendind the two mails.
>
> Have a look at the errorAction() method and debug there. YOu could
> also write an own error action if you need it.
>
> Thomas
>
> Am 03.02.2010 16:57, schrieb Michael Feinbier:
>>
>> echo self::) is 12 which shows, that the method is executed two times.
>> But why? It is not the case in my indexAction() or somewh
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
More information about the TYPO3-project-typo3v4mvc
mailing list