-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Frontend editable module of "Custom" type cannot be saved anymore #37438
Comments
What happens when you set a date into publish_up? |
Can't replicate on a local (xampp) 4.1.2 installation. I was able to edit and save the changes on the custom module |
Thanks for your replies.
The result is still the same This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37438. |
I cannot replicate that on win11, xampp, php 8.1 |
@oorzaak Which language are you using? |
I take your words for it. However, I just replicated the issue in another site that I made from scratch, using the J.4.1.2 full package without changing any settings or installing any other extensions. This time I did not upload any other languages than English either. The error message is now: {"error":true,"code":0,"message":"Invalid field: COM_MODULES_FIELD_PUBLISH_UP_LABEL"} This is on the same hosting as one of the sites mentioned above. The four sites that I have now where I can see this issue on, are distributed over two different "live" servers (as in: not local). This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37438. |
Still trying to find what happens there as I cannot replicate the problem. Can you give some technical details about your environment? System, PHP version? |
Hi, I've put up a screen video here: https://youtu.be/EmEJiuLbSME System information as reported by Joomla: |
In your video I can see that you are not using either of the default editors. In order to rule out an issue with your editor please test with both tinymce and codemirror. |
If possible also have a look at the log files from server |
Using TinyMce or CodeMirror gives the same result. I already tried this but maybe I didn't mention it above. I created a new screeen video using both: https://youtu.be/BrZqJenm31A About server log files: I'm not familiar with the interpretation of server logs. First of all, I see that I can select from about 15 different logs in my DirectAdmin. Which log would be relevant in this case? |
at best some log file with error in the name: error.log or php-error.log... something like that |
Normally providers have some online documentation on that. |
Hi, #Date: 2022-04-15 15:18:57 UTC #Fields: datetime priority clientip category message #0 [ROOT]/libraries/src/MVC/Model/FormModel.php(219): Joomla\CMS\Form\Form->validate() |
Thank you for that - I found it. Your user has not the permission for edit-state. |
Hi Christiane, Thanks for your reply. I changed the permissions, however I get a different error message now when clicking Save or Save & Close: JERROR_SAVE_FAILED The rest of the page looks normal now, when this error message appears. And in spite of this message, the edits are saved, as I can see when I click Cancel after this. [edited to provide more details] |
Maybe you should check all permissions for the user group. I don't think that is a Joomla bug (we would have lots of issues then), but something wrong on the permissions in your installation. |
In my opinion it is a bug. If permissions are set incorrectly, the system can react other than expected, but it should not throw such an error message. If the edit.state permission is not granted, publish_up and _down must be disabled. But the field is in the request as an input field. Disabled & input together throw this error. |
Steps to reproduce the issue
Create a module of the type "Custom", make it visible in frontend and set Permissions to "Frontend Editing: Allowed" for user group "Publisher" (also make sure that "Edit" is allowed.
Create a user in the "Publisher" user group and login as this user in the frontend.
In the frontend, click the "Edit" button of the module that you created and edit it's content and/or title.
Click "Save"
Expected result
I expect the changes to be saved.
Actual result
My changes are not saved; instead I get this error message:
{"error":true,"code":0,"message":"Ongeldig veld: COM_MODULES_FIELD_PUBLISH_UP_LABEL"}
Note: "Ongeldig veld" is a local rendering of the language constant: JLIB_FORM_FIELD_INVALID
It is displayed in my local language (Dutch) even though I've set both frontend and backend language preferences of my user to English.
System information (as much as possible)
J.4.1.2
Both on php 8.0.17 and 7.4.28
10.5.15-MariaDB
Additional comments
I started working on this site months ago using J.4.0.0. At some point during the development I added this particular module and made it frontend editable. I tested it and at the time it worked as expected. I am not sure in which J. version the site was by then.
I experienced / replicated this issue on three different J.4 sites, one of them with the original Cassiopeia template, the other two with custom made forks of Cassiopeia.
The text was updated successfully, but these errors were encountered: