Registration working but main_node_id seems to miss

Author Message

Thomas Parisot

Wednesday 04 February 2009 8:56:45 am

Hello,

I'm using eZ Publish since a month now and I'm testing registration.
It is the default registration form without any modification.

Here are the steps I follow:
* I fill the fields of /user/register
* I submit the form
* I have a confirmation screen which tells me to check my mails
* I read the confirmation email BUT I have this :

Thank you for registering at ###.

Your account information
Username: ###
Email: ###
Password: ###

Click the following URL to confirm your account
http://###/user/activate/6126890807e34fc75bde980db1263859


Link to user information:
http://###/content/view/full

I looked inside the template registrationinfo.tpl and I see :

{let site_url=ezini('SiteSettings','SiteURL')}
{set-block scope=root variable=subject}{'%1 registration info'|i18n('design/standard/user/register',,array($site_url))}{/set-block}
{'Thank you for registering at %siteurl.'|i18n('design/standard/user/register',,hash('%siteurl',$site_url))}

{'Your account information'|i18n('design/standard/user/register')}
{'Username'|i18n('design/standard/user/register')}: {$user.login}
{'Email'|i18n('design/standard/user/register')}: {$user.email}

{section show=$password}
{'Password'|i18n('design/standard/user/register')}: {$password}
{/section}


{section show=and( is_set( $hash ), $hash )}

{'Click the following URL to confirm your account'|i18n('design/standard/user/register')}
http://{$hostname}{concat( 'user/activate/', $hash, '/', $object.main_node_id )|ezurl(no)}

{/section}


{'Link to user information'|i18n('design/standard/user/register')}:
http://{$hostname}{concat('content/view/full/',$object.main_node_id)|ezurl(no)}


{/let}

It is as if the main_node_id was null.
I digged to register.php and dumped data from $object var and it appears that MainNodeId is null despite the "ID" attribute is fulled.

So in fact the problem is :
* people can register
* people can't confirm their account
* people can't connect to the application

I really don't see where the problem comes from: the object is created ... but not well enough?

Thanks for your help

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 10:29:13
Script start
Timing: Jan 18 2025 10:29:13
Module start 'layout'
Timing: Jan 18 2025 10:29:13
Module start 'content'
Timing: Jan 18 2025 10:29:14
Module end 'content'
Timing: Jan 18 2025 10:29:14
Script end

Main resources:

Total runtime0.6174 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0391152.6406
Module start 'layout' 0.00710.0041 740.679739.4922
Module start 'content' 0.01130.6045 780.1719448.0469
Module end 'content' 0.61570.0016 1,228.21888.1250
Script end 0.6173  1,236.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5264160.0002
Check MTime0.00130.2154160.0001
Mysql Total
Database connection0.00130.212710.0013
Mysqli_queries0.567291.8676460.0123
Looping result0.00040.0643440.0000
Template Total0.577493.520.2887
Template load0.00230.375320.0012
Template processing0.575093.138820.2875
Template load and register function0.00010.018310.0001
states
state_id_array0.00090.140010.0009
state_identifier_array0.00560.901120.0028
Override
Cache load0.00190.3064230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.123810.0008
Fetch class attribute name0.00060.089620.0003
XML
Image XML parsing0.00170.277510.0017
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00200.3233160.0001
String conversion0.00000.001640.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs