User Register not register?!

Author Message

Pierandrea Della Putta

Tuesday 19 April 2011 7:53:13 am

In Ezpublish Community 4.2011, when you try register normal user from font-end site ( normal side ), you are redirect to user/success, but, if you see under "Users/Guest accounts" no one is register!

It is a iussue or it's my error?

Nicolas Pastorino

Tuesday 19 April 2011 10:54:27 am

Hello Pierandrea,

I just tried this on a fresh 4.2011 install, and it seems to works fine for me. Once you filled-out the registration form, the user/success view reads :

Your account was successfully created. An email will be sent to the specified address. 
Follow the instructions in that email to activate your account.

You should have received an email at the address specified upon registration. In my case, i received an email reading the following :

Thank you for registering at localhost/ezpublish_community_project-4.2011-with_ezc/index.php/eng.
Your account information
Username: jeanvoye
Email: nicolas.pastorino+test @ gmail.com

Click the following URL to confirm your account http://localhost/ezpublish_community_project-4.2011-with_ezc/index.php/eng/user/activate/18a13ea5ba06cc24e8a4f20373df26d4

Link to user information:http://localhost/ezpublish_community_project-4.2011-with_ezc/index.php/eng/content/view/full
Thank you for registering at localhost/ezpublish_community_project-4.2011-with_ezc/index.php/eng.
Your account informationUsername: jeanvoyeEmail: nicolas.pastorino+test@gmail.com

Click the following URL to confirm your accounthttp://localhost/ezpublish_community_project-4.2011-with_ezc/index.php/eng/user/activate/18a13ea5ba06cc24e8a4f20373df26d4

Link to user information:http://localhost/ezpublish_community_project-4.2011-with_ezc/index.php/eng/content/view/full

At this point in time, no user object is published yet, which explains why you do not see it in the content tree. When clicking the user/activate/.. link, publication occurs, and the user object is then visible in the content tree.

In case you did not receive the registration email, you may want to have a look in your junk mail folder.

Let us know how things go,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Pierandrea Della Putta

Tuesday 19 April 2011 10:46:52 pm

Thanks for your reply. My problem occurred when I upgraded an installation of z 4.4. Even if I click the email link, no object is created. Anyway, somewhere in the object is created, because if I try again to re-register with the same user or with the same mail, tells me that someone already has that user or the mail.

Marko Žmak

Tuesday 19 April 2011 11:33:54 pm

Hm, maybe the user is created in another group and not in "Users/Guest accounts"? Try doing a search (in the admin interface) for this registered user's username or email address and see what you get.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Pierandrea Della Putta

Tuesday 19 April 2011 11:48:14 pm

Already tried, no object is found.
Actually I removed the override of the user registration and clicking on the link of the email the user is created. But I have to customize the registration, to register under a given group with the class that I will

Nicolas Pastorino

Wednesday 20 April 2011 1:06:44 am

"

Actually I removed the override of the user registration and clicking on the link of the email the user is created.

"

Had you copied and pasted the content of the original template ? The business logic should be the same to function correctly.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Chen Xiongjie

Wednesday 20 April 2011 5:13:04 am

Hi,

Is it related to this? https://github.com/ezsystems/ezpublish/blob/master/doc/bc/4.5/changes-4.5.0.txt

"User object is not created until the user activates the account if activation is enabled."

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

Pierandrea Della Putta

Wednesday 20 April 2011 5:26:54 am

Ok, the problem seems solved when you activate your account through the mail and GeneratePasswordIfEmpty= false, at least in my case!
Thank you all for your support!

Marko Žmak

Wednesday 20 April 2011 5:37:05 am

"

Hi,

Is it related to this? https://github.com/ezsystems/ezpublish/blob/master/doc/bc/4.5/changes-4.5.0.txt

"User object is not created until the user activates the account if activation is enabled."

"

Hm, this bring up another question... What about this scenario:

  • the user registers but he doesn't get the activation mail (because of some error or similar)
  • the user then contacts the site administrator to help him

The site administrator wants to acitvate the user manually, but he cannot because the user object is not yet published.

So what would be the solution for this problem?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Chen Xiongjie

Tuesday 26 April 2011 7:16:01 am

@Marko, he can go to admin user interface and in 'my draft' link of dashboard tab, he will be able to see the draft. He can just publish those object and enable it.

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

Marko Žmak

Tuesday 26 April 2011 7:47:24 am

"

@Marko, he can go to admin user interface and in 'my draft' link of dashboard tab, he will be able to see the draft. He can just publish those object and enable it.

"

Which user(s) will see the draft in his "my draft"?

And how can this (the user that sees this draft) be configured?

EDIT: OK I found it:

  • http://doc.ez.no/eZ-Publish/User-manual/4.5/The-administration-interface/The-login-page/User-registration-with-approval-workflow

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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

Main resources:

Total runtime2.3420 sec
Peak memory usage4,096.0000 KB
Database Queries85

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.9141152.6250
Module start 'layout' 0.00840.0041 740.539139.4531
Module start 'content' 0.01252.3282 779.9922740.7422
Module end 'content' 2.34070.0013 1,520.734428.1641
Script end 2.3420  1,548.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.1506160.0002
Check MTime0.00150.0624160.0001
Mysql Total
Database connection0.00110.045610.0011
Mysqli_queries2.245095.8564850.0264
Looping result0.00090.0405830.0000
Template Total2.283497.521.1417
Template load0.00220.095120.0011
Template processing2.281297.399921.1406
Template load and register function0.00020.006610.0002
states
state_id_array0.00260.109710.0026
state_identifier_array0.00310.132020.0015
Override
Cache load0.00220.0941670.0000
Sytem overhead
Fetch class attribute can translate value0.00060.026740.0002
Fetch class attribute name0.00160.0689150.0001
XML
Image XML parsing0.00450.190940.0011
class_abstraction
Instantiating content class attribute0.00000.0019220.0000
General
dbfile0.00300.1278360.0001
String conversion0.00000.000440.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
11content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
2content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 55
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs