Forums / General / Template override - Different behaviour in eZpublish 4

Template override - Different behaviour in eZpublish 4

Author Message

John Smith

Thursday 11 September 2008 5:25:41 am

The main difference is very first line

In 3.6.1

{let assigned_nodes=$node.object.current.node_assignments

Which return an array with 1 element.

In 3.8.12

{let assigned_nodes=$node.object.assigned_nodes

which return an array with 2 elements.

John Smith

Tuesday 16 September 2008 9:52:03 am

Anybody please?

Doing upgrades next week on number of website. Hopefully this bug or problem is not going to cause major issues at a later stage.

Please suggest.

André R.

Tuesday 16 September 2008 11:33:50 am

I have no idea why you get this bug, but one of the changes to 3.8.x is that the ezcontentobject_tree table is used to figure out the node locations instead of the eznode_assignment table.
So maybe you have (or get during the upgrade) a inconsistency in the ezcontentobject_tree table?
Might be a hint to look at what data you have in that table on that specific object id ('contentobject_id') before and after the upgrade.

If you can't find anything you could consider using support tickets for this, the ez network team is mostly more experienced with the upgrades, upgrade issues and debugging those.

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

John Smith

Wednesday 17 September 2008 1:49:06 am

hi Andre,

Thankyou very much for kind help and response. This morning I checked the table "ezcontentobject_tree" after upgrading the software from 3.6.1 to 3.8.0, there are not even a single inconsistency.

As far as my knowledge is concerned, it is the very first line in the locations.tpl with the following path:

/design/admin/templates/locations.tpl

In 3.6.1 the first line says:

{let assigned_nodes=$node.object.current.node_assignments

Which return an array with 1 element.

Where as In 3.8.x

{let assigned_nodes=$node.object.assigned_nodes

Which return an array with 2 elements.

To check , I copied the location.tpl from 3.6.1 to 3.8.x and it is returning me one location instead of two...

Can you please also guide me regarding the ticketing system. How it works. I need to sort all this week, as we are going to upgrade next week to meet the deadline with your hosting provider. So it is very critical situation. It will be nightmare it something breaks after upgradation. I have already checked and tested the upgrade process and steps, it seems working expect this location duplication in the following:

1. Look and feel in the Design section getting two locations

2. Gobal settings in Setup section getting two locations:

John Smith

Friday 26 September 2008 12:59:00 am

I think I am the only one who is doing something wrong. Nobody else got that problem. To check, yesterday I downloaded fresh/clean 3.6.1 from ez.no then ran the upgrade from 3.6.1 to 3.8.0, but the bad news is I am still gettting two locations as mentioned below....

1. Look and feel in the Design section getting two locations
>> Design / <site title>(Main)
>> <site title> (unwanted)

2. Gobal settings in Setup section getting two locations:
>> Setup / Common INI settings (Main)
>> Common INI settings (unwanted)

Steps which I followed:

Changes to the ini files as mentioned in the documentation.

1. Backing up Client folder.
2. Deleting all folders/files in client folder.
3. Copying all the folders/files from folder - ezpublish 3.8.0
4. Copying design/example, var, settings/siteaccess, setting/override from the client backup folder.
5. Setting the owner and permissions on the client folder again.
6. Running the database update dbupdate-3.6.0-to-3.8.0.sql
7. Converting all tables to InnoDB.
8. Running update/common/scripts/updatemultilingual.php -s <siteaccess_admin>
9. Running update/common/scripts/updaterssimport.php -s <siteaccess_admin>
10. Running ./bin/shell/clearcache.sh --clear-all.

Hope I havenot missed anything.

eZ debug

Timing: Jan 18 2025 11:41:44
Script start
Timing: Jan 18 2025 11:41:44
Module start 'content'
Timing: Jan 18 2025 11:41:44
Module end 'content'
Timing: Jan 18 2025 11:41:44
Script end

Main resources:

Total runtime0.1914 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.0065 588.3750180.8203
Module start 'content' 0.00650.0068 769.195398.4219
Module end 'content' 0.01330.1780 867.6172527.1250
Script end 0.1913  1,394.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.9202200.0002
Check MTime0.00140.7357200.0001
Mysql Total
Database connection0.00100.542510.0010
Mysqli_queries0.140573.42301410.0010
Looping result0.00150.80911390.0000
Template Total0.177692.810.1776
Template load0.00110.600410.0011
Template processing0.176492.192310.1764
Override
Cache load0.00080.430110.0008
Sytem overhead
Fetch class attribute can translate value0.00070.389910.0007
XML
Image XML parsing0.00030.133810.0003
General
dbfile0.00301.5741200.0002
String conversion0.00000.003730.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