Hi
I have a bespoke PHP page in the scripts/ directory which hooks into Mantis using the require_once('../core.php');. This works fine when run from the browser, but it also doubles up as a cron job to create some graphs.
However, when run as the cron (apache), the job stalls where I'm calling a core function, in this case "$current_project = helper_get_current_project();".
I have tried adding in additional core files (i.e. require_once('../core/helper_api.php');) but still no joy.
I assume there is something amiss with paths or config, but the cron job just stops at that line, with no hint of an error shown at runtime or in any system log files.
The cron is setup as follows: cd /var/www/html/mantis/scripts; /usr/bin/php ./bespoke_reports.php cron
I wonder if anyone could offer any advice as to how I determine where the problem lies exactly?
Many thanks in advance
PG_
Mantis version 1.2.15, Red Hat Enterprise 6.4
Unable to run core functions on bespoke cron job
Moderators: Developer, Contributor