hanging while trying to create new user with SSO

Author Message

David Wirth

Tuesday 28 June 2011 12:51:52 pm

I have a class that extends eZUser to accommodate a secondary login handler. It includes a function that creates an eZ user object for an authenticated user who is logging in for the first time. It works absolutely fine when called as part of the login process.

I am working on a SSO handler. I want for it to likewise create an eZ user content object if one doesn't exist for an authenticated user. When I call the function to create the user from the SSO handler, the system hangs. Through troubleshooting I traced the problem to where the content object is instantiated.

$class = eZContentClass::fetch( $userClassID );
$contentObject = $class->instantiate( $userCreatorID, $defaultSectionID ); //this is the line that causes the hang

Does anyone have any guesses as to what is different about the SSO process that is causing this script to fail?

Matthieu Sévère

Tuesday 28 June 2011 1:36:38 pm

Hey David,

 

Sorry I don't have any clue about this. Just want to say that I made the exact same process (user creation in SSO and login of just created user) and it works fine !

Any errors in log that could help ?

--
eZ certified developer: http://ez.no/certification/verify/346216

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 18 2025 02:48:39
Script start
Timing: Jan 18 2025 02:48:39
Module start 'layout'
Timing: Jan 18 2025 02:48:39
Module start 'content'
Timing: Jan 18 2025 02:48:40
Module end 'content'
Timing: Jan 18 2025 02:48:40
Script end

Main resources:

Total runtime0.6286 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.4766152.6406
Module start 'layout' 0.00440.0022 742.117239.4844
Module start 'content' 0.00660.6206 781.6016532.0938
Module end 'content' 0.62710.0015 1,313.69538.1250
Script end 0.6286  1,321.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4822160.0002
Check MTime0.00130.1994160.0001
Mysql Total
Database connection0.00060.090810.0006
Mysqli_queries0.585893.1806540.0108
Looping result0.00060.0885520.0000
Template Total0.601095.620.3005
Template load0.00190.301420.0009
Template processing0.599195.302020.2996
Template load and register function0.00010.016510.0001
states
state_id_array0.00110.178810.0011
state_identifier_array0.00090.142220.0004
Override
Cache load0.00150.2376140.0001
Sytem overhead
Fetch class attribute can translate value0.00110.167120.0005
Fetch class attribute name0.00150.238140.0004
XML
Image XML parsing0.00110.170420.0005
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.1305220.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs