Hi Chris Hartjes,

I did it at first, but It vas always reproduced, so I decided to debug
case, and found the problem.
The problem occured in the basics.php:

$paths = Configure::getInstance();
                        foreach ($paths->controllerPaths as $path) {
                                if (file_exists($path . $name . '.php')) {
                                        Configure::store('Controllers', 
'class.paths', array($className
=> array('path' => $path . $name . '.php')));
                                        require($path . $name . '.php');
                                        return true;
                                }
                        }

line 409: require($path . $name . '.php'); gives an error when I want
to call a requestaction within the controller themselves.
So I rewrote it to require_once.
Whatever reason to in php5 I didn't get this error!

I think the line 417 must be rewriteen too, I think

Bye
Sandor

On szept. 26, 15:04, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/26/07, carstep <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi All,
>
> > I had to move my php system back to php4 and apache1.3 and realized
> > that the requestAction() method produces failing behavior in cahing
> > controllers and models.
>
> > I got the following error:
>
> > Fatal error: Cannot redeclare the importcontroller class...
>
> > It takes me a half an hour to figure out what was the problem:
> > - first in the tmp/cache/privileges/class.paths.php file contained the
> > $config['Controllers']['ImportController'] = array(...
> > entries doubled
>
> > - after a while commenting out lines I figured out, that when I use
> > the requestAction() method for an action within the importcontroller
> > themselves, I get this error message.
>
> > I hope there is a solution to overcome this in any way and has
> > somebody a solution for it?
> > Seems to be a bug but I am not sure
>
> Try deleting the contents of tmp/cache and see if the same error
> exists.  In my opinion, you should always do development work with
> debug set to at least 1, thus preventing the weird caching issues that
> seem to pop up from time to time.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporationhttp://www.cakedevelopment.com
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to