Favorite Icon problems in Firefox 4 + Windows 7

4 views
Skip to first unread message

Alexander Obuhovich

unread,
May 26, 2011, 3:45:19 AM5/26/11
to In-Portal Bugs
I'm getting 2 "Image corrupt or truncated: <unknown>" errors on every editing page (not in grids) while using Firefox 4 on Windows 7.

When I remove favicon.ico file reference, then error disappears.


I'm not the only one, who is getting it: http://code.google.com/p/fbug/issues/detail?id=4291, but I have no clue what causes it. Probably a bug in Firefox 4, since FavIcon shows pretty fine.

Phil -- wbtc.fr --

unread,
May 26, 2011, 4:15:07 AM5/26/11
to in-port...@googlegroups.com
do you have a favicon declaration in html_head.tpl ?

we can specify here the image type, which could be ico, but also png, jpg... then by default if the system is waiting for a .ico type, but if your file, named .ico, is in fact a png, you'll have this error.

For example, the favicon.ico included in v512 (in root folder, weird place while we have all things in themes) is a GIF file.

2011/5/26 Alexander Obuhovich <aik....@gmail.com>
--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
May 26, 2011, 4:27:32 AM5/26/11
to in-port...@googlegroups.com
For example, the favicon.ico included in v512 is a GIF file.

GIF file, really?

How you can determine what file actually is and how to convert it to proper format?



weird place while we have all things in themes

Although you can specify alternative favicon.ico file location via

<link rel="icon" href="<inp2:m_BaseURL/>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<inp2:m_BaseURL/>favicon.ico" type="image/x-icon" />

tags in html, but it's strongly recommended to keep favicon.ico file in DocumentRoot, so http://your-website.com/favicon.ico will return correct icon. This is because some search engines ignore that HTML tags and still look in root website folder raising tons of 404 for favicon.ico file.

Alexander Obuhovich

unread,
May 26, 2011, 4:30:50 AM5/26/11
to in-port...@googlegroups.com
I've used http://favicon.htmlkit.com/favicon/ online GIF/JPG to ICO converter and it helped.

Phil -- wbtc.fr --

unread,
May 26, 2011, 4:53:43 AM5/26/11
to in-port...@googlegroups.com
then the file was a gif, and now it's a real .ico it works, right?

here is the complete story about .ico

Alexander Obuhovich

unread,
May 26, 2011, 5:04:47 AM5/26/11
to in-port...@googlegroups.com
Nice. I guess it's 100% but after all.

Alexander Obuhovich

unread,
May 26, 2011, 5:08:40 AM5/26/11
to in-port...@googlegroups.com
Here a website from my colleague Stas: http://www.favicon.cc/ that converts GIF to ICO and also preserves transparency.

I've also attached fixed "favicon.ico" file.
favicon.ico

Phil -- wbtc.fr --

unread,
May 26, 2011, 5:40:02 AM5/26/11
to in-port...@googlegroups.com
thanks to share this link, I went on this website, and it's the best one, as we can create directly the ico.

Note that ico can actually be bigger than 32x32, for browser who support them, the file can handle different formats of the same image.

2011/5/26 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
Aug 8, 2011, 12:13:30 PM8/8/11
to in-port...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages