XF 2.0 Creating Cron File


Well-known member
I have the following in my cron file:
class Guild
          public static function Realms()
               .....code here.....

I'm getting an error regarding expecting { after class. Do I need to extend something similar to AbstractJob as I did in XF1?

Jeremy P

XenForo developer
Staff member
Is your web server throwing this error? Sounds more like there's a syntax error somewhere, though nothing seems wrong with the sample you've provided. Cron classes don't need to extend any base class.