Thursday 16 June 2005 6:58:59 pm
Thanks for your reply Xavier. As indicated in my original post, all of the fixes that I attempted did not generate any records or log files (or none that I was able to see anyway).
For example I tried calling the cronjob.php file from the browser, where it then generated the <i>currently using the apache interface blah blah blah</i> error. I then tried inserting the following script into the index.php file:
<i>include_once('kernel/classes/notification/eznotificationeventfilter.php' ); eZNotificationEventFilter::process();</i>
I refreshed the home page again and then - nothing.
I tried a number of variations of setting up the php.exe and php-cli.exe to run the cronjobs script, such as:
* using the windows scheduler application
* creating batch files and
* configuring php shortcut files In all of the above examples a command window would open but the text would flash across the box and then close before I had a chance to read it. That said, it didnt launch my runcronjobs.php file anyway, as none of the workflows had been processed. Good news, however, I had a breakthrough last night! My problem(s) it would seem, were a result of incorrect paths being used to call on the php-cli.exe. Basically I was trying to fire up the php-cli.exe from within the php folder. I SHOULD have called it up from the folder in which the runcronjobs.php file resided.
Given that my site files are in c:\ezpublish\ezpublish and my php files are in c:\ezpublish\php, I was originally typing into the command line the following: <i>C:\eZpublish\php\php-cli.exe C:\ eZpublish\ eZpublish\runcronjobs.php</i>
What I <b>should</b> have done is first navigated to the root of the site, ie: <i>C:\ eZpubl~1\ eZpubl~1</i>
Then to that line I should have added: <i>C:\eZpublish\php\php-cli.exe runcronjobs.php</i>
The full line would look something like this: <i>C:\EZPUBL~1\EZPUBL~1>c:\ezpubl~1\php\php-cli.exe runcronjobs.php</i> Concluding, I have now set the php-cli.exe to run in windows scheduler, and amended the appropriate paths. All is well now and I am a happy man :)
|