Jump to content

Impossible to define favicon


Recommended Posts

In my PS 1.5.2 I find it impossible to define an icon. No matter what I upload - I keep seeing the broken image

 

I cannot replicate this with 1.5.2. Try an .ico file if not already, make sure the ico file is a correctly format icon file. You can use this website to make a correct icon file from another format image. After saving in the back office check that the favicon.ico is saved in /img/ directory.

 

Marty Shue

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

I havent faced any issue with the favicon even on front end or backend.

Most of the times, this might have caused due to improper .ico file...

You need to upload a correct favicon...

 

Else try to figure out what file get loaded by enabling the Firebug in Firefox.

Link to comment
Share on other sites

You have the same problem everyone that has a problem with this has:

Your favicon icon is a .jpg image file and not a .ico file.

You have this:

 

<link href="/img/favicon.jpg?1353268270" type="image/vnd.microsoft.icon" rel="icon">

<link href="/img/favicon.jpg?1353268270" type="image/x-icon" rel="shortcut icon">

 

and it should be this:

 

<link href="/img/favicon.ico?1353268270" type="image/vnd.microsoft.icon" rel="icon">

<link href="/img/favicon.ico?1353268270" type="image/x-icon" rel="shortcut icon">

 

You need to reformat your favicon image so it has a .ico suffix and not a .jpg.

 

See? If I use the Chrome development tool to change it from .jpg to .ico, your favicon works!

Edited by bside2234 (see edit history)
Link to comment
Share on other sites

Hello again,

 

I would mark this issue solved however firstly I am not the original thread opener! secondly the original post argues about a broken icon in the admin panel which is not the same issue.

 

For example I attached the ICO file that I am uploading in the ADMIN ... Guess what? It shows a broken image as in the first post. Not only that, but the Store icon in the admin has automatically restored to Prestashop's icon.

 

It is definately not resolved. Please check out the images attached and thanks for answering :)

FavIcon.ico

post-364800-0-04986400-1353656256_thumb.jpg

Edited by xenobius (see edit history)
Link to comment
Share on other sites

Hi Bside2234

 

My site is www.firstplacetogo.co.uk

 

the .ico file is the same as the one I use on my home site www.bonitajersey.co.uk

 

what does your report indicate on that please.

 

G

 

Same with yours.

You have:

 

<link href="/img/favicon.jpg?1353569061" type="image/vnd.microsoft.icon" rel="icon">

 

<link href="/img/favicon.jpg?1353569061" type="image/x-icon" rel="shortcut icon">

 

Changing it to this works:

 

 

<link href="/img/favicon.ico?1353569061" type="image/vnd.microsoft.icon" rel="icon">

 

<link href="/img/favicon.ico?1353569061" type="image/x-icon" rel="shortcut icon">

 

You need to format your favicon into a .ico file instead of a .jpg file.

 

Attached is a before and after.

Link to comment
Share on other sites

Hi bside2234

 

that is definitely an .ico file as attached. I can only assume that prestashop is changing it hence it is not showing in the back office as posted.

 

did you check my home site as it is the same file I have just copied this from the img folder

 

G

Link to comment
Share on other sites

Hello again,

 

I would mark this issue solved however firstly I am not the original thread opener! secondly the original post argues about a broken icon in the admin panel which is not the same issue.

 

For example I attached the ICO file that I am uploading in the ADMIN ... Guess what? It shows a broken image as in the first post. Not only that, but the Store icon in the admin has automatically restored to Prestashop's icon.

 

It is definately not resolved. Please check out the images attached and thanks for answering :)

 

When you single click your favicon image on your computer does it say it's and ICON file (like in the image I attached) or a JPEG file?

If I change my favicon image type to .jpg from .ico and upload it in my BO I get the same results everyone has. Broken image link and the favicon doesn't work. When I use the favicon.ico image file and upload it into the back office all works fine.

 

You have to change the actual favicon image from a .jpg file to a .ico file. Just changing the code doesn't fix everything. If you upload a proper .ico image, you shouldn't have to change any code.

 

Edit: Just downloaded you icon. It sure seems to be an icon image. Not sure why you would have a problem in the back office though. I'll look into that more and try to replicate it with your icon.

