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

Wysywig wrong img directive in category edit #5705

Closed
Styopchik opened this issue Jul 20, 2016 · 14 comments
Closed

Wysywig wrong img directive in category edit #5705

Styopchik opened this issue Jul 20, 2016 · 14 comments
Labels
bug report Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release

Comments

@Styopchik
Copy link

Styopchik commented Jul 20, 2016

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

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

Actual result

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

duhon commented Jul 25, 2016

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.

@Styopchik
Copy link
Author

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

@davidbilly
Copy link

davidbilly commented Jul 28, 2016

@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

@andimov andimov added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed Progress: needs update labels Aug 3, 2016
@andimov andimov self-assigned this Aug 5, 2016
@andimov
Copy link
Contributor

andimov commented Aug 5, 2016

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

@andimov andimov removed their assignment Sep 2, 2016
@tkacheva
Copy link

Duplicates #7297

@Bartlomiejsz
Copy link
Contributor

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

@Frits1980
Copy link

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.

@Szymon-GP
Copy link

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

@navarr
Copy link
Member

navarr commented Mar 16, 2017

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)

@JVKeller
Copy link

JVKeller commented Jun 22, 2017

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

@navarr
Copy link
Member

navarr commented Jun 22, 2017

@JVKeller You can use this as a workaround

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

@JVKeller
Copy link

I'll try it out!
Thanks!

@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed 2.1.x Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release labels Oct 2, 2017
@magento-engcom-team
Copy link
Contributor

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

@bobemoe
Copy link
Contributor

bobemoe commented Jan 1, 2018

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!?

slavvka pushed a commit that referenced this issue May 29, 2020
[Pangolin] Remove MTF Tests and related code from Magento 2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release
Projects
None yet
Development

No branches or pull requests