No Code Attached Yet
avatar NicolasDerumigny
NicolasDerumigny
24 Apr 2024

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.

avatar NicolasDerumigny NicolasDerumigny - open - 24 Apr 2024
avatar joomla-cms-bot joomla-cms-bot - change - 24 Apr 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Apr 2024
avatar brianteeman
brianteeman - comment - 24 Apr 2024

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

avatar NicolasDerumigny
NicolasDerumigny - comment - 24 Apr 2024

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

avatar brianteeman
brianteeman - comment - 24 Apr 2024

I was thinking aloud for possible changes

avatar brianteeman
brianteeman - comment - 26 Apr 2024

Bug Confirmed

avatar brianteeman
brianteeman - comment - 26 Apr 2024

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

avatar brianteeman
brianteeman - comment - 26 Apr 2024

Please test #43373

avatar Fedik
Fedik - comment - 26 Apr 2024

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

avatar NicolasDerumigny
NicolasDerumigny - comment - 26 Apr 2024

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

avatar brianteeman
brianteeman - comment - 26 Apr 2024

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

avatar brianteeman
brianteeman - comment - 26 Apr 2024

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

avatar Fedik
Fedik - comment - 26 Apr 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

avatar NicolasDerumigny
NicolasDerumigny - comment - 26 Apr 2024

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.

avatar Fedik
Fedik - comment - 26 Apr 2024

Thanks, I got it now

avatar Fedik
Fedik - comment - 26 Apr 2024

@brianteeman PR is good, please test

avatar Fedik Fedik - change - 26 Apr 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-04-26 11:30:38
Closed_By Fedik
avatar Fedik Fedik - close - 26 Apr 2024
avatar Fedik
Fedik - comment - 26 Apr 2024

Pleae test another one #43376

Add a Comment

Login with GitHub to post a comment