Jump to content

Logo not uploading on 1.5.2


Recommended Posts

Hello,

 

I am having trouble uploading a new logo onto my prestashop back office site, along with the store icon. When I upload it it shows the new logo in the back office but when I look at it in the front office it does not show. I even deleted the old logo from my server and checked to see if the new one was there and it was. Also, after I upload the pictures it says settings saved successfully but if I change the page and go back to it no photo is being shown.

 

Does anyone know how to fix this? Thanks for your help.

Link to comment
Share on other sites

Hello,

 

Edit: See this for a better solution that worked for me:

http://www.prestasho...ost__p__1024773

 

I had the same problem recently, and it was because the name of the uploaded logo had changed from "logo.jpg" to "logo-1.jpg", but the old name was still being used somehow.

 

In the file themes\<theme>\header.tpl file, look for the following.

<img class="logo" src="{$logo_url}"

 

I worked around the problem using this code instead.

<img class="logo" src="{$img_ps_dir}logo-1.jpg"

 

I don't know if there are potential problems but there haven't been any so far. :)

Edited by SteffenL (see edit history)
  • Like 1
Link to comment
Share on other sites

Thank you very much guys, after changing the code and clearing my browser cache it worked.

 

Just one more thing, my store icon changed from the Prestashop logo but it didn't change to the one I submitted. What folder can I go to to edit the coding and make the correct changes?

 

Thanks a bunch.

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

  • 2 weeks later...

I figured something out yesterday and wanted to share it with you.

 

In my case, {$logo_url} was always logo.jpg (apparently wrong). I think the number in logo-1.jpg is the shop ID (because of the new multi-store feature).

 

In the database and in the table called "ps_configuration", there are some interesting things.

This is what I found regarding logos (almost the same as this):

 

PS_LOGO          = logo.jpg
PS_LOGO_MAIL     = logo_mail.jpg
PS_LOGO_INVOICE  = logo_invoice.jpg
PS_FAVICON       = favicon.ico
PS_STORES_ICON   = logo_stores.gif

 

I had not found this anywhere in the back office. But wait, there's more...

 

PS_LOGO          = logo-1.jpg
PS_LOGO_MAIL     = logo_mail-1.jpg
PS_LOGO_INVOICE  = logo_invoice-1.jpg
PS_FAVICON       = favicon-1.ico
PS_STORES_ICON   = logo_stores-1.gif

 

There were duplicate fields with different values! This must have happened during my upgrade from PS 1.4 to 1.5, probably due to a bug.

 

This is what I did:

  • Deleted the duplicate fields.
  • Kept only logo.jpg, logo_mail.jpg, etc, because some code still has these names hardcoded. You may have to keep the other ones though, especially if you use the multi-store feature.

This solved all of my problems with the logos not appearing correctly. :)

Edited by SteffenL (see edit history)
  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...