Forums / Install & configuration / Empty ezcontentobject_name table after upgrade.

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

eZ debug

Timing: Jan 18 2025 16:26:16
Script start
Timing: Jan 18 2025 16:26:16
Module start 'content'
Timing: Jan 18 2025 16:26:16
Module end 'content'
Timing: Jan 18 2025 16:26:17
Script end

Main resources:

Total runtime0.1515 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 593.5938180.8047
Module start 'content' 0.00630.0054 774.398493.9922
Module end 'content' 0.01170.1398 868.3906525.3750
Script end 0.1514  1,393.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.3098200.0002
Check MTime0.00130.8517200.0001
Mysql Total
Database connection0.00060.388010.0006
Mysqli_queries0.110773.03181410.0008
Looping result0.00130.87891390.0000
Template Total0.139592.110.1395
Template load0.00080.537810.0008
Template processing0.138791.519710.1387
Override
Cache load0.00060.377510.0006
Sytem overhead
Fetch class attribute can translate value0.00060.410510.0006
XML
Image XML parsing0.00020.154410.0002
General
dbfile0.00231.4975200.0001
String conversion0.00000.003930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs