XF 1.1 Cron Entry for CometChat

Code:
 <?php
 
class Comet_Cron
{
    public static function runCron()
    {
        ob_start();
        include '/home2/grenon/public_html/cometchat/cron.php';
        $myContent = ob_get_contents();
        ob_end_clean();
    }
}
 
Ok I try it... i will be back for giving you the result if it works or not :)
Thanks!

Edit: Looks like working like a charm!!!! :D
No error in server log or when executing manually the cron task from the list!
Thanks Jake one more time :)
 
The callback needs a class and method within XenForo's namespace. Create a directory and PHP file to define a class. For example, create:

library/Comet/Cron.php

Code:
<?php

class Comet_Cron
{
    public static function runCron()
    {
        include 'http://www.yoursite.com/cometchat/cron.php';
    }
}

Then your callback would be:

Class = Comet_Cron
Method = runCron
Callback Comet_Cron::runCron is invalid (Invalid Class).
 
Top Bottom