Put your DEBUG to 1 in your /app/config/core.php , it should give you the real error message (ie missing controller / action / view). The only differences I had to make to our application for CLI was to avoid authentication - of course there is no session on CLI.
On Sep 20, 6:36 am, keymaster <[EMAIL PROTECTED]> wrote: > I've tried replying to this thread regarding invoking cake through a > cron,http://groups.google.com/group/cake-php/browse_thread/thread/ca93998e... > but Google won't let me, so am starting this new thread, while > referencing the older one. > > If anyone else has encountered the following problem, and was > successful in resolving it, I would appreciate the heads up on what > you did. > > As described in the very clear bakery > articlehttp://bakery.cakephp.org/articles/view/calling-controller-actions-fr..., > I took a copy of app/webroot/index.php, modified it to take command > line arguments of controller/action, then placed it in a file called > cron_dispatcher.php in the app/ directory. > > Here is the problem: > > When I invoke the cron_dispatcher.php as follows: > > php cron_dispatcher.php /orders/my_alert > > It invokes cake fine, extracts the parameters fine, but then cake > gives the following error: > > 404 Not found > The requested address /orders/my_alert was not found on this server. > > However, when I invokehttp://mydomain.com/orders/my_alertthrough the > web, it finds the action and it runs as it should. > > Any idea why through the web cake finds the controller/action, but not > when it is invoked through the cron? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
