No Code Attached Yet
avatar stormskipper
stormskipper
12 Mar 2024

Steps to reproduce the issue

I switched on Display Frontend Images and links, so I can edit these from the front end.
(Options / Articles/Editing Layout / Frontend Images and Links - Show
The images don't show.
Tried JCE, TinyMCE and NoEditor - all the same.

Also if you click on "select" to select an image you get a greyed out modal box and the only way out is to refresh the page.

Expected result

Displays images in front end editor Images and Links tab. Click on Select image and you can actually select an image.

Actual result

No images displayed on the Images and Links tab. Greyed out modal box when you click on Select image.

System information (as much as possible)

For the Images and Links tab:

Fired up the console and it's giving me
Uncaught TypeError: window.bootstrap.Modal.getInstance is not a function
at HTMLElement.connectedCallback (joomla-field-media.min.js?7b9940:4:3220)
at joomla-field-media.min.js?7b9940:4:8331

The code it's objecting to in joomla-field-media.min.js is:
if (this.button.addEventListener("click", this.show),
this.modalElement && window.bootstrap && window.bootstrap.Modal && !window.bootstrap.Modal.getInstance(this.modalElement) && Joomla.initialiseModal(this.modalElement, {
isJoomla: !0
}),

It doesn't like getInstance(this.modalElement) && Joomla.initialiseModal(this.modalElement,

When you click the Select button the error is:
Uncaught TypeError: window.bootstrap.Modal.getInstance is not a function
at HTMLElement.connectedCallback (joomla-field-media.min.js?7b9940:4:3220)
at joomla-field-media.min.js?7b9940:4:8331

This bit of code:
if (this.button.addEventListener("click", this.show),
this.modalElement && window.bootstrap && window.bootstrap.Modal && !window.bootstrap.Modal.getInstance(this.modalElement) && Joomla.initialiseModal(this.modalElement, {
isJoomla: !0
}),

Additional comments

Joomla 5.0.3 - all up to date

avatar stormskipper stormskipper - open - 12 Mar 2024
avatar stormskipper stormskipper - change - 12 Mar 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 12 Mar 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Mar 2024
avatar dgrammatiko
dgrammatiko - comment - 13 Mar 2024

Please confirm that your browser is supporting Import Maps (ie the version is in the green ones)

avatar stormskipper
stormskipper - comment - 13 Mar 2024

Hi Browser is latest Chrome
Chrome is up to date
Version 122.0.6261.129 (Official Build) (64-bit)

avatar dgrammatiko
dgrammatiko - comment - 13 Mar 2024

Then remove jce and try again

avatar stormskipper
stormskipper - comment - 13 Mar 2024

imagesandlinks

Removed jce - just the same

avatar stormskipper stormskipper - change - 13 Mar 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-03-13 14:51:25
Closed_By stormskipper
avatar stormskipper stormskipper - close - 13 Mar 2024
avatar stormskipper
stormskipper - comment - 13 Mar 2024

Ah - it's a template problem. I switched to Cassiopia and that is ok.
I'm using ja-stark.
I'll have to ask them.

Add a Comment

Login with GitHub to post a comment