Forums / Setup & design / <!-- START: including template etc appearing in code

<!-- START: including template etc appearing in code

Author Message

Tony Malone

Wednesday 24 January 2007 6:41:25 am

I have an ez publish installation on which we are running several sites. On one siteaccess the 'marker' text is appearing in the source code.
For example if I right click in a browser and choose 'view source' on the site in question I can see:

<!-- START: including template: design/standard/templates/page_head.tpl (design/standard/templates/page_head.tpl) -->
CODE
<!-- STOP: including template: design/standard/templates/page_head.tpl (design/standard/templates/page_head.tpl) -->

whereas on the other siteaccesses it isn't. As the start/stops are 'commented out' it doesn't cause any problems with the running of the site, but it's also appearing in the google sitemap, which is stopping google from accepting it.

Can anyone suggest why this code is appearing on the one siteaccess and not on the others?

Thanks!

Kristof Coomans

Wednesday 24 January 2007 6:57:06 am

Hi Tony

Take a look at http://ezpedia.org/wiki/en/ez/debug_templatesettings

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Tony Malone

Wednesday 24 January 2007 7:41:34 am

Hi Kristof!

Thanks for coming back to me so quickly.

I wondered if it was something to do with debug,

but my site.ini.append.php for that siteaccess has the following settings for debug:

[DebugSettings]
DebugOutput=disabled
DebugRedirection=disabled

[TemplateSettings]
ShowUsedTemplates=disabled
Debug=disabled
ShowXHTMLCode=disabled

And in the admin pages in the 'quick settings' box for that siteaccess, none of the debug boxes are checked.

Kristof Coomans

Wednesday 24 January 2007 10:08:14 am

Did you also check the override settings?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Tony Malone

Thursday 25 January 2007 2:41:18 am

What do you mean by the override settings?

debug is set to off in /settings/siteaccess/siteaccess_name/site.ini.append.php

I can't see anything in /settings/override/site.ini.append.php
or /settings/siteaccess/siteaccess_name/override.ini.append.php
that relates to debug.

Where/what do you mean?

Xavier Dutoit

Thursday 25 January 2007 4:49:55 am

Did you do a clear all caches ?

X+

http://www.sydesy.com

Tony Malone

Thursday 25 January 2007 6:18:00 am

Yep cleared the all the caches.

Tony Malone

Friday 26 January 2007 8:45:35 am

Does anyone have any further advice?

If it helps the siteaccess which doesn't display the debug code is www.nonihorses.co.uk and the one that does is www.nonihorses.org

debug settings in the site.ini.append.php files for the two are exactly the same!

/dev/null

Saturday 27 January 2007 5:50:28 am

From everything you have shared I hear the following...

1. The siteaccess settings in file 'site.ini.append or site.ini.append.php) for the siteaccess used by 'nonihorses.org'

Which mst contain this combination of characters (at the least) to prevent the display of the for mentioned output.

[TemplateSettings]
Debug=disabled

This is the setting which controls the output of hidden source xhtml commented include template debug output.

This is the setting which it sounds like the output you want to remove from that siteaccess alone.

I am guessing yet it sounds like you host both sites from difference siteaccess configurations using a single eZ publish installation. If this is true, one might rule out any settings in settings/override/site.ini* from causing the problem experienced in the siteaccess, 'nonihorses.org'.

Please! Be certain you clear all cache using the admin each time before testing, after you make a change, you might have a related form of cache enabled unknowingly preventing the display of all your changes the moment you make them. This can be a regular problem if not addressed either via configuration or cache clearing.

<i>/dev/null</i>

Teach eZ users to fish for themselves ...

eZpedia community documentation project: http://ezpedia.org

Xavier Dutoit

Saturday 27 January 2007 6:17:25 am

Or it can be defined in a site.ini.append in one of the extension or in the settings/override....

To be on the safe side, add in your settings/site.ini.append:

# If enabled will add code to display the template name in the browser
# If Debug is disabled then nothing happens
ShowXHTMLCode=disabled

http://www.sydesy.com

Tony Malone

Wednesday 31 January 2007 3:41:20 am

Sorted!

For some reason, clicking 'clear all caches' from the admin panel wasn't doing it!
(had done so repeatedly)

I brought the debug up, cleared all caches from there and that seems to have done the trick.

Thanks for your help guys!

eZ debug

Timing: Jan 18 2025 11:13:13
Script start
Timing: Jan 18 2025 11:13:13
Module start 'content'
Timing: Jan 18 2025 11:13:14
Module end 'content'
Timing: Jan 18 2025 11:13:14
Script end

Main resources:

Total runtime0.8183 sec
Peak memory usage4,096.0000 KB
Database Queries222

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 588.9766180.8125
Module start 'content' 0.00980.6940 769.7891714.7813
Module end 'content' 0.70380.1144 1,484.5703344.4297
Script end 0.8182  1,829.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5336210.0002
Check MTime0.00140.1705210.0001
Mysql Total
Database connection0.00100.121810.0010
Mysqli_queries0.726288.74552220.0033
Looping result0.00220.26932200.0000
Template Total0.778395.120.3892
Template load0.00240.291420.0012
Template processing0.775994.818020.3880
Template load and register function0.00010.016110.0001
states
state_id_array0.00150.177710.0015
state_identifier_array0.00080.098620.0004
Override
Cache load0.00200.2434630.0000
Sytem overhead
Fetch class attribute can translate value0.00110.133050.0002
Fetch class attribute name0.00080.1008140.0001
XML
Image XML parsing0.00210.252950.0004
class_abstraction
Instantiating content class attribute0.00000.0036160.0000
General
dbfile0.00330.3985390.0001
String conversion0.00000.001030.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs