Forums / General / Strange database entries in fresh ezpublish 3.6.1 install

Strange database entries in fresh ezpublish 3.6.1 install

Author Message

John Smith

Saturday 27 September 2008 4:53:14 am

Hi There,

Yesterday I installed fresh ezpublish 3.6.1 and saw some strange database entries in "ezcontentobject_tree" table which is messing up the "Location" entries (stated below) after upgrading from 3.6.1 to 3.8.x and onwards to 4.0.1

1. "Look and Feel" in the Design section getting two "Locations".
Design / <site title>( which is correct)
<site title> ( Node id= "55", do not need this entry)

2. "Gobal settings" in "Setup" section getting two locations:
Setup / Common INI settings (which is correct)
Common INI settings ( Node id= "57", do not need this entry)

<b>Question:</b>

a) Is it a bug in 3.6.1 or a feature. It has been deliberately inserted into the database - see the entries in sql below.

b) Why there is no insertion of these entries in version 3.8.x onwards to 4.0.x.

Look at the two lines in kernel\sql\common\cleandata.sql

INSERT INTO ezcontentobject_tree (contentobject_id, contentobject_is_published, contentobject_version, depth, is_hidden, is_invisible, main_node_id, modified_subnode, node_id, parent_node_id, path_identification_string, path_string, priority, remote_id, sort_field, sort_order) VALUES (52,0,0,2,0,0,0,0,55,48,'','/TEMPPATH',0,'fa9f3cff9cf90ecfae335718dcbddfe2',1,1);
INSERT INTO ezcontentobject_tree (contentobject_id, contentobject_is_published, contentobject_version, depth, is_hidden, is_invisible, main_node_id, modified_subnode, node_id, parent_node_id, path_identification_string, path_string, priority, remote_id, sort_field, sort_order) VALUES (54,0,0,2,0,0,0,0,57,48,'','/TEMPPATH',0,'772da20ecf88b3035d73cbdfcea0f119',1,1);

Deleting the entries from the table gives me the correct locations in "Look and Feel" and "Gobal settings" in "Setup". Please suggest, is it ok to delete the entries after upgrading.

Cheers

Regards
Smith

André R.

Saturday 27 September 2008 6:16:59 am

Looking over svn history, here are some fixes in cleandata that might be worth to fix before you do the upgrade:

rev: 15589
table: ezcontentobject_tree
comment: - Removed invalid nodes from common.sql
# They contained /TEMPPATH.
Removed node id (node for object id): 57 (54), 55 (52)

rev: 16690
table: ezcontentobject_tree
comment: - Fixed bug #8764: Wrong format in ezcontentobject_tree table for design/ez_publish.

  56,
  58,
  'design/ez_publish',
-  '/1/58/56',
+  '/1/58/56/',
  0,
  '772da20ecf88b3035d73cbdfcea0f119',
  1,

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 18 2025 16:02:11
Script start
Timing: Jan 18 2025 16:02:11
Module start 'content'
Timing: Jan 18 2025 16:02:11
Module end 'content'
Timing: Jan 18 2025 16:02:11
Script end

Main resources:

Total runtime0.1282 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9609180.8047
Module start 'content' 0.00550.0051 768.765694.0703
Module end 'content' 0.01050.1176 862.8359525.4219
Script end 0.1281  1,388.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.4217200.0002
Check MTime0.00120.9511200.0001
Mysql Total
Database connection0.00070.579610.0007
Mysqli_queries0.089970.12501410.0006
Looping result0.00110.83861390.0000
Template Total0.117491.510.1174
Template load0.00060.492210.0006
Template processing0.116791.051610.1167
Override
Cache load0.00040.342310.0004
Sytem overhead
Fetch class attribute can translate value0.00070.564010.0007
XML
Image XML parsing0.00030.207310.0003
General
dbfile0.00211.6426200.0001
String conversion0.00000.004530.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.0002 secs