Problem with language_id

Author Message

Marko Žmak

Sunday 26 September 2010 3:02:05 pm

I'm using a multilanguage installation of eZP 4.3 and something strange is happening with the languages. It seems like the language_id of the object atributes is messed up. This is what happens...
In the output of {$node.object.data_map.text|attribute(show)} I get this:

language_code     string     'cro-HR'
language_id     string     3 

and in the output of {$node.object.current_language_object|attribute(show)} I get this:

id     string     2
name     string     'Croatian (Hrvatski)'
locale     string     'cro-HR' 

Also when I look at the Croatian language definition in the admin interface it's ID is 2.
Further more, by inspecting the ezcontentobject_attribute database table I found that all entries have language_code = cro-HR, and language_id = 3.
Any ideas why this happens?
Is it a bug in eZP, is something messed up in my installation, or am I missing something?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 18 2025 01:58:08
Script start
Timing: Jan 18 2025 01:58:08
Module start 'layout'
Timing: Jan 18 2025 01:58:08
Module start 'content'
Timing: Jan 18 2025 01:58:08
Module end 'content'
Timing: Jan 18 2025 01:58:08
Script end

Main resources:

Total runtime0.7126 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9141152.6250
Module start 'layout' 0.00490.0038 740.539139.4531
Module start 'content' 0.00860.7025 779.9922476.9297
Module end 'content' 0.71120.0014 1,256.92198.1641
Script end 0.7125  1,265.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5137160.0002
Check MTime0.00180.2472160.0001
Mysql Total
Database connection0.00090.121810.0009
Mysqli_queries0.672594.3796460.0146
Looping result0.00040.0543440.0000
Template Total0.685796.220.3429
Template load0.00230.318220.0011
Template processing0.683495.912720.3417
Template load and register function0.00010.015210.0001
states
state_id_array0.00050.072110.0005
state_identifier_array0.00070.094020.0003
Override
Cache load0.00190.2685130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.110610.0008
Fetch class attribute name0.00070.105020.0004
XML
Image XML parsing0.00060.079310.0006
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00160.2229180.0001
String conversion0.00000.001440.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs