login and logout

Author Message

Jacek S

Monday 31 October 2005 2:02:27 pm

I make a custom login form embbed in main page of my site. I also add a link to(/user/logout). When I try to log in everything works fine. But, when i try to logout I get errors:

Fatal error: Call to a member function on a non-object in /kernel/classes/datatypes/ezuser/ezuserloginhandler.php on line 267
Fatal error: eZ publish did not finish its request

and

Fatal error: Call to a member function on a non-object in /kernel/classes/datatypes/ezuser/ezuserloginhandler.php on line 244
Fatal error: eZ publish did not finish its request

Does anyone know what is going on? Where I made a mistake?

Kristof Coomans

Tuesday 01 November 2005 1:53:40 am

The errors occur when trying to call a function of a specific login handler plugin. You'll need to check your configuration file site.ini.append:

[UserSettings]
LoginHandler[]=standard

This is the default setting. I think you've listed a login handler there that's not available, which causes the fatal errors.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Jacek S

Tuesday 01 November 2005 7:38:30 am

I have checked [UserSettings] and everything looks fine. Configuration in site.ini.append in my sitesettings has exacly the same line like you have written and there isnt any UserSettings i override.
So, maybe there is other thing which couses errors?

Kristof Coomans

Wednesday 02 November 2005 12:37:11 am

I've checked ezuserloginhandler.php at the lines mentioned and it seems it has something to do with the login page handler.

What do you have in site.ini.append for:

[SiteSettings]
LoginPage=custom

It should be <i>embedded</i> or <i>custom</i> if you don't use another login handler.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Jacek S

Thursday 03 November 2005 6:34:18 am

Every thing works. There was a typo in <i>embedded</i> :)

Thanks.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.