Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   Scheduler-Error:Task failed to execute successfully (http://forum.typo3.ru/showthread.php?t=9466)

dust 12.05.2011 15:24

Scheduler-Error:Task failed to execute successfully
 
Если запускаю Tasks ручками, то выходит такая ошибка
Execution of task "my_extension(My Extension)" failed with the following message: Task failed to execute successfully. Class: tx_my_extension, UID: 2
, хотя класс вызывается и скрипт выполняется без ошибок :confused:

reva2 12.05.2011 20:04

Убедитесь что функция public function execute() {} вашего класса tx_my_extension возвращает true.

dust 13.05.2011 01:07

Спасибо - нужно, что бы функция в случаии успешного выполнения возвращала true

Код HTML:

class tx_my_extension tx_scheduler_Task {
        public function execute() {

                        if(mail('mymail@mail.de', 'Tasks funktioniert', 'OK')){
                                                return true;
                                       
                } else return false;
        }
}



Часовой пояс GMT +4, время: 18:28.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot