You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#110894 JCE File Browser gives 404 Page not Found in frontend

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Joris on Tuesday, 24 May 2022 12:58 BST

Joris
Hi Ryan,

In specific circumstances, the JCE File Browser gives a "404 Page not Found" error:

  • In JCE Options > General options we've set the option "JCE File Browser in Image Fields" to: Yes.
  • As a result of this, the JCE File Browser is called when editing an article and clicking on the button Select for an Intro or Full text image on the Images and Links tab .
  • We've created a profile for frontend editing by the user group Publisher.
  • If a Publisher is editing an existing article in the frontend, clicking the button Select works as expected.
  • However, clicking the button in a new (not yet saved) article results in a 404 error in the dialog modal for the JCE File Browser.


When checking in the browser console, we see this:

Whan editing an existing article; this url is being called in the modal:
https://domain.com/path-to-existing-article/index.php?option=com_jce&task=mediafield.display&fieldid=jform_images_image_intro&mediatype=images&context=19

The result status of this call is 303, after which there is a redirect to:
https://domain.com/path-to-existing-article/index.php?option=com_jce&task=plugin.display&plugin=browser&standalone=1&dd468b619667928e44b0d3fef4bf563a=1&client=0&element=jform_images_image_intro&converted=1&mediatype=images&context=19


When creating a new article, the url that is called is identical, except for the path tot the article:
https://domain.com/path-to-menu-item-for-new-article/index.php?option=com_jce&task=mediafield.display&fieldid=jform_images_image_intro&mediatype=images&context=19

However in this case there is a 404 status and the process stops there.

Ryan
Please try JCE Pro 2.9.23 RC - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

chr_lan
Hello,
I have the exact same issue using JCE Pro 2.9.23 RC 5 in the following case:
- using custom field with media subform field
- Menu item at level > 1, for instance: /page1/page2
Thanks for your help.
Christophe

Ryan
@Christophe - Which template are you using?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

chr_lan
I tested it on Cassiopeia and Gantry Clarity (Joomla 4.1.3) and got the same result.
When I put the page at root level, it's working again. When I manually extract the relative data-url, it's working in the browser:
index.php?option=com_jce&task=mediafield.display&fieldid=jform_com_fields__custom_img__row0__field4__imagefile&mediatype=images&context=22

Ryan
Please try JCE Pro 2.9.23 RC6 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

chr_lan
Thanks a lot for your work, it's working perfectly now !
Have a nice day,
Christophe

Joris
Wonderful.