renesp Posted December 4, 2010 Share Posted December 4, 2010 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! Link to comment Share on other sites More sharing options...
shokinro Posted December 4, 2010 Share Posted December 4, 2010 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 follwoing1. clear your browser cache.2. clear PrestaShop compile cache by deleting all file under /tools/smarty/compile Link to comment Share on other sites More sharing options...
renesp Posted December 4, 2010 Author Share Posted December 4, 2010 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 follwoing1. 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 More sharing options...
shokinro Posted December 4, 2010 Share Posted December 4, 2010 next, please check your image file permission.it must be 644. sometime, the file permission is not set correctly will cause this issue. Link to comment Share on other sites More sharing options...
renesp Posted December 4, 2010 Author Share Posted December 4, 2010 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 More sharing options...
renesp Posted December 4, 2010 Author Share Posted December 4, 2010 I just tried disabling friendly URLS, removed my .htacces, claered the smarty cache/compile and my browser cache and still not working. WTF?!?! Link to comment Share on other sites More sharing options...
shokinro Posted December 4, 2010 Share Posted December 4, 2010 I really I have no idea.Could you send me your site URL? if you don't show it here, you send me PM.I will take a look for you. Link to comment Share on other sites More sharing options...
renesp Posted December 4, 2010 Author Share Posted December 4, 2010 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 More sharing options...
shokinro Posted December 4, 2010 Share Posted December 4, 2010 you are very welcome.Maybe re-generate .htaccess will fix your problem. Why not have a try? Link to comment Share on other sites More sharing options...
renesp Posted December 4, 2010 Author Share Posted December 4, 2010 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 More sharing options...
shokinro Posted December 4, 2010 Share Posted December 4, 2010 Did you changed location (folder, server) of your store after installation?If so, you need to change the __PS_BASE_URI__ in file /config/setting.inc.phpPlease check that file if it is defined correctly. Link to comment Share on other sites More sharing options...
renesp Posted December 4, 2010 Author Share Posted December 4, 2010 Hi,the PS_BASE_URI is set correctly on production and testing server. I think I'll get crazy with this problem...Next I will try doing a fresh installation of Prestashop to see what happens... Link to comment Share on other sites More sharing options...
renesp Posted December 5, 2010 Author Share Posted December 5, 2010 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 More sharing options...
shokinro Posted December 5, 2010 Share Posted December 5, 2010 I am glad you fixed the problem. Hope everything will go smoothly this time. Good luck. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now