Jump to content

[blockadvertising] Always showing a "question mark" as image


Recommended Posts

Hi folks,

this is the first time I post in this forum... So I want to thank all the people contributing in this awesome project!

Here is my prob:
I have been tricking the blockadvertising for 2 hours now but still no success:
I'm trying to insert a custom image with a custom link but I always get a question mark as image (see attachement). The image URL is/looks OK but no luck. I got the same problem on Windows and Linux servers and file permissions are OK too.
I am using Prestashop 1.3.2.3 with a custom Theme and friendly URLS.

Any help would be very appreciated.

Thanks!

34539_KG9YSqTGIR5IGo8AeA7T_t

Link to comment
Share on other sites

Did you add image via back office, the configuration screen of the module?
Id not, please change your image at back office configuration of the the module.

Back office - Modules - look for your "Block advertising" and click configure.

After that, try to the follwoing
1. clear your browser cache.
2. clear PrestaShop compile cache by deleting all file under
/tools/smarty/compile

Link to comment
Share on other sites

Did you add image via back office, the configuration screen of the module?
Id not, please change your image at back office configuration of the the module.

Back office - Modules - look for your "Block advertising" and click configure.

After that, try to the follwoing
1. clear your browser cache.
2. clear PrestaShop compile cache by deleting all file under
/tools/smarty/compile


Hi, tried that already. I changed the image from BO and directly through the file system but none of them worked. Also cleared the cache of smarty and of three different browers, still no success...
I'm really stucked with this apparentely easy configuration. I had more complex problems solved earlier than this little one :(
Link to comment
Share on other sites

Hi shokinro,

I checked the file permission on the Linux server and they are OK. I also set 777 but no it didn´t work. On my Windows server file permissions are also right and I can´t get it working.
¿Maybe there is a rewrite problem with the SEO friendly URLS? The error log of my servers don´t tell me very much neither...

Link to comment
Share on other sites

I just have seen something in my Apache access log:
In my testing environment the site is at localhost/puentelec and this is what my log says:

127.0.0.1 - - [04/Dec/2010:12:03:04 +0100] "GET /puentelec/localhost/puentelec/modules/blockadvertising/advertising_custom.jpg HTTP/1.1" 302 -

As you can see, the URL is wrong as it should be "localhost/puentelec/modules/blockadvertising/advertising_custom.jpg".

May I have to create a new rewrite rule for this module?

Thank you very much for your help shokinro. I do really appreciate it.

Link to comment
Share on other sites

you are very welcome.
Maybe re-generate .htaccess will fix your problem. Why not have a try?


I already tried that but it didn't work. I also tried to "hardcode" in the blockadvertising.php the image URL but "something" always puts the base_uri before the image URL. Wired!
Link to comment
Share on other sites

I tried a fresh installation of the latest version of Prestashop, 1.3.3, and the mod worked. I compared it with the previous version and saw that there were some slight differences. So I updated my current mod and everything works fine now!

Thanks a lot shokinro for your help.

Regards,
renesp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...