Pierre

after reading the article it seems that having 2 index files in
approot would cause duplicate declaration problems. for instance
redeclaring dispatcher.

check the cron_dispath.php  for such 'declarations' and try commenting
them out. You script may ot work but it will help isolate the problem

On Jun 24, 10:49 am, Pierre MARCOURT <[EMAIL PROTECTED]>
wrote:
> Hello all,
>
> i have an error using Cron and CakePHP...**
> ****
> I have defined a cron_dispatcher.php file in my app/webroot/ 
> (cf.http://www.lost-in-code.com/27/cakephp-crontab/andhttp://bakery.cakephp.org/articles/view/calling-controller-actions-fr...)
>  but I have an issue and I don't understand why.
>
> My command in my cron file is :
>
> /usr/local/bin/php -q
> /home/lifeorganizers/www/taskmanager/app/webroot/cron_dispatcher.php
> /tasks/cron/
>
> And i receive an error email from Cron which contains :
>
> PHP Fatal error: Cannot redeclare loadmodels() (previously declared
> in /home/lifeorganizers/www/taskmanager/cake/basics.php:113) in
> /home/lifeorganizers/www/taskmanager/cake/basics.php on line 142
>
> Fatal error: Cannot redeclare loadmodels() (previously declared in
> /home/lifeorganizers/www/taskmanager/cake/basics.php:113) in
> /home/lifeorganizers/www/taskmanager/cake/basics.php on line 142
>
> If someone has an idea, it would be great ?!
>
> Thanks for your help.
> --
>  *Pierre MARCOURT*
>
> *IT Department*
>         *CableOrganizer.com*
> 5610 NW 12th Ave, suite 214
> Fort Lauderdale, FL 33304
>
>         Phone: 954-861-6310
> Fax: 954-861-2001
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to