Registration Form not displaying

Author Message

Mohammad Tufail

Friday 11 April 2008 6:08:42 am

Hi,

I have override the /user/register.tpl but it is not displaying properly. Instead of displaying username, password, confirm password fields etc fields, it is displaying Name, Caption, and Image attributes or fields.

Any suggestion?

Regards,

Maxime Thomas

Sunday 13 April 2008 10:58:52 pm

Can you provide your override settings ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Mohammad Tufail

Monday 14 April 2008 12:47:18 am

[register_over]
Source=user/register.tpl
MatchFile=register_over.tpl
Subdir=templates

register_over.tpl is the copy of the /user/register.tpl file with only css modification.

Maxime Thomas

Tuesday 15 April 2008 12:07:11 am

Ok.

You can activate the debug for the siteaccess you would like to do this override.
Tick the list of templates to view what templates are loaded.
You will see if your template is loaded.

Have you cleaned the cache ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Mohammad Tufail

Tuesday 15 April 2008 12:32:35 am

Yes, I have cleaned the cache. And in the debug output it is loading the correct template i.e register_over.tpl.
Even i have removed the overriden template and check the /user/register.tpl but i has also the same problem.
I think the attributes fetching section is not working properly.

{section show=count($content_attributes)|gt(0)}

    {section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}

    <input type="hidden" name="ContentObjectAttribute_id[]" value="{$ContentObjectAttribute:item.id}" />

    <div class="block">

        <label>{$ContentObjectAttribute:item.contentclass_attribute.name}</label><div class="labelbreak"></div>

        {attribute_edit_gui attribute=$ContentObjectAttribute:item}

    </div>

    {/section}

Any idea?

Maxime Thomas

Tuesday 15 April 2008 10:23:51 pm

This template is doing exactly what you said : it's looping on a new user attributes.
Check your user class for an an attribute type called User Account.
If this one is not present you won't be able to login in eZ.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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 31 2025 06:05:49
Script start
Timing: Jan 31 2025 06:05:49
Module start 'layout'
Timing: Jan 31 2025 06:05:49
Module start 'content'
Timing: Jan 31 2025 06:05:49
Module end 'content'
Timing: Jan 31 2025 06:05:49
Script end

Main resources:

Total runtime0.0157 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1563151.2109
Module start 'layout' 0.00470.0031 739.367236.6484
Module start 'content' 0.00790.0066 776.015698.2813
Module end 'content' 0.01450.0012 874.296937.9922
Script end 0.0156  912.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.7535140.0002
Check MTime0.00106.4366140.0001
Mysql Total
Database connection0.00074.597610.0007
Mysqli_queries0.002415.561730.0008
Looping result0.00000.127910.0000
Template Total0.00095.610.0009
Template load0.00074.188010.0007
Template processing0.00021.353410.0002
Override
Cache load0.00042.854410.0004
General
dbfile0.002314.687880.0003
String conversion0.00000.062440.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