include uri register.tpl problem

Author Message

christian bencivenni

Saturday 17 November 2007 9:12:46 am

Hello to you all.
I have this problem.
I must include the register form of registr.tpl template in a personal template.
I use the {include uri='design:user/register.tpl'} code inside my template but I receive this return error: "Unable to register new user"

Reading the register.tpl file I desume that the problem is born becouse the template engine cannot find the $content_attributes variable. Is correct? How I can rsolve?

In a previous problem with the basket.tpl template I resolved with:
{def $basket=fetch( 'shop', 'basket' )}
before the include formula. But what I must fetch now?
Thanks.

christian bencivenni

Saturday 17 November 2007 9:20:29 am

Oh.
the debug says:

Error: eZSys::serverVariable Nov 17 2007 18:19:13

Server variable 'REQUEST_URI' does not exist

Error: eZSys::serverVariable Nov 17 2007 18:19:13

Server variable 'SCRIPT_FILENAME' does not exist

Error: eZSys::serverVariable Nov 17 2007 18:19:13

Server variable 'DOCUMENT_ROOT' does not exist

christian bencivenni

Wednesday 21 November 2007 12:18:13 am

I think that the $content_attributes variable is a fetch of the User class attributes .
Is it correct?

christian bencivenni

Wednesday 21 November 2007 1:59:22 am

Ok.
i understand that it's a problem of $content_attributes variable.
Simply (?) when I include the register.tpl I miss to create a new user object and fetch it's attributes.
The question is: how can I create it?

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 19 2025 00:24:56
Script start
Timing: Jan 19 2025 00:24:56
Module start 'layout'
Timing: Jan 19 2025 00:24:56
Module start 'content'
Timing: Jan 19 2025 00:24:57
Module end 'content'
Timing: Jan 19 2025 00:24:57
Script end

Main resources:

Total runtime0.7570 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.9375152.6250
Module start 'layout' 0.00750.0031 740.562539.4453
Module start 'content' 0.01050.7449 780.0078446.0156
Module end 'content' 0.75540.0015 1,226.023412.1563
Script end 0.7569  1,238.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4675160.0002
Check MTime0.00130.1727160.0001
Mysql Total
Database connection0.00100.131710.0010
Mysqli_queries0.705893.2408580.0122
Looping result0.00070.0979560.0000
Template Total0.718494.920.3592
Template load0.00250.326720.0012
Template processing0.715994.576320.3580
Template load and register function0.00020.025510.0002
states
state_id_array0.00130.169210.0013
state_identifier_array0.00180.241920.0009
Override
Cache load0.00180.2346290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.096310.0007
Fetch class attribute name0.00110.149340.0003
XML
Image XML parsing0.00020.022810.0002
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.1024100.0001
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0001 secs