[TYPO3-dev] register scheduler task

Steffen Kamper info at sk-typo3.de
Tue Jan 12 15:53:06 CET 2010


Hi,

i wanted to use a scheduler task in my extension. So i created the 
class, used autolader and registered the class in ext_tables.php:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_ttnewsrssimport_updateTask'] 
= array(
	'extension'        => $_EXTKEY,
	'title'            => 'LLL:EXT:' . $_EXTKEY . 
'/locallang_db.xml:updateTask.name',
	'description'      => 'LLL:EXT:' . $_EXTKEY . 
'/locallang_db.xml:updateTask.description',
);

The task class is visable in scheduler, but if i try to create a task on 
this class scheduler always quit with fatal error:

Fatal error: Call to a member function saveTask() on a non-object in 
C:\xampp2\htdocs\tv\typo3\sysext\scheduler\class.tx_scheduler_task.php 
on line 425 ($this->scheduler->saveTask()

I don't see what the problem is, any advice?

vg Steffen




More information about the TYPO3-dev mailing list