Cron.php Error with File Paths

I keep getting this in my error log in regard to cron.php -

PHP Notice:  Use of undefined constant BX_DIRECTORY_PATH_INC - assumed 'BX_DIRECTORY_PATH_INC' in cron.php on line 25
[08-Jan-2011 01:50:00] PHP Warning:  require_once(BX_DIRECTORY_PATH_INCutils.inc.php): failed to open stream: No such file or directory in cron.php on line 25
[08-Jan-2011 01:50:00] PHP Fatal error:  require_once(): Failed opening required 'BX_DIRECTORY_PATH_INCutils.inc.php' in cron.php on line 25

Does anybody what's going on here?

Quote · 8 Jan 2011

What does the <?= stand for, I've never seen that before and it is used in utils.inc.php.

Quote · 8 Jan 2011

OK for whatever reason when I set up the cron.bat to run the cron.php with Scheduled Tasks on Windows 2008 R2 all of the defined paths that go to the inc folder and the inc\classes folder in the header.inc.php don't work.

So I've been replacing those constants with the full path in each file for the require_once function, the cron.php just chokes on a fatal error when ever it hits these require_once statements that has that path information. Replacing them with the full path on the file system works but then you get into the files that need the classes from inc\classes and even though the require_once file that has the classes defined in them don't give an error the classes are not accessible within the files that require those files. So the call of new(classname) cretes an error since it doesn't include teh class defning function from within the classes folder.

Does anyone have any idea what's going on? The site works but this makes cron not work, why does it behave this way only with cron run through Scheduled tasks? It runs as the Administrator with full permissions in the directory. Is there any way around this?

Quote · 8 Jan 2011

OK so I figured out why the cron doesn't work right, it is run through the php.exe file and doesn't have the ini settings of the web site, that's why the short tags didn't work and I had to change it in the utils.inc.php file but what is the setting that is nor allowing include files or required files?

I could put then the include path directive, but is there a cleaner way to do it without effecting my other sites?

Also isn't the command line tool for Windows winphp.exe instead of php.exe?

Quote · 8 Jan 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.