smartdatasoft / smartblog

SmartBlog is one of the most powerful PrestaShop blog module .Prestashop 1.6 & 1.7 Smart Blog Module
https://classydevs.com
Academic Free License v3.0
93 stars 82 forks source link

No image in frontend #74

Closed PeterStudioWeb closed 3 years ago

PeterStudioWeb commented 6 years ago

Hello! Install last version from git (today 2018-01-22) and no image in post in frontend. In admin images its okey. PS 1.7.2.4 (clean install). Check a path of the image in frontend. Thanks.

smartdatasoft commented 6 years ago

Will you please send your issue in our support with your site url , we will investigate that https://smartdatasoft.zendesk.com

fritaasd commented 6 years ago

Same here

smartdatasoft commented 6 years ago

Please send your site access in the above support system our technical team will investigate the issue

fritaasd commented 6 years ago

detailingstore.pl/blog

2018-03-15 7:57 GMT+01:00 Muhammad Arifur Rahman notifications@github.com:

Please send your site access in the above support system our technical team will investigate the issue

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/smartdatasoft/smartblog/issues/74#issuecomment-373279877, or mute the thread https://github.com/notifications/unsubscribe-auth/Ajp6u92sJRkABT5aAJbE6z98l1jqW5gvks5tehDCgaJpZM4Rmke5 .

smartdatasoft commented 6 years ago

hello, did you upload image in your post.

fritaasd commented 6 years ago

Yes two images. One i article

W dniu wt., 20.03.2018 o 07:03 Muhammad Arifur Rahman < notifications@github.com> napisał(a):

hello, did you upload image in your post.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/smartdatasoft/smartblog/issues/74#issuecomment-374485999, or mute the thread https://github.com/notifications/unsubscribe-auth/Ajp6u0DYho0s5WbBuDB1gEFTKIsy5KuAks5tgJutgaJpZM4Rmke5 .

PeterStudioWeb commented 6 years ago

Sorry, very busy, I will write on following weeks

fritaasd commented 6 years ago

You dont know what is causing bug?

2018-03-20 21:53 GMT+01:00 PeterStudioWeb notifications@github.com:

Sorry, very busy, I will write on following weeks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/smartdatasoft/smartblog/issues/74#issuecomment-374752858, or mute the thread https://github.com/notifications/unsubscribe-auth/Ajp6uzMjRiW6QZi89QbMzGcik4D0TTD5ks5tgWxigaJpZM4Rmke5 .

smartdatasoft commented 6 years ago

We suggest to disable the seo mode and then enabled that, it will solve your issue.

bhavikvaghani commented 6 years ago

My site runs on nginx server. Everything works fine only blog images are not displaying if rewrite mode is enable.

Any solution?

duGuillaume commented 6 years ago

My site runs on nginx server. Everything works fine only blog images are not displaying if rewrite mode is enable. Any solution?

put this into your conf file (change '/blog/' by your config)

rewrite ^/blog/([0-9]+)(-[._a-zA-Z0-9-])(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2$3.jpg last; rewrite ^/blog/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2.jpg last;

Here my conf

location / {

Redirect pretty urls to index.php

            try_files $uri $uri/ /index.php?$args;

            rewrite ^/blog/([0-9]+)(-[.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2$3.jpg last;
            rewrite ^/blog/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2.jpg last;

            # Images
            rewrite ^/([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$1$2$3.jpg last;
            rewrite ^/([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$1$2$3$4.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg last;
            rewrite ^/c/([0-9]+)(-[.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+.jpg$ /img/c/$1$2$3.jpg last;
            rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /img/c/$1$2.jpg last;

            # AlphaImageLoader for IE and fancybox
            rewrite ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 last;

            # Web service API
            rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last;

            # Installation sandbox
            rewrite ^(/install(?:-dev)?/sandbox)/(.*) /$1/test.php last;
    }
psyray commented 5 years ago

@duGuillaume For those who search for NginX rules, beware to take the ones in the code part and not the first ones which are bad. So the good ones is (with escaped forward slash)

rewrite ^\/blog\/([0-9]+)(-[.*_a-zA-Z0-9-]*)(-[0-9]+)?\/.+.jpg$ /modules/smartblog/images/$1$2$3.jpg last;
rewrite ^\/blog\/([a-zA-Z_-]+)(-[0-9]+)?\/.+.jpg$ /modules/smartblog/images/$1$2.jpg last;

regexr.com/4d37m

nabot58 commented 5 years ago

My site runs on nginx server. Everything works fine only blog images are not displaying if rewrite mode is enable. Any solution?

put this into your conf file (change '/blog/' by your config)

rewrite ^/blog/([0-9]+)(-[._a-zA-Z0-9-])(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2$3.jpg last; rewrite ^/blog/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2.jpg last;

Here my conf

location / {

Redirect pretty urls to index.php

try_files $uri $uri/ /index.php?$args;

            rewrite ^/blog/([0-9]+)(-[.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2$3.jpg last;
            rewrite ^/blog/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /modules/smartblog/images/$1$2.jpg last;

            # Images
            rewrite ^/([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$1$2$3.jpg last;
            rewrite ^/([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$1$2$3$4.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg last;
            rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg last;
            rewrite ^/c/([0-9]+)(-[.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+.jpg$ /img/c/$1$2$3.jpg last;
            rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+.jpg$ /img/c/$1$2.jpg last;

            # AlphaImageLoader for IE and fancybox
            rewrite ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 last;

            # Web service API
            rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last;

            # Installation sandbox
            rewrite ^(/install(?:-dev)?/sandbox)/(.*) /$1/test.php last;
    }

Where i found the conf file in my prestashop? Thank you for answer

jonnydhaka commented 3 years ago

if face any issue then please contact with our support at https://support.classydevs.com/