No Code Attached Yet bug
avatar sergeytolkachyov
sergeytolkachyov
4 Oct 2022

This error i have in module subform, but you can find this in other media fields.

Steps to reproduce the issue

  1. Your joomla is 4.2.2. Go to modules, select module with media field (custom html or any other) and try to select image file and save the module. Check that module saved successfully.
  2. Update your Joomla to 4.2.3 and do the same with module you selected.

Expected result

Module saved successfully.

Actual result

We have an error "The form cannot be submitted as it's missing required data. Please correct the marked fields and try again." And additional error message near the media field: "Select a Background Image. This value is not valid" (This error is for Custom HTML module).
image

Additional comments

Video with all steps

Untitled.mp4
avatar sergeytolkachyov sergeytolkachyov - open - 4 Oct 2022
avatar joomla-cms-bot joomla-cms-bot - change - 4 Oct 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Oct 2022
avatar sergeytolkachyov sergeytolkachyov - change - 4 Oct 2022
The description was changed
avatar sergeytolkachyov sergeytolkachyov - edited - 4 Oct 2022
avatar sergeytolkachyov sergeytolkachyov - change - 4 Oct 2022
The description was changed
avatar sergeytolkachyov sergeytolkachyov - edited - 4 Oct 2022
avatar richard67
richard67 - comment - 5 Oct 2022

@sergeytolkachyov What happens if you change the file name extension from "JPG" to "jpg"? Just an idea.

avatar sergeytolkachyov
sergeytolkachyov - comment - 5 Oct 2022

@sergeytolkachyov What happens if you change the file name extension from "JPG" to "jpg"? Just an idea.

I tried a jpg, JPG and webp. I have this problem on 2 different sites.

avatar dgrammatiko
dgrammatiko - comment - 5 Oct 2022

@richard67 that's NOT the Joomla's media field. @sergeytolkachyov try to solve this by either uninstalling JCE or ask them to fix THEIR code

avatar richard67
richard67 - comment - 5 Oct 2022

I see now. The screenshot shows indeed not the core field. Thanks @dgrammatiko for clarification.

Closing as not a core issue.

avatar richard67 richard67 - change - 5 Oct 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-10-05 14:13:46
Closed_By richard67
avatar richard67 richard67 - close - 5 Oct 2022
avatar sergeytolkachyov
sergeytolkachyov - comment - 9 Oct 2022

@richard67 @dgrammatiko This bug with core media manager. I have uninstalled JCE before

joomla.4.2.3.bug.mp4
avatar richard67
richard67 - comment - 9 Oct 2022

Reopening due to previous comment.

avatar richard67 richard67 - change - 9 Oct 2022
Status Closed New
Closed_Date 2022-10-05 14:13:46
Closed_By richard67
avatar richard67 richard67 - reopen - 9 Oct 2022
avatar alikon
alikon - comment - 10 Oct 2022

unable to replicate with a custom install
image

avatar ReLater
ReLater - comment - 10 Oct 2022

I can confirm the issue.

It's the reworked MIME validation (JS).

Use an existing(!) file with uppercase file extension. "PNG", "JPG" or so and you'll see the failure message and cannot save even if the file exists and has correct MimeType.

avatar sergeytolkachyov
sergeytolkachyov - comment - 11 Oct 2022

I have this issue with lowercased webp files

avatar alikon
alikon - comment - 11 Oct 2022

@ReLater didi you mean this #38425 ?

avatar ReLater
ReLater - comment - 11 Oct 2022

@ReLater didi you mean this #38425 ?

I'm not absolutely sure. I couldn't find any other relevant change in 4.2.2 compared with 4.2.3 (code review). JS is hard to debug for me in J!4.

I relied on the statement of thread opener that it worked with 4.2.2.

avatar ReLater
ReLater - comment - 11 Oct 2022

@alikon

Looks like another bug that already existed before 4.2.3 and has nothing to do with 38425. Sorry!

Made a test with a blank Jommla 4.2.2.

  • The preview image isn't loaded if you select a file with uppercase extension. It's displayed correctly in media manager on selection.
  • But: You can save the form without warning.

Only change with 4.2.3:

  • You cannot save the form and get a warning.

grafik

avatar ReLater
ReLater - comment - 11 Oct 2022

Sorry again! After update to 4.2.3: Nothing has changed. NO preview. No warning.

Im giving up.

avatar ReLater
ReLater - comment - 11 Oct 2022

On all other Joomla 4.2.3 sites I can confirm the issue but not on the newly installed 4.2.2; updated to 4.2.3.

I also tested with newly installed JCE on the newly installed Joomla: No issues.

avatar alikon
alikon - comment - 11 Oct 2022

can you check with this settings, add your images extensions all caps
image

avatar ReLater
ReLater - comment - 11 Oct 2022

Thank you. "Allowed Extensions" didn't change the preview but this addition (red arrow) brings back the preview in my case:

grafik

This has nothing to do with the changed setting:

AND, strange but true: All 4.2.3 pages I've tested again some minutes ago do NOT show a warning any longer or block saving just because of the uppercase extension.

If I remember correctly I just updated Firefox last night. I don't know...

avatar alikon
alikon - comment - 11 Oct 2022

well
i'm more incline to classify this
like a documentation issue

quite tempted to close it ?

avatar ReLater
ReLater - comment - 11 Oct 2022

@sergeytolkachyov
Can you reproduce the warning issue on a clean installation? I have nothing more to contribute here for the time being...

avatar sergeytolkachyov
sergeytolkachyov - comment - 12 Oct 2022

@sergeytolkachyov Can you reproduce the warning issue on a clean installation? I have nothing more to contribute here for the time being...

I'll try tomorrow

avatar sergeytolkachyov
sergeytolkachyov - comment - 13 Oct 2022

@alikon @richard67 Clean Joomla 4.2.3 installation.

  • I can confirm that the preview for file with uppercased extension is not exist until you add uppercased file extension to the media manager settings in "Legal Image Extensions (File Types)".
  • I can save the module with selected image (upper- or lowercased file extension) and successfully save it. So this bug is exists only on joomla updated from 4.2.2
avatar BroadcastTechnician
BroadcastTechnician - comment - 2 Nov 2022

Hello, we have almost the same problem with Joomla version 4.2.4.

But with articles (Intro Image and Full Article Image) and only with webp. (And yes, webp is allowed as a legal image extension).

You can choose a webp image and save the article the first time (image is saved too) - after that the error appears (value invalid).

github

But this problem exists only if a relative path is given.
If you enter the complete address to the image instead, no error appears after saving.
But this can't be the solution of the problem ...

Best regards

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment