Forums / General / Strange behavior for favicon.ico retrieval

Strange behavior for favicon.ico retrieval

Author Message

Massimiliano Bariola

Tuesday 30 October 2007 3:53:11 am

Hi all,

I am using a design extension to provide a design for my site. I put my favicon.ico in the images/ directory of my design extension, along with all the other images for my design.

The problem is that, while all images are correctly resolved by the ezimage operator to the design extension's directory, the favicon is resolved to the standard design.

<link href={"stylesheets/basic.css"|ezdesign} rel="stylesheet" type="text/css" media="all" />

correctly resolves to

<link href="/extension/inca_ch_design/design/standard/stylesheets/basic.css" rel="stylesheet" type="text/css" media="all" />
<img src={'logoinca.gif'|ezimage} alt="Logo INCA CH IT"/>

correctly resolves to

<img src="/extension/inca_ch_design/design/standard/images/logoinca.gif" alt="Logo INCA CH IT"/>
<link rel="Shortcut icon" href={'favicon.ico'|ezimage} type="image/x-icon" />

strangely resolves to

<link rel="Shortcut icon" href="/design/standard/images/favicon.ico" type="image/x-icon" />

this are the relevant parts of my design.ini and site.ini files:

/settings/siteaccess/inca_ch_it/site.ini.append.php:

[DesignSettings]
SiteDesign=inca_ch_user
AdditionalSiteDesignList[]=base
StandardDesign=standard

/extension/inca_ch_design/settings/design.ini.append.php:

[ExtensionSettings]
DesignExtensions[]=inca_ch_design

/extension/inca_ch_design/settings/site.ini.append.php:

[RegionalSettings]
TranslationExtensions[]=inca_ch_design

can anyone help me in spotting the error?

cheers,

Massimiliano

Knut Urdalen

Tuesday 30 October 2007 4:16:17 am

Try:

<link rel="shortcut icon" href={'images/favicon.ico'|ezdesign} type="image/x-icon" />
<link rel="shortcut icon" href={'images/favicon.ico'|ezdesign} type="image/vnd.microsoft.icon" />
<link rel="icon" href={'images/favicon.ico'|ezdesign} type="image/vnd.microsoft.icon" />

Massimiliano Bariola

Tuesday 30 October 2007 4:28:19 am

Hi Knut,

Thank you, the workaround worked. Yet I am still curious as to what am I doing wrong and why do I need to do it with ezdesign instead of ezimage. Just to know if I need to open up a bug report or not.

Thanks again,

Massimiliano

Knut Urdalen

Tuesday 30 October 2007 5:19:57 am

I use ezdesign instead of ezimage most of the time because I have had some problems like this before. It seems like you have hit a bug.

You can have a look at the implementation of these two operators in kernel/common/ezurloperator.php

(case $this->DesignName) you'll find the implementation of ezdesign
(case $this->ImageName) you'll find the implementation of ezimage

Massimiliano Bariola

Tuesday 30 October 2007 6:23:17 am

Hi Knut,

Ok, I'll have a look at it.

thank you and kind regards,

Massimiliano

Xavier Dutoit

Tuesday 30 October 2007 7:10:13 am

+1 For Knut's suggestion to stick with ezdesign

As for the design, I tend to prefer having them as design rather than extension, as the override priorities works better when using "real" extension usually.

X+

http://www.sydesy.com

Massimiliano Bariola

Wednesday 31 October 2007 9:13:40 am

Hi Xavier,

I went the extension way to make the code structure more compliant to eZ's guidelines (at least those I remember since Lyon in january :-) ) It makes sense after all to use ezdesign since stylesheets are accessed the same way. Anyway I opened a bug, just to be sure that either the documentation will be updated or ezimage will be fixed.

Thanks to both,

Massimiliano

eZ debug

Timing: Jan 18 2025 16:13:48
Script start
Timing: Jan 18 2025 16:13:48
Module start 'content'
Timing: Jan 18 2025 16:13:49
Module end 'content'
Timing: Jan 18 2025 16:13:49
Script end

Main resources:

Total runtime1.4129 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.8438180.8203
Module start 'content' 0.00821.2492 768.6641643.7344
Module end 'content' 1.25740.1553 1,412.3984341.0625
Script end 1.4128  1,753.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3026210.0002
Check MTime0.00150.1076210.0001
Mysql Total
Database connection0.00130.092110.0013
Mysqli_queries1.315393.09692080.0063
Looping result0.00240.17322060.0000
Template Total1.380197.720.6900
Template load0.00230.166320.0012
Template processing1.377797.510520.6889
Template load and register function0.00070.048910.0007
states
state_id_array0.00070.050510.0007
state_identifier_array0.00110.078920.0006
Override
Cache load0.00200.1401590.0000
Sytem overhead
Fetch class attribute can translate value0.00120.084640.0003
Fetch class attribute name0.00080.0594100.0001
XML
Image XML parsing0.00190.134040.0005
class_abstraction
Instantiating content class attribute0.00000.0018140.0000
General
dbfile0.00470.3341400.0001
String conversion0.00000.000530.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs