[TYPO3-dev] Flash message called from DataHandler, error

Olle Haerstedt o.haerstedt at bitmotion.de
Fri Oct 10 13:57:57 CEST 2014


Hi!

I'm trying to extend TYPO3 CMS with an email eval in TCA, but run into
problems with the error flash message. This line doesn't work from
DataHandler:

\TYPO3\CMS\Core\Messaging\FlashMessageQueue::addMessage($message);

My error message is this:

Fatal error: Call to undefined method TYPO3\CMS\Core\DataHandling\DataHandler::enqueue() 
in /var/www/_typo3/typo3_src-git/typo3/sysext/core/Classes/Messaging/FlashMessageQueue.php 
on line 67

Method `addMessage` is not a static method. When called statically like above
it parses `$this` as an instance of DataHandler and does not find
a method `enqueue()`. What's the correct way to use flash messages
from this context?

I'm using TYPO3 6.3-dev.

Grateful for any help
Olle



More information about the TYPO3-dev mailing list