Empty ezcontentobject_name table after upgrade.

Author Message

John Dalton

Tuesday 21 August 2007 5:24:40 am

Hi all,

I've been attempting to upgrade (a copy of) our site from 3.6.11 to 3.9.2.

After trying to follow all of the schema updates and upgrade scripts in order, I've ended up with a broken development site. The error I get is this:

Object is unavailable

The object you requested is not currently available.

Possible reasons for this are:

    * The id or name of the object was misspelled, try changing it.
    * The object is no longer available on the site.

With debug output turned on, the error seems to be occuring due to this query returning no rows:

Notice: eZMySQLDB::query(0 rows, 0.247 ms) query number per page:32  	Aug 21 2007 21:58:31

SELECT ezcontentobject.*,
                       ezcontentobject_tree.*,
                       ezcontentclass.serialized_name_list as class_serialized_name_list,
                       ezcontentclass.identifier as class_identifier
                       , ezcontentobject_name.name as name,  ezcontentobject_name.real_translation 
                FROM ezcontentobject_tree,
                     ezcontentobject,
                     ezcontentclass
                     , ezcontentobject_name 
                WHERE node_id IN ( 2 ) AND
                      ezcontentobject_tree.contentobject_id=ezcontentobject.id AND
                      ezcontentclass.version=0  AND
                      ezcontentclass.id = ezcontentobject.contentclass_id
                       AND 
 ezcontentobject.language_mask & 15 > 0 

                       and  ezcontentobject_tree.contentobject_id = ezcontentobject_name.contentobject_id and
                                  ezcontentobject_tree.contentobject_version = ezcontentobject_name.content_version and 
 ( ezcontentobject_name.language_id & ezcontentobject.language_mask > 0 AND
     ( (   ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 1 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 8 ) >> 2 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 4 ) )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 2 ) << 2 )
   <
     ( ezcontentobject_name.language_id & 1 )
   + ( ( ezcontentobject_name.language_id & 8 ) >> 2 )
   + ( ( ezcontentobject_name.language_id & 4 ) )
   + ( ( ezcontentobject_name.language_id & 2 ) << 2 )
 )

Error: error/view.php 	Aug 21 2007 21:58:31

Error ocurred using URI: /


Experimentation reveals that the query fails because ezcontentobject_name is empty. I'm guessing this happened when update_multilingual.php was run.

Questions!

a) is there a sensible/correct way of rebuilding this table?

b) If not, how do I avoid this happening again? What might I have done wrong?

--John Dalton

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

Main resources:

Total runtime0.5499 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.0066 588.1641152.6563
Module start 'layout' 0.00660.0039 740.820339.5078
Module start 'content' 0.01050.5374 780.3281440.3281
Module end 'content' 0.54790.0019 1,220.65638.2656
Script end 0.5498  1,228.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.7651160.0003
Check MTime0.00200.3688160.0001
Mysql Total
Database connection0.00070.128010.0007
Mysqli_queries0.499590.8262460.0109
Looping result0.00060.1149440.0000
Template Total0.506592.120.2532
Template load0.00240.437220.0012
Template processing0.504091.659020.2520
Template load and register function0.00020.036510.0002
states
state_id_array0.00180.334110.0018
state_identifier_array0.00280.504820.0014
Override
Cache load0.00200.3558140.0001
Sytem overhead
Fetch class attribute can translate value0.00130.236910.0013
Fetch class attribute name0.00080.142010.0008
XML
Image XML parsing0.00010.024010.0001
class_abstraction
Instantiating content class attribute0.00000.001610.0000
General
dbfile0.00160.2865100.0002
String conversion0.00000.001640.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/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
2content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0007 secs