thaiphan / magento2-s3

Use Amazon S3 as the file storage solution for your Magento 2 application
MIT License
142 stars 95 forks source link

Install went fine but image not loading #47

Closed smoi closed 6 years ago

smoi commented 6 years ago

Hello,

I did the installation process (https://github.com/thaiphan/magento2-s3/wiki/Installation) and it went smooth, everything was uploaded on S3 and even if i upload a new image I see it on s3 but the images are not working from s3 on the frontend, it tries to load them from

get.php/catalog/product/cache/f073062f50e48eb0f0998593e568d857/w/h/wh09-purple_main.jpg

I've also tried to update Base URL for User Media Files poiting to s3 but it still loads from get.php

I tried cleaning all caches and everything.

What can I check more?

Thanks

thaiphan commented 6 years ago

Hi @smoi,

Did you remember to enable S3 integration using...

php bin/magento s3:storage:enable

Also, have you tried turning on media URL rewrites?

Regards,

Thai

smoi commented 6 years ago

I've tried both enabling from the admin and from the bin/magento but still no luck it always loads from get.php.

I’m using the default nginx conf from the magento dir

I've also tried to set the media base url with s3 url but it still use the get.php

What's the expected behavior?

smoi commented 6 years ago

i've enabled url rewrites from the admin and now it's working as expected, maybe you should add it to the installation guide