Empty $User and redirect_uri variables

Author Message

Jerome Guillemain

Tuesday 02 August 2011 8:04:53 am

Hello everyone, 

I'm trying to make a new login/register page on EzPublish 4.5.0. The client want to have the login form and the register one on the same page, but I'm sure that it's possible if they are in different forms.

I made an override of login.tpl and register.tpl, and I'm working on it. However, I have a problem, which is that, event with the old template, I cannot either log in or register. 

I'm a really beginner with EzPublish technology, but I tried to have a look in the code. There is a variable "$User" which is never filled. It declarated but never filled. Moreover, the "redirect_uri" variable is empty. Is it normal ?

Thanks a lot for helping me if someone can !!

Yannick Komotir

Tuesday 02 August 2011 11:12:28 am

Hi,

Please use the eZ debug instead of dive into PHP code.

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

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 17 2025 22:38:08
Script start
Timing: Jan 17 2025 22:38:08
Module start 'layout'
Timing: Jan 17 2025 22:38:08
Module start 'content'
Timing: Jan 17 2025 22:38:09
Module end 'content'
Timing: Jan 17 2025 22:38:09
Script end

Main resources:

Total runtime0.6671 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.0313152.6406
Module start 'layout' 0.00600.0032 740.671939.4844
Module start 'content' 0.00920.6565 780.1563520.0469
Module end 'content' 0.66570.0013 1,300.20318.2969
Script end 0.6671  1,308.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5241160.0002
Check MTime0.00130.1991160.0001
Mysql Total
Database connection0.00080.115110.0008
Mysqli_queries0.616892.4574540.0114
Looping result0.00060.0884520.0000
Template Total0.632094.720.3160
Template load0.00230.339120.0011
Template processing0.629794.398220.3149
Template load and register function0.00010.022210.0001
states
state_id_array0.00100.149310.0010
state_identifier_array0.00070.110520.0004
Override
Cache load0.00180.2649140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.079220.0003
Fetch class attribute name0.00240.364330.0008
XML
Image XML parsing0.00490.737120.0025
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00570.8554160.0004
String conversion0.00000.001540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs