Support » Plugin: WP Crontrol » Php not working.

  • I set up a php cron job that includes a different php file.. here’s all the php in the chronjob:

    $filepath = $_SERVER[‘DOCUMENT_ROOT’] . “/hubspot-api/list_loader.php”;
    require $filepath;

    The job says it runs.. but I can tell that it’s not because a text file that gets written by the included file (list_loader.php) isn’t loading. To text the code, paths, etc, I created a php file in another random directory and added only the code above (same thing I pasted into the “PHP Code” field of the cron event, and when I run that file, everything works fine. Do you have any idea why this might not be working as a cron event in the WP Crontrol plugin?

  • The topic ‘Php not working.’ is closed to new replies.