Edited by bside2234 (see edit history)
Link to comment
Share on other sites

bside2234

 

Have you an upgrade or clean install?

I ask this as things look to be working on your system that are not on other peoples shops.

I have an upgrade from 1.4.9 to 1.5.2 using a manual upgrade.

 

I think it is worth trying to narrow this down to who has the problem.

 

G

Link to comment
Share on other sites

bside2234 you can use the favicon.ico attached by myself as this is the real file.

Thanks

 

Just switched to my test store and everything worked fine. Attached are pics of the FO, BO, and the code I get when I checked it.

 

I do want to mention that I do have 2 favicon images that were generated in my /store/img folder. One is favicon and the other is favicon-1 so you might want to check to see if you have both. Maybe the favicon-1 is responsible for the BO image.

 

Or maybe not. Here is the path I have for the BO favicon image:

<img title="Favicon" alt="Favicon" src="/store/img/favicon.ico?date=1353659123">

Edited by bside2234 (see edit history)
Link to comment
Share on other sites

Ok so as expected its a problem with the store not with the icon :(

Do you think maybe you know where I can look at to solve this issue?

 

It does seem in your case that you are uploading a .ico file and it's writing your code as a .jpg file. I have no idea what would cause this. The only solution I can see is to go and change the three lines of code manually to fix all your icon issues.

Link to comment
Share on other sites

Just switched to my test store and everything worked fine. Attached are pics of the FO, BO, and the code I get when I checked it.

 

I do want to mention that I do have 2 favicon images that were generated in my /store/img folder. One is favicon and the other is favicon-1 so you might want to check to see if you have both. Maybe the favicon-1 is responsible for the BO image.

 

Or maybe not. Here is the path I have for the BO favicon image:

<img title="Favicon" alt="Favicon" src="/store/img/favicon.ico?date=1353659123">

 

 

I noted the two files and both are on my server. thanks

 

G

Link to comment
Share on other sites

I've got another idea, can it be a setting from the database? I noticed that some of the problems I had were all related to database because 99% siteground only updated the files...

 

Yes, I was just looking at that but first go to your store/config/xml/1.5.2.xml file and search for two lines of code that contain the word favicon. Do they say favicon.ico or favicon.jpg?

 

Edit:

Also in your store/admin/autoupgrade/latest/prestashop/install/data/xml/configuration.xml file, there should be something like this:

<configuration id="PS_FAVICON" name="PS_FAVICON">

<value>favicon.ico</value>

</configuration>

 

Does this say favicon.ico or favicon.jpg?

 

Check out what I found in a 1.5.0 database file for the autoupgrade:

(NULL, NULL, 'PS_FAVICON', 'favicon.jpg', NOW(), NOW()),

 

Hmmmmmmmmmmmmmmmm?

Edited by bside2234 (see edit history)
Link to comment
Share on other sites

Hi Bside2234

 

my file is 1.5.0.17

 

have a download of 1.5.2 so will change that over to the newer file

 

I can't say if that will fix your issue or not. I have never had this issue (knock on wood) from 1.4.9 to 1.5.2. I can't seem to replicate the issue Xenobius is having.

Link to comment
Share on other sites

I think I solved it... ps_configuration had 2 entries one with favicon.jpg and one with favicon.ico and not BOTH are .ico...

In admin its working!

 

I was thinking how many more mis matching settings I might have from upgrading! Is there a script / tool to check? I can't imagine what a mess I might have!

  • Like 2
Link to comment
Share on other sites

This is what I have

I have all those other files in there.

I have a program that compares files. If you want to PM me your 1.4.7.3.xml file, I'll compare it to my 1.5.2.xml and see if there are any differences. I'm not even really sure that this could be an issue though. Who knows? It may be.

Link to comment
Share on other sites

I think I solved it... ps_configuration had 2 entries one with favicon.jpg and one with favicon.ico and not BOTH are .ico...

In admin its working!

 

I was thinking how many more mis matching settings I might have from upgrading! Is there a script / tool to check? I can't imagine what a mess I might have!

 

Where is this file located? I want to check mine.

 

Oh wait! Was it this from earlier?

"Yes, I was just looking at that but first go to your store/config/xml/1.5.2.xml file and search for two lines of code that contain the word favicon. Do they say favicon.ico or favicon.jpg?"

 

but you looked in the 1.4.7.3.xml?

 

We probably need to write some clear instructions about what to do for everyone having this problem.

Edited by bside2234 (see edit history)
Link to comment
Share on other sites

Ok so

 

1. I checked config/xml and I found 1.4.7.xml and INSIDE nothing found when I searched for 'favicon'

2. I checked ps_configuration and found 2 entries

 

select * from ps_configuration where lower(name) like '%favicon%';

 

and I found that I had 1 .jpg and another .ico. I changed the jpg to ico and it worked but I am really unhappy with the mess I have now! It shows that an upgrade really messes things up!

Link to comment
Share on other sites

Well you know your database contains a lot of tables. One of these tables is called ps_configuration and contains what it name implies.

 

You can either go in this table and scroll each entry one by one (good luck) or do a simple query.

The query I pasted will look for configuration settings which contain the word 'favicon'

 

So if you want to do the same to check yours, you need to access your databas but this depends on where your database is hosted. Either or, one of the tools you can use to access it is PHPMYADMIN which is normally available if you are hosting the database online from your hosting CPANEL.

 

Good Luck

 

PS: SQL is a very simple language especially for these types of queries. Just check out this tutorial

http://www.w3schools.com/sql/default.asp

Edited by xenobius (see edit history)
Link to comment
Share on other sites

Hmmph maybe you didn't know but this will clear things up... even if it has nothing to do with this thread.

(very briefly)

 

A database stores your data in tables and these tables are (obviously) made up of columns where each column has its own meaning. Unlike a spreadsheet for example where you have enter different types of data in the same column, a database only allows you to enter the same type ex: names or surnames, or whatever as long as they have the same meaning.

 

Now there exists a lot of databases such as MySql, Oracle, SQL Server, Informix, DB2, etc.. etc.. etc.. AND lucky for us there is just ONE LANGUAGE to rule them all (just like the ring in lotr) :)

 

