Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Had to add the following to the top of job_scheduler.module:
include "JobScheduler.inc";
Otherwise I was getting an error that JobScheduler was an undefined component.
Comments
Comment #1
Alan Evans CreditAttribution: Alan Evans commentedThat more likely indicates that the Drupal class autoloader didn't pick up the file, which can happen if the file is missing from the file registry (which shouldn't happen, but does under certain circumstances).
You shouldn't need the include, as Drupal will find the file in the .info file, add it to the registry and autoload it as soon as the class is instantiated for the first time.
Can you try rebuilding the file registry: http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/regist... or just doing a full cache clear should do this for you as well. Then remove the include and see if you still have the issue please.
If you're still seeing an error, please also post the exact error message. Thanks!
Comment #2
twistor CreditAttribution: twistor commentedI'm guessing this was fixed.