cancel
Showing results for 
Search instead for 
Did you mean: 

category thumbnail - wrong path

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!

8 REPLIES 8

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

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

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.

Re: category thumbnail - wrong path

Have you found the solution?

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)

Re: category thumbnail - wrong path

Have you found a solution for this problem? i have the same

Re: category thumbnail - wrong path

Re: category thumbnail - wrong path

I will study this issue in more detail

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;