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!
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
@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.
Have you found the solution?
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)
Have you found a solution for this problem? i have the same
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.
I will study this issue in more detail
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;