Magento2: Wysywig wrong img directive in category edit

Created on 20 Jul 2016  路  14Comments  路  Source: magento/magento2

Steps to reproduce

  1. Install Magento from zip archive
  2. add category
  3. in "content" section go to wysiwyg editor
  4. Hide editor
  5. Add an image (will insert {{media url="wysiwyg/content/world-map-sat.jpg"}})
  6. Open category in frontend

    Expected result

  7. url of an image http://domain.com/pub/media/wysiwyg/content/world-map-sat.jpg (or similar)

    Actual result

  8. Image url leads to admin area (http://domain.com/admin/cms/wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ind5c2l3eWcvY29udGVudC93b3JsZC1tYXAtc2F0LmpwZyJ9fQ,,/key/843adb1c4db149b221b91815e46267e618989232389e86ff5399897041ccc15b/)
    1
    2

Fixed in 2.2.x Fixed in 2.3.x Clear Description Confirmed Format is not valid Ready for Work Reproduced on 2.1.x bug report

Most helpful comment

@JVKeller You can use this as a workaround

https://github.com/Talv/magento2-wysiwyg-fix

All 14 comments

Thanks for reporting this issue.
Unfortunately, I was not able to reproduce the issue you described.
Could you please provide more information? Like versions of PHP, MySQL and web server.
Also, it can be helpful if you describe settings of your Magento instance: was it the fresh install or upgrade from the previous version?
Do you have many store views? Maybe some other settings.

php version: PHP 5.6.22-0+deb8u1
mysql Ver 14.14 Distrib 5.6.31, for Linux (x86_64)
Server version: Apache/2.4.10 (Debian)
Magento install from zip archive, downloaded from magento site.
There is only one store view. That's all

@duhon i faced same issue on CE 2.1, it's expose my admin console url.

Faced this after i update from 2.0.4 CE to 2.1.0 CE.
More details : #5426

screen shot 2016-07-28 at 9 24 01 pm

@Styopchik
Thank you for reporting!
I've created an internal ticket for this issue - MAGETWO-56485 and linked it to this one.

This issue still exists on 2.1.2. @veloraven @tkacheva Any news about it?

Duplicates: 7167

But that ticket is also not solved. Mainly because developers cannot replicate the issue.
I just had it too. But I didn't have it before. Something changed. Still figuring out what though.

2.1.4 and the path generated in the Image URL field is pointing to admin
zrzut ekranu 2017-02-21 o 16 05 19

We're experiencing this issue in production on multiple websites, at least one of which is EE (so I'm guessing I should file an internal support request as well).

EE Dev: Magento 2.1.4
PHP 5.6.25 w/ ionCube Loader v5.1.1 (EE Dev)

CE Prod: Magento 2.1.3
PHP 5.6.27 w/ ionCube Loader v6.0.6 w/ Zend Guard Loader v3.3 (CE Prod)

Both of the sites have the following directory structure:

[ user home directory ]
Magento/
public_html/ -> Magento/pub

Website is served from public_html (which is symlinked to Magento/pub)

This issue has been following me on my site also.

Upgrade path was 2.1.5 -> 2.1.6 -> 2.1.7
Existing on all versions.

Is there a work around? Very annoying to have to keep editing the html over and over.
I have to save, then go back in and edit html view. As soon as I reopen the wysiwyg editor changes the link back.

example:
https://moto-heaven.com/admin/cms/wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Imh0dHBzOi8vbW90by1oZWF2ZW4uY29tL3B1Yi9tZWRpYS9pbWFnZXMvVEhSVVNUQ29tcGFueS5naWYifX0,/key/a19784f7660ed7d4473ecb0d3c7bb2acb20618e1027232f472762ffc9c3e1bab

@JVKeller You can use this as a workaround

https://github.com/Talv/magento2-wysiwyg-fix

I'll try it out!
Thanks!

@Styopchik, thank you for your report.
The issue is already fixed in develop branch, 2.2.0

Should this be fixed in CE 2.1.11?

I am still seeing the issue, even with the https://github.com/Talv/magento2-wysiwyg-fix which I can confirm is adding the "add_directives" line to the config. No idea why the fix isn't working!?

Was this page helpful?
0 / 5 - 0 ratings