Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inserted image in product description got broken on front end #6088

Closed
forvin opened this issue Aug 10, 2016 · 9 comments
Closed

inserted image in product description got broken on front end #6088

forvin opened this issue Aug 10, 2016 · 9 comments
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update

Comments

@forvin
Copy link

forvin commented Aug 10, 2016

My site is built by Magento 2.1.
I inserted image in product description area, but image is broken after I save it.
How to fix it? Thanks

@allanpaiste
Copy link

allanpaiste commented Aug 10, 2016

I tried to repeat the problem by:

  1. have 2.1 stable release installed (with demo data)
  2. log into admin
  3. edit any product (I chose "Hyperion Elements Jacket-XS-Green")
  4. open the "Content" accordion
  5. Insert an image via media manager to the description wysiwyg area
  6. save the product

EXPECTED: image is correctly rendered in the description area
ACTUAL: image is correctly rendered in the description area

... so basically I failed to repeat

QUESTIONS: what image type did you use, what was the image filename? what product type? do you have any extra modules installed?

@forvin
Copy link
Author

forvin commented Aug 10, 2016

Hi allanpaiste, Thanks for your reply.

I just tested a product of demo data , it works .

@oserediuk
Copy link
Contributor

Hello @forvin ! Did you resolve you issue?

@forvin
Copy link
Author

forvin commented Aug 13, 2016

Hi @oserediuk ! No, I didn't. Inserted image will be fine at first, but it will break after you re-index your magento. And newly added products will not appear until you manually re-index via ssh. @allanpaiste

@andimov
Copy link
Contributor

andimov commented Aug 17, 2016

@forvin
Unfortunately, now it's not easy to understand what is your actual problem is. So I have to ask you format your issue according to templates: specifying preconditions, exact steps to reproduce, actual result, and expected result.

@dthampy
Copy link
Contributor

dthampy commented Aug 29, 2016

@forvin , is this the same as #6138 ?

@andimov
Copy link
Contributor

andimov commented Sep 5, 2016

@forvin
According to contributor guide, tickets without response for two weeks should be closed.
Please feel free to reopen if it's needed.

@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-70435

@erikkubica
Copy link

erikkubica commented Oct 9, 2019

@magento-team I am running CE 2.2.3 and this issue still persists. My client just reported that he inserted image into the product description and that the image does not load if user is not logged in as admin.

I have tried to use blank and luma themes so I can ensure that issue is not caused by my custom theme. Output from any theme I tried:

<img src="https://blahblahblahblah.com/admin/cms/wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ind5c2l3eWcvbGlwb2VsYXN0aWNfc3Rhcm9zdGxpdm9zdF8yLnBuZyJ9fQ/" width="600" height="346">

Funny thing is that it works for CMS Page, but not for product description.

I have tried to wrap my block where I echo my product description using:

$this->_filterProvider->getPageFilter()->filter(...)

But it did not work. When I tried to:

$this->_filterProvider->getPageFilter()->filter('{{media url="wysiwyg/lipoelastic_starostlivost_2.png"}}'); 

Then it returned URL. So it seems like the problem is that the filter cannot proccess the directive, while it can process the widget code.

--- Edit ----
If I insert image without wysiwyg editor, then it works since instead of that weird directive it generates widget code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update
Projects
None yet
Development

No branches or pull requests

8 participants