[Skip to main content](#vessel-content)

#   Images don't show correct in product editing

##

- **[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")**
- [![KaterKarlo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45897-katerkarlo "View KaterKarlo's Profile") Topic Author
- [ Offline](/forum/user/45897-katerkarlo)

Less More

- Posts: 4
- Thank you received: 0
-
-

7 years 3 months ago [\#308782](#308782) by [KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")  *[Images don't show correct in product editing](/forum/25-install-update/897903-images-dont-show-correct-in-product-editing#308782 "-- HikaShop version -- : 4.2.0 -- Joomla version -- : 3.9.10 Stable -- PHP version -- : 7.2.19-he.0 -- Browser(s) name and version -- : Firefox 69.0b4  Hello,  when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it :(  Please see in attachments the screenshots: I think that all what is to configure is done right....  Thank you very much for helping, Regards, Karl")* was created by *[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")*

-- HikaShop version -- : 4.2.0
-- Joomla version -- : 3.9.10 Stable
-- PHP version -- : 7.2.19-he.0
-- Browser(s) name and version -- : Firefox 69.0b4

Hello,

when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it ![:(](/media/kunena/emoticons/5.png ":(")

Please see in attachments the screenshots: I think that all what is to configure is done right....  [ ![error-in-path-01.png](/forum/attachment/47277) ](/forum/attachment/47277 "...in-path-01.png")

[ ![error-in-path-02.png](/forum/attachment/47278) ](/forum/attachment/47278 "...in-path-02.png")

Thank you very much for helping,
Regards,
Karl

- [ ![error-in-path-01.png](/forum/attachment/47277) ](/forum/attachment/47277 "...in-path-01.png") [ ](/forum/attachment/47277?download=1 "...in-path-01.png")
- [ ![error-in-path-02.png](/forum/attachment/47278) ](/forum/attachment/47278 "...in-path-02.png") [ ](/forum/attachment/47278?download=1 "...in-path-02.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NzkwMy1pbWFnZXMtZG9udC1zaG93LWNvcnJlY3QtaW4tcHJvZHVjdC1lZGl0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

7 years 3 months ago -  7 years 3 months ago [\#308806](#308806) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Images don't show correct in product editing](/forum/25-install-update/897903-images-dont-show-correct-in-product-editing#308806 "-- HikaShop version -- : 4.2.0 -- Joomla version -- : 3.9.10 Stable -- PHP version -- : 7.2.19-he.0 -- Browser(s) name and version -- : Firefox 69.0b4  Hello,  when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it :(  Please see in attachments the screenshots: I think that all what is to configure is done right....  Thank you very much for helping, Regards, Karl")*

Hello,

I can tell you the folder, but not sure that can help you though
You will find all your HikaShop images here : "***YourWebsite\\images\\com\_hikashop\\upload***"

If you are unable to solve your issue, you can send us some **backend access** via our [ **Contact us**](https://www.hikashop.com/forum/install-update/897903-images-don-t-show-correct-in-product-editing/edit/308806.html) form (add an url link to this topic to your message) in order to see by ourself the context and process some tests.

Regards

Last edit: 7 years 3 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NzkwMy1pbWFnZXMtZG9udC1zaG93LWNvcnJlY3QtaW4tcHJvZHVjdC1lZGl0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")**
- [![KaterKarlo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45897-katerkarlo "View KaterKarlo's Profile") Topic Author
- [ Offline](/forum/user/45897-katerkarlo)

Less More

- Posts: 4
- Thank you received: 0
-
-

7 years 3 months ago [\#308829](#308829) by [KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")  Replied by *[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")* on topic *[Images don't show correct in product editing](/forum/25-install-update/897903-images-dont-show-correct-in-product-editing#308829 "-- HikaShop version -- : 4.2.0 -- Joomla version -- : 3.9.10 Stable -- PHP version -- : 7.2.19-he.0 -- Browser(s) name and version -- : Firefox 69.0b4  Hello,  when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it :(  Please see in attachments the screenshots: I think that all what is to configure is done right....  Thank you very much for helping, Regards, Karl")*

Hello,

thank you for your answer. I'm sorry, but this didn't help me. Please have a look at the screenshots which I sent you. There you can see that Hikashop produces the html tag like "&lt;img src='../images/coupshop1/upload//thumbnails/100x100fsO/aktionsheft-produktbild-685x480-07.png' &gt;" which contains after ...upload... two backslashes. when I delete one of them in firefox inspector, the images are shown correctly. So please can you tell me in which file I can make changes in code that one of the backslashes is deleted?
Thank you very much for help.
Regards,
Karl

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NzkwMy1pbWFnZXMtZG9udC1zaG93LWNvcnJlY3QtaW4tcHJvZHVjdC1lZGl0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

7 years 3 months ago [\#308851](#308851) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Images don't show correct in product editing](/forum/25-install-update/897903-images-dont-show-correct-in-product-editing#308851 "-- HikaShop version -- : 4.2.0 -- Joomla version -- : 3.9.10 Stable -- PHP version -- : 7.2.19-he.0 -- Browser(s) name and version -- : Firefox 69.0b4  Hello,  when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it :(  Please see in attachments the screenshots: I think that all what is to configure is done right....  Thank you very much for helping, Regards, Karl")*

Hi,

Make sure that you end the path in the HikaShop configuration with a /
Then it should be fine.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NzkwMy1pbWFnZXMtZG9udC1zaG93LWNvcnJlY3QtaW4tcHJvZHVjdC1lZGl0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")**
- [![KaterKarlo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45897-katerkarlo "View KaterKarlo's Profile") Topic Author
- [ Offline](/forum/user/45897-katerkarlo)

Less More

- Posts: 4
- Thank you received: 0
-
-

7 years 3 months ago [\#308865](#308865) by [KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")  Replied by *[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")* on topic *[Images don't show correct in product editing](/forum/25-install-update/897903-images-dont-show-correct-in-product-editing#308865 "-- HikaShop version -- : 4.2.0 -- Joomla version -- : 3.9.10 Stable -- PHP version -- : 7.2.19-he.0 -- Browser(s) name and version -- : Firefox 69.0b4  Hello,  when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it :(  Please see in attachments the screenshots: I think that all what is to configure is done right....  Thank you very much for helping, Regards, Karl")*

Hello,

Sorry, this also did not help. I had tried before with and without "/". This is not the problem.

[ ![hikashop-path-error-01.png](/forum/attachment/47294) ](/forum/attachment/47294 "...h-error-01.png")

[ ![hikashop-path-error-02.png](/forum/attachment/47295) ](/forum/attachment/47295 "...h-error-02.png")

Again: Please look at the screenshots! I can't find out where the url is constructed. I think that there is the problem. The paths in configuration are correct. The images in shop frontend are shown. But the images in the popup when editing (adding or changing images) are not shown. And when I have a lot of images and I can see only part of the names of them, it is too hard to find some pics without to see it real.

Thank you for your time to help,
regards,
Karl

- [ ![hikashop-path-error-01.png](/forum/attachment/47294) ](/forum/attachment/47294 "...h-error-01.png") [ ](/forum/attachment/47294?download=1 "...h-error-01.png")
- [ ![hikashop-path-error-02.png](/forum/attachment/47295) ](/forum/attachment/47295 "...h-error-02.png") [ ](/forum/attachment/47295?download=1 "...h-error-02.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NzkwMy1pbWFnZXMtZG9udC1zaG93LWNvcnJlY3QtaW4tcHJvZHVjdC1lZGl0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

7 years 3 months ago [\#308907](#308907) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Images don't show correct in product editing](/forum/25-install-update/897903-images-dont-show-correct-in-product-editing#308907 "-- HikaShop version -- : 4.2.0 -- Joomla version -- : 3.9.10 Stable -- PHP version -- : 7.2.19-he.0 -- Browser(s) name and version -- : Firefox 69.0b4  Hello,  when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it :(  Please see in attachments the screenshots: I think that all what is to configure is done right....  Thank you very much for helping, Regards, Karl")*

Hi,

I did some debugging today and found the issue.
Add the line:
$dir = trim($dir,'/').'/';
after the line:
$dir = str_replace(DS, '/', $dir);
in the file administrator/components/com_hikashop/helpers/gallery.php and that will fix the problem.
We'll also add that patch on our end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NzkwMy1pbWFnZXMtZG9udC1zaG93LWNvcnJlY3QtaW4tcHJvZHVjdC1lZGl0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")**
- [![KaterKarlo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45897-katerkarlo "View KaterKarlo's Profile") Topic Author
- [ Offline](/forum/user/45897-katerkarlo)

Less More

- Posts: 4
- Thank you received: 0
-
-

7 years 3 months ago [\#308912](#308912) by [KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")  Replied by *[KaterKarlo](/forum/user/45897-katerkarlo "View KaterKarlo's Profile")* on topic *[Images don't show correct in product editing](/forum/25-install-update/897903-images-dont-show-correct-in-product-editing#308912 "-- HikaShop version -- : 4.2.0 -- Joomla version -- : 3.9.10 Stable -- PHP version -- : 7.2.19-he.0 -- Browser(s) name and version -- : Firefox 69.0b4  Hello,  when editing products and try to add an image, in the popup and in frontend images are not shown. In Hikashop it inserts in image path a backslash wrong. Please can you tell me, what in which file I have to change? I cannot find it :(  Please see in attachments the screenshots: I think that all what is to configure is done right....  Thank you very much for helping, Regards, Karl")*

Hi,

thank you very much for your code.
That did it perfectly! Now everything works great!

Thank's a lot,
Regards,
Karl

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NzkwMy1pbWFnZXMtZG9udC1zaG93LWNvcnJlY3QtaW4tcHJvZHVjdC1lZGl0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.284 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
