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.

eZ debug

Timing: Jan 19 2025 01:03:02
Script start
Timing: Jan 19 2025 01:03:02
Module start 'layout'
Timing: Jan 19 2025 01:03:02
Module start 'content'
Timing: Jan 19 2025 01:03:02
Module end 'content'
Timing: Jan 19 2025 01:03:02
Script end

Main resources:

Total runtime0.0195 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 590.1875152.6094
Module start 'layout' 0.00640.0034 742.796939.4141
Module start 'content' 0.00980.0074 782.210993.4297
Module end 'content' 0.01720.0023 875.640634.3047
Script end 0.0195  909.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003015.3797140.0002
Check MTime0.00146.9542140.0001
Mysql Total
Database connection0.00094.498310.0009
Mysqli_queries0.003216.253330.0011
Looping result0.00000.096410.0000
Template Total0.00189.410.0018
Template load0.00115.624410.0011
Template processing0.00073.710110.0007
Override
Cache load0.00084.007810.0008
General
dbfile0.00178.695280.0002
String conversion0.00000.057340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs