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

Media Manager is wrongly initialised by TinyMCE when accessed from a front-end submenu item #43344

Closed
NicolasDerumigny opened this issue Apr 24, 2024 · 15 comments · May be fixed by #43376
Closed

Comments

@NicolasDerumigny
Copy link

Steps to reproduce the issue

Edit an article in a submenu, e.g. menu/article. Try to access "media" in "CMS Content" using TinyMCE.

Expected result

The media manager starts.

Actual result

The media manager window loads /menu/index.php?option=com_media&view=media&tmpl=component&e_name=jform_articletext&asset=675&mediatypes=0,1,2,3&author=36 and displays "File not found. "

System information (as much as possible)

Joomla 5.1.0 on Nginx 1.22.1, PHP 8.2.18.

Additional comments

Patchable by adding a "/" before the URL at https://github.com/joomla/joomla-cms/blob/5.1-dev/plugins/editors-xtd/image/src/Extension/Image.php#L187. I can make an MR but I am not familiar with Joomla's internal. It was working fine on 4.4, not sure what caused the issue.

@brianteeman
Copy link
Contributor

Do you have an .htaccess file in use?
If you do please can you post the contents

@NicolasDerumigny
Copy link
Author

No, as I use nginx. The config is the one detailed here: https://docs.joomla.org/Nginx

@brianteeman
Copy link
Contributor

I was thinking aloud for possible changes

@brianteeman
Copy link
Contributor

Bug Confirmed

@brianteeman
Copy link
Contributor

@Fedik please can you take a look at this. I believe it may be related to joomla-dialog.js

@brianteeman
Copy link
Contributor

Please test #43373

@Fedik
Copy link
Member

Fedik commented Apr 26, 2024

Does it also broken with "Codemiror" or "Editor none"?

@NicolasDerumigny
Copy link
Author

I do not think it is possible to open the media manager from these editors, is it?

@brianteeman
Copy link
Contributor

Does it also broken with "Codemiror" or "Editor none"?

testing

I do not think it is possible to open the media manager from these editors, is it?

Yes they appear as buttons below the editor

@brianteeman
Copy link
Contributor

tested with editor none - same problem
tested my pr with editor none - fixed

@Fedik
Copy link
Member

Fedik commented Apr 26, 2024

Hm, how is your menu are setup?
I have:

- Test Article => Article view
- - Test article 2 => Article2 view

And when I trying edit any of it (using an edit link on frontend), I still able to open media manager without error.

image

@NicolasDerumigny
Copy link
Author

Mine is:

- Category Blog #1
- - Category Blog #2

And I try to edit an article displayed on the category blog#2, i.e. blog1/blog2/alias.

@Fedik
Copy link
Member

Fedik commented Apr 26, 2024

Thanks, I got it now

@Fedik Fedik linked a pull request Apr 26, 2024 that will close this issue
4 tasks
@Fedik
Copy link
Member

Fedik commented Apr 26, 2024

@brianteeman PR is good, please test

@Fedik
Copy link
Member

Fedik commented Apr 26, 2024

Pleae test another one #43376

@Fedik Fedik linked a pull request Apr 26, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants