[TYPO3-dev] anybody using "Gabriel" to schedule events? PHP error...

Mario Matzulla mario.melanie at arcor.de
Thu Jul 19 17:53:30 CEST 2007


Hi Stefano,

stefano cecere schrieb:
> Thanks Mario!!
> 
> now i solved the "path error".. and a new one arrived :) :
> 
> (for the sake of double check i tried it also with the Gabriel "tutorial 
> ext" and get the same error:
> 
> Fatal error: tx_gabriel::fetchEvent(): The script tried to execute a 
> method or access a property of an incomplete object. Please ensure that 
> the class definition "tx_mltutgabriel_logger" of the object you are 
> trying to operate on was loaded _before_ unserialize() gets called or 
> provide a __autoload() function to load the class definition  in 
> /home/httpd/t3site/typo3conf/ext/gabriel/class.tx_gabriel.php on line 158
> 
> 
> 
> uhm... maybe because i'm on PHP5?
> 
> 
> arg
> 
> (i'm trying to study your cal ext... i don't see it setting the gabriel 
> extension anyway.. does it already uses it?)
Yes, we are using gabriel. Have a look at the 
EXT:cal/service/class.tx_cal_icalendar_service.php scheduleUpdates() 
function

Regards,
Mario
> 
> nobody else using Gabriel?
> 
> stefano
> 
> 
> 
> Mario Matzulla wrote:
>> Hi Stefano,
>>
>> you have to define an absolute path:
>>
>> change define('PATH_thisScript',$_ENV['_']?$_ENV['_']:$_SERVER['_']);
>> to something like: 
>> define('PATH_thisScript','/home/httpd/vhosts/something/httpdocs/typo3conf/ext/gabriel/cli/gabriel_cron.phpsh'); 
>>
>>
>> Regards,
>> Mario
>>
>> stefano cecere schrieb:
>>> i just re-tried to configure Gabriel ext to schedule some actions 
>>> after DB operations.
>>>
>>> system: PHP 5.1.6 with Typo3 4.2 (trunk) and Gabriel 1.0.0
>>>
>>> after having configured it all,
>>> when i run the php script via CLI i get this error:
>>>
>>> Fatal error: Call to a member function executenextDueEvent() on a 
>>> non-object in 
>>> /home/httpd/t3site/typo3conf/ext/gabriel/cli/gabriel_cron.phpsh on 
>>> line 53
>>>
>>>
>>> it seems that the script can't initialize $gabriel = 
>>> t3lib_div::getUserObj('EXT:gabriel/class.tx_gabriel.php:&tx_gabriel');
>>>
>>> i tried other ways to do that, like:
>>>
>>> require_once(PATH_site.'typo3conf/ext/gabriel/class.tx_gabriel.php');
>>> $gabriel = t3lib_div::makeInstance('tx_gabriel');
>>>
>>> or
>>>
>>> $gabriel = 
>>> t3lib_div::getUserObj(PATH_site.'typo3conf/ext/gabriel/class.tx_gabriel.php:&tx_gabriel'); 
>>>
>>>
>>> but no result..
>>>
>>> any idea/tip?
>>>
>>> many thanks
>>> stefano




More information about the TYPO3-dev mailing list