Help: new users are missing $current_user.contentobject

Author Message

Brendan Pike

Tuesday 22 November 2005 9:49:08 pm

I've done a test upgrade from 3.6.1 to 3.6.4 and discovered that new users don't seem to get contentobject. When I compare the output of an old and new user with {$current_user|attribute(show)} new users only have NULL next to the contentobject attribute but old users show 40 or so attribute types.

Out as follows:

Attribute 	Type 	Value
contentobject_id 	string 	1871
login 	string 	'AABB'
email 	string 	'brendan@here.net'
password_hash 	string 	'94fdd5ea0478ce7d80b5ae3cbaf59d17'
password_hash_type 	string 	2
contentobject 	NULL 	
groups 	array 	Array(0)
has_stored_login 	boolean 	false
original_password 	boolean 	false
original_password_confirm 	boolean 	false
roles 	array 	Array(0)
role_id_list 	array 	Array(0)
limited_assignment_value_list 	array 	Array(0)
is_logged_in 	boolean 	true
is_enabled 	boolean 	true
last_visit 	integer 	1132723161

What could be causing this, I did discover a newly added input in register.tpl <input class="button" type="hidden" name="UserID" value="{$content_attributes[0].contentobject_id}" />

Is there something similar I have missed in a template perhaps?
*bump*

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Brendan Pike

Wednesday 30 November 2005 6:09:30 pm

Problem solved! I realise now why no one seemed able to offer any advice on this problem.

To add a little more detail I was also experiencing odd behaviour like the user registration form would not enforce many required fields but only on the development site version which was identical in every way.

It turned out that the mysql user class had somehow been corrupted, I still don't have a complete understanding, especially since I was using the same mysql user to access both the live database site and the development database copy, yet the live site worked fine and the development site did not. All permissions for each database was identical.

So if you find similar strange behaviour I advise you to try a new database user, it could save you a lot of time and stress.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

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 03:40:23
Script start
Timing: Jan 19 2025 03:40:23
Module start 'layout'
Timing: Jan 19 2025 03:40:23
Module start 'content'
Timing: Jan 19 2025 03:40:25
Module end 'content'
Timing: Jan 19 2025 03:40:25
Script end

Main resources:

Total runtime1.2048 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2969152.6406
Module start 'layout' 0.00630.0031 741.937539.4766
Module start 'content' 0.00931.1940 781.4141455.7578
Module end 'content' 1.20330.0015 1,237.17198.1250
Script end 1.2048  1,245.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2991160.0002
Check MTime0.00140.1179160.0001
Mysql Total
Database connection0.00100.085010.0010
Mysqli_queries1.161296.3756520.0223
Looping result0.00070.0559500.0000
Template Total1.167596.920.5837
Template load0.00240.198620.0012
Template processing1.165196.699220.5825
Template load and register function0.00030.021210.0003
states
state_id_array0.00130.104810.0013
state_identifier_array0.00170.143020.0009
Override
Cache load0.00190.1614140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.074010.0009
Fetch class attribute name0.00110.090820.0005
XML
Image XML parsing0.00010.008110.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00090.0782100.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs