In your post, it just says that it redirects to a login form. Did you
setup your auth redirect variable manually or are you using the
default users/login? Sorry, just trying to help.

On Nov 15, 3:04 am, Petr 'PePa' Pavel <[EMAIL PROTECTED]> wrote:
> I'm not sure what you're asking about. I already gave you the value of
> $authRedirect...
>
> Petr
>
> Dne 15.11.2008 0:13, validkeys napsal(a):
>
> > what is the value of your authRedirect?
>
> > On Nov 14, 12:35 pm, "Petr 'PePa' Pavel" <[EMAIL PROTECTED]> wrote:
> >> Hello everyone,
> >> I'd like to share with you what I have discovered.
>
> >> Here's a procedure that triggers a notice level error:
> >> 1) When accessing url
> >>  http://teachtheworldguitar.pp/orderItems/delete/30
> >>   OrderItemsController->isAuthorized() returns false so I'm logged off
> >> and redirected to a login form. That was planned, so far so good.
>
> >> 2) The url I came from is saved and used after successful login for
> >> redirection. This is in my MembersController->login():
> >>       $authRedirect = $this->Auth->redirect();
> >>       if (!is_array($authRedirect)) {
> >>         $authRedirect = Router::parse($authRedirect);
> >>       }
> >> ... some code here ...
> >>       $this->redirect($authRedirect);
>
> >> 3) Now I'm getting to the point. Just before the redirect call
> >> $authRedirect looks like this:
> >> array(
> >>   'controller' => 'order_items',
> >>   'plugin' => null,
> >>   'pass' => array(0 => 30),
> >>   'action' => 'delete')
> >> )
>
> >> Looks ok but then I get
> >> Notice (8): Array to string conversion [CORE\cake\libs\router.php,
> >> line 949]
>
> >> So either Router::parse() returns malformed result or Router::url()
> >> doesn't understand something that is correctly formed. The notice
> >> itself is in Router::mapRouteElements().
>
> >> Before sending this I checked that I have the same version of
> >> router.php as the latest svn 
> >> source:https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/router.php
>
> >> So what do you think? Is it me or is there really a bug. If it is a
> >> bug, what should I do?
>
> >> Petr
--~--~---------~--~----~------------~-------~--~----~
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