- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
category thumbnail - wrong path
Hello,
I'm using M 2.3.4 and have an issue with saving category thumbnails... I can add them normally:
https://i.imgur.com/FaSd310.jpg
...But after saving, the entire path is added the the URL:
https://i.imgur.com/QX1u0Yy.jpg
And in effect the URL saved is like:
www.mydomain.com/dev33/pub/media/catalog/category//dev33/pub/media/catalog/tmp/category/cur-p_2.jpg
Help please!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
Hello @igrek
Navigate to Store > Configuration > General > Web > Secure/Unsecure > Media URL.
Make sure that the media URL is same as in store wise.
Hope it helps.
Thanks
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
@igrek, did Sanjay's solution work for you? I'm seeing the same issue on my store, and my media URL configuration is set up properly as Sanjay suggested.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
Have you found the solution?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
Same issue here! Was working well with 2.3.3 but now with 2.3.4 it takes long time to save and finally the thumbnail (or icon) is no there, and the path is wrong.
(but well uploaded)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
Have you found a solution for this problem? i have the same
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
You can check one solution here: https://magento.stackexchange.com/questions/309329/magento-2-category-image-url-showing-two-paths
Or on this Github: https://github.com/magento/magento2/issues/11995 / https://github.com/magento/magento2/pull/31646/commits/eb0d5ae133a9a36d7bfff95c04431279a61fe8aa
Let's me know if this solution help you.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
I will study this issue in more detail
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: category thumbnail - wrong path
Same issue happened with me, in my case issue is base url. so in code base url get with /index.php, and also catalog/category path provided in code. So i remove catalog/category in code and try to get base url without /index.php, so you must need to try something like below.
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface'); $url = $storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB).$image;