I got around by replacing
this
$this->Cookie->delete('Auth.User');
with this
if ($this->Cookie->read('Auth.User'))
$this->Cookie->delete('Auth.User');
I only got the error on one server and not another, nothing to do with
error_reporting in php...
On Sep 23, 1:51 pm, Joshua Muheim <[email protected]> wrote:
> Yes, it's in the app_controller.php...
>
> On Thu, Sep 23, 2010 at 1:49 PM, Jeremy Burns | Class Outfit
>
>
>
> <[email protected]> wrote:
> > Have you included the Session component and helper?
>
> > Jeremy Burns
> > Class Outfit
>
> > [email protected]
> >http://www.classoutfit.com
>
> > On 23 Sep 2010, at 12:44, psybear83 wrote:
>
> >> Hi everybody
>
> >> After upgrading from 1.2 to 1.3 my login (using the Auth component)
> >> doesn't work anymore. I'm trying to find the code where username and
> >> password are checked, but I couldn't so far. Anybody can give me a
> >> hint?
>
> >> Ah yeah, and the following errors/warnings occur now when trying to
> >> log in:
>
> >> Notice (8): Undefined index: Auth [CORE/cake/libs/controller/
> >> components/cookie.php, line 286]
> >> Code | Context
>
> >> }
> >> $names = explode('.', $key, 2);
> >> $this->__values[$names[0]] = Set::remove($this-
> >>> __values[$names[0]], $names[1]);
>
> >> $key = "Auth.User"
> >> $names = array(
> >> "Auth",
> >> "User"
> >> )
>
> >> CookieComponent::delete() - CORE/cake/libs/controller/components/
> >> cookie.php, line 286
> >> UsersController::beforeRender() - APP/controllers/
> >> users_controller.php, line 225
> >> Controller::render() - CORE/cake/libs/controller/controller.php, line
> >> 867
> >> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 207
> >> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
> >> [main] - APP/webroot/index.php, line 83
>
> >> Warning (2): Cannot modify header information - headers already sent
> >> by (output started at /Users/josh/Sites/ziviapps/cake/libs/controller/
> >> components/auth.php:722) [CORE/cake/libs/controller/components/
> >> cookie.php, line 381]
> >> Code | Context
>
> >> $name = "[Auth][User]"
>
> >> setcookie - [internal], line ??
> >> CookieComponent::__delete() - CORE/cake/libs/controller/components/
> >> cookie.php, line 381
> >> CookieComponent::delete() - CORE/cake/libs/controller/components/
> >> cookie.php, line 287
> >> UsersController::beforeRender() - APP/controllers/
> >> users_controller.php, line 225
> >> Controller::render() - CORE/cake/libs/controller/controller.php, line
> >> 867
> >> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 207
> >> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
> >> [main] - APP/webroot/index.php, line 83
>
> >> Notice (8): Undefined property: UsersController::$pageTitle [APP/
> >> controllers/app_controller.php, line 447]
>
> >> Thanks,
> >> Josh
>
> >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> >> with their CakePHP related questions.
>
> >> 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
> >> athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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
> > athttp://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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