This language is called SQL (so don't confuse it with MySql or SQL Server)

 

Cheers

 

PS: Look at this http://www.w3schools.com/sql/sql_tryit.asp it is part of the tutorial and it is a gold mine for you to learn almost 80% of what you might ever need to do in Prestashop because really you're not developing but rather "reading" information and the SELECT command is all about "getting" you the information safely WITHOUT EVER POSSIBLY deleting anything. So it is safe.

 

On the other hand, commands like UPDATE, DELETE and DROP are a suicide unless you are ready to start over :)

Edited by xenobius (see edit history)
Link to comment
Share on other sites

Hi xenobius

 

Many thanks for that.

Luckily I host my own servers so access is easy I just remote in (its a whole room away), my spare rack has a duplicate set so I can play.

SQL is something I try not to play with as I am not confident with it, maybe it is time for me to be brave :-)

 

I use MS SQL for other databases and Mysql for Prestashop but understand that it they are variants of sequel databases.

 

This is a job for the weekend so that I can concentrate....

 

Again thanks for help and advice.

 

G

 

I might even have a go at stock and warehouse as I have random figures in there

Edited by JerseyG (see edit history)
Link to comment
Share on other sites

I use MS SQL for other databases and Mysql for Prestashop but understand that it they are variants of sequel databases.

 

Hmm not really no Microsoft called their database Sequel Server but than changed its name later on to SQL Server and nowadays SQL Server is not Sequel Server. Anyways the point is that they are absolutely not variants but rather implement the same protocol (so to speak) :)

 

Good Luck

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 2 years later...

Hi everybody

when you face this kind of problem : you have edited in backend your favicon with a real ico file (favicon.ico and not favicon.jpg)

and your frontend still shows the "default interrogation" icon

or you have your favicon in backend but not in frontend

just verify table configuration in your database

search for "favicon" you will certainly find two PS-FAVICON lines : one called favicon.ico and the other called favicon.jpg

in this case, just delete the wrong line (favicon.jpg)

if you're not confortable with deleting a line in the database, edit the line and rename favicon.jpg as favicon.ico

(you'll have 2 PS_FAVICON lines in your ps_configuration table but it works)

Link to comment
Share on other sites

×
×
  • Create New...