registration form

Author Message

justin kazadi

Saturday 06 June 2009 3:50:46 am

Hi,

on my web site i have an problem on the register form (user/register). i don't see the error message when some fields is empty but all the field on the user content are required.

on my register form i have this code for the validation process:

{if and( and( is_set( $checkErrNodeId ), $checkErrNodeId ), eq( $checkErrNodeId, true() ) )}
      message-error
    <div class="message-error">
        <h2><span class="time">[{currentdate()|l10n( shortdatetime )}]</span> {$errMsg}</h2>
    </div>
{/if}

{if $validation.processed}
validation process<br />
    {if $validation.attributes|count|gt(0)}
     validation process<br />
        <div class="warning">
        <h2>{"Input did not validate"|i18n("design/ezwebin/user/register")}</h2>
        <ul>
        {foreach $validation.attributes as $attribute}
            <li>{$attribute.name}: {$attribute.description}</li>
        {/foreach}
        </ul>
        </div>
    {else}
        <div class="feedback">
        <h2>{"Input was stored successfully"|i18n("design/ezwebin/user/register")}</h2>
        </div>
    {/if}

{/if}

and in the Back office i see some instance of the user content class who some fields are empty , but the field are required on the definition of user content class.

i don't understand why it don't works but before one week it work very good.

could somebody help me?

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Jean-Luc Nguyen

Monday 08 June 2009 1:56:59 am

Hello,

I don't know if this post is related to your question:
http://ez.no/developer/forum/general/some_subscriptions_are_empty

http://www.acidre.com

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 30 2025 21:33:32
Script start
Timing: Jan 30 2025 21:33:32
Module start 'layout'
Timing: Jan 30 2025 21:33:32
Module start 'content'
Timing: Jan 30 2025 21:33:32
Module end 'content'
Timing: Jan 30 2025 21:33:32
Script end

Main resources:

Total runtime0.0233 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0078151.1953
Module start 'layout' 0.00520.0039 739.2031220.6563
Module start 'content' 0.00910.0130 959.8594997.8672
Module end 'content' 0.02210.0012 1,957.726633.9922
Script end 0.0233  1,991.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.0211140.0002
Check MTime0.00114.6228140.0001
Mysql Total
Database connection0.00072.792910.0007
Mysqli_queries0.00218.994430.0007
Looping result0.00000.042910.0000
Template Total0.00093.910.0009
Template load0.00072.964410.0007
Template processing0.00020.895610.0002
Override
Cache load0.00052.042310.0005
General
dbfile0.00052.353880.0001
String conversion0.00000.034740.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