dtwfung Posted February 5, 2020 Share Posted February 5, 2020 (edited) Hi There, I need help on this. My PS 1.7 site got following problem. (Here's testing site can see the problem. https://cop9gun.com/prshop175) WITHOUT Login, every images can show properly, e.g. https://cop9gun.com/prshop175/en/eski/548-tactical-boot-black.html After login, the image cannot show. For same product, it requests https://cop9gun.com/prshop175/2577-large_default-r2DrNZuUz0/tactical-boot-black.jpg. BEFORE login, it requests https://cop9gun.com/prshop175/2577-large_default/tactical-boot-black.jpg Anyone help me why ?! (Login information to about testing site IS [email protected]+password) P.S. I search about this problem a while ago and try one of the advise (about disable/enable Friendly URL, delete .htaccess) BUT does not work. Any comments would be greatly appreciated ! Edited February 7, 2020 by dtwfung (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 2577-large_default-r2DrNZuUz0 2577-large_default Certainly some URL rewriting module is used. There is no link to login to administration. Send me a PM. I'll see if it can be repaired in a short time and for free. Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 3 hours ago, boyjaat209 said: Damm even I am having a similar kind of issue, I have searched all over the internet and even have posted on number of threads on different forum, no solution seems to work. I am really frustrated, can anyone of you here help me resolve this issue, I am very much tired now. If you don't give an exact mistake, a debug mode listing and a list of modules, no one can advise you. Link to comment Share on other sites More sharing options...
dtwfung Posted February 5, 2020 Author Share Posted February 5, 2020 I found out that the problem is caused by the native Watermark module. I have selected "Login customers can see the image with NO watermark." Once I disabled the option, I can see all images AFTER login. I will check further how to regenerate those file with hashed key. Anyone uses this watermark module facing the same issue ? Thx Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 16 minutes ago, dtwfung said: I found out that the problem is caused by the native Watermark module. I have selected "Login customers can see the image with NO watermark." Once I disabled the option, I can see all images AFTER login. I will check further how to regenerate those file with hashed key. Anyone uses this watermark module facing the same issue ? Thx Ok I understand. Error is adding directive to .htaccess file. Open prestashop / modules / watermark / watermark.php In line 298, remove Options + FollowSymLinks. File Save Go to SEO settings and disable friendly URLs. On FTP, delete the .htaccess file. Turn on SEO friendly URLs. It should work. Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 (edited) Only new products will automatically create watermarked images. Older images must be regenerated. You have to regenerate the images in shop admin BO -> Design/Image Settings => Regenerate thumbnails. Aftercheck if there is an FTP image in your folder: prestashop / img / p / 2/5/7/7/2577-large_default-r2DrNZuUz0.jpg !!! There is no image on ftp = means error Edited February 5, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
dtwfung Posted February 5, 2020 Author Share Posted February 5, 2020 (edited) 5 hours ago, Guest said: Ok I understand. Error is adding directive to .htaccess file. Open prestashop / modules / watermark / watermark.php In line 298, remove Options + FollowSymLinks. File Save Go to SEO settings and disable friendly URLs. On FTP, delete the .htaccess file. Turn on SEO friendly URLs. It should work. Many thx. Will try and see how it comes out. Edited February 5, 2020 by dtwfung (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 Remember to regenerate the thumbnails to complete the missing images. Please give feedback if this solved your problem. Link to comment Share on other sites More sharing options...
dtwfung Posted February 5, 2020 Author Share Posted February 5, 2020 1 hour ago, dtwfung said: Many thx. Will try and see how it comes out. Can I remove the line like this /** Options +FollowSymLinks **/ OR have to delete entire line ?! I tried to comment the line and regenerate thumbnail, but nothing improve ! Thx Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 (edited) In line 298, remove line Options + FollowSymLinks or #Options + FollowSymLinks Others must work. You're doing something wrong. I could have solved it for you in a few minutes and we're communicating like this the next day. Are there images on FTP? They certainly do not exist because you do not regenerate the images. Must select "Erase previous images" => Yes .... Clear cache, recompile template => force compilation .... You only read half of what I wrote to you and you only make a quarter. Edited February 5, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
dtwfung Posted February 5, 2020 Author Share Posted February 5, 2020 Cause my server is slow, "Erase previous images" => Yes .... will take long time or getting timeout. I must do each image type one by one. Will try again with your new suggestion. Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 There is no other option. It would have to be programmed script and run image regeneration via Cron task. Another option is to contact webhosting and increase max_executuin_time. Link to comment Share on other sites More sharing options...
dtwfung Posted February 5, 2020 Author Share Posted February 5, 2020 Yes, understood. So I have to regenerate it batch by batch ! Even I comment the line "#Options + FollowSymLinks" Login customer will refer to 2577-large_default-r2DrNZuUz0.jpg as before ?! Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 Registered Customer: 2577-large_default-r2DrNZuUz0.jpg Unregistered customer: 2577-large_default.jpg 2577-watermark.jpg is watermark = original image + watermark 2577.jpg - not watermark = original image Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 Create a new product, add pictures and see that everything will be fine. Link to comment Share on other sites More sharing options...
dtwfung Posted February 5, 2020 Author Share Posted February 5, 2020 OK. Will try tomorrow. Time to sleep..... Many thanks for your great assistance ! Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2020 Share Posted February 5, 2020 https://addons.prestashop.com/en/fast-mass-updates/19228-regenerate-thumbnails-images-for-large-catalogues.html Link to comment Share on other sites More sharing options...
dtwfung Posted February 6, 2020 Author Share Posted February 6, 2020 9 hours ago, Guest said: Registered Customer: 2577-large_default-r2DrNZuUz0.jpg Unregistered customer: 2577-large_default.jpg 2577-watermark.jpg is watermark = original image + watermark 2577.jpg - not watermark = original image I regenerate it but no file will hash key created. Only normal one created, e.g. e medium_default, home_default, large_default... See screenshot below for 2577. May be the Watermark module is fauty .... Link to comment Share on other sites More sharing options...
Guest Posted February 6, 2020 Share Posted February 6, 2020 When you turn on debug mode, will the watermark or image regeneration module display any problem? Have you created a new test product with images? Have you cleared the administration and browser cache? There are still a lot of questions. Is there any image module installed? Link to comment Share on other sites More sharing options...
Guest Posted February 6, 2020 Share Posted February 6, 2020 I will say that you solve it on multiple sites and no result. Prestashop is a demanding system and if you have low-webhosting, you won't be able to work. To run scripts you need to have at least max_input_time = 360, unlimited inodes, max_input_vars = 30000 ..... Change webhosting to make everything work. From my side I take it as solved and I will no longer participate in this thread. You do not want direct support because of secret information in the eshop, you do not have enough knowledge of Prestashop and inappropriate web hosting. I do not believe that there will be someone to solve your problem for free. I have given you a recommendation for a module that can regenerate images without dropping hosting. This will solve your problem. No one will wait a few hours for your response. Link to comment Share on other sites More sharing options...
dtwfung Posted February 6, 2020 Author Share Posted February 6, 2020 3 hours ago, Guest said: When you turn on debug mode, will the watermark or image regeneration module display any problem? Have you created a new test product with images? Have you cleared the administration and browser cache? There are still a lot of questions. Is there any image module installed? Many thx for your advise. I have regenerated all images this morning. But I will check again with debug mode on later tonight. Link to comment Share on other sites More sharing options...
dtwfung Posted February 6, 2020 Author Share Posted February 6, 2020 2 hours ago, Guest said: I will say that you solve it on multiple sites and no result. Prestashop is a demanding system and if you have low-webhosting, you won't be able to work. To run scripts you need to have at least max_input_time = 360, unlimited inodes, max_input_vars = 30000 ..... Change webhosting to make everything work. From my side I take it as solved and I will no longer participate in this thread. You do not want direct support because of secret information in the eshop, you do not have enough knowledge of Prestashop and inappropriate web hosting. I do not believe that there will be someone to solve your problem for free. I have given you a recommendation for a module that can regenerate images without dropping hosting. This will solve your problem. No one will wait a few hours for your response. My hosting is good enough for our daily transaction. I don't expect solving problem for free. That's why Forum can have source in getting hint if meeting good experts or users facing similar issue. Anyway, I will check further. Thx for your great advise. Link to comment Share on other sites More sharing options...
dtwfung Posted February 6, 2020 Author Share Posted February 6, 2020 I tried again with DEBUG mode on. No error at all. Anyway, I will turn off "Logged in customers can see images without watermark" option, thanks for all given input / advise ! Link to comment Share on other sites More sharing options...
dtwfung Posted February 7, 2020 Author Share Posted February 7, 2020 I just tried to test this case on another fresh installation (PS 1.7.6.1, PHP 7.1). This installation are on the same platform as above installations, using Cpanel. https://cop9gun.com/prshopupd/home-accessories/20-customizable-mug.html (Login account setting are same.) Before Login & after login, ALL images show properly. Difference are I REGENERATE ALL images in one goal (Much few products than other two installation, Only demo products in this installation.) But, In other TWO installations, 3000+ products and regenerate will cause timeout. I have to regenerate images by image types. But the old files with hashed key cannot be overwritten. I have to delete ALL files with hashed key and regenerate ALL images by image type ONE by ONE. Thanks for ALL have given me input and assistance, especially Guest ! Link to comment Share on other sites More sharing options...
goldies Posted March 4, 2020 Share Posted March 4, 2020 On 2/5/2020 at 11:08 AM, dtwfung said: I found out that the problem is caused by the native Watermark module. I have selected "Login customers can see the image with NO watermark." Once I disabled the option, I can see all images AFTER login. I will check further how to regenerate those file with hashed key. Anyone uses this watermark module facing the same issue ? Thx Thanks i had a same problem and your solution worked for me: "I found out that the problem is caused by the native Watermark module. I have selected "Login customers can see the image with NO watermark." Once I disabled the option, I can see all images AFTER login." Link to comment Share on other sites More sharing options...
Guest Posted March 5, 2020 Share Posted March 5, 2020 It works even when the switch Login customers is Yes. All you have to do is regenerate all the images. If you have a weak webhosting and a lot of pictures, then you will not recover. 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