137 Posts
root
1 month ago
4
Topic

Since the update from Joomla 4.4.3 to Joomla 5.1.4, the AJAX availability validation field has stopped working correctly.

It no longer displays any alerts, whether the item is available (PLG_CCK_FIELD_VALIDATION_AJAX_AVAILABILITY_ALERT2) or not (PLG_CCK_FIELD_VALIDATION_AJAX_AVAILABILITY_ALERT1) or while validating (PLG_CCK_FIELD_VALIDATION_AJAX_AVAILABILITY_ALERT3).

The following JavaScript error appears in the browser console:

Uncaught TypeError: JCck.Core.trigger is not a function

Any help or fix will be appreciated

Best regards

Get a VIP membership
137 Posts
root
1 month ago
0
Level 1

I forgot to mention that the update was also from Seblod 4.3.1 to Seblod 4.4.2.

137 Posts
root
26 days ago
0
Level 1

In fact, any kind of javascript validation isn't working since the update, not only the ajax availability plugin.

Best regards

8 days ago
1
Level 1

Hi,

A CSS fix is included in SEBLOD 4.5.1. A few additional details can be found here https://github.com/Octopoos/SEBLOD/issues/829#issuecomment-2541250376

Not sure about the JS issue you have, we were not able to replicate. Feel free to share additional details if needed.

Thanks,

Saba

137 Posts
root
7 days ago
0
Level 2

Hi Saba,

Thank you very much for your support.

With the changes you made to the cck.site.css file, regardless of the option selected in the "General" -> "Validation Position" tab within Seblod's general settings, the prompts always appear in the same position. The forms are aligned to the left, and the alert prompts always appear on the right of the document, far from the fields. I had partially resolved this issue by changing "absolute" to "static" in the cck.validation.js file, on line 1789. Afterward, the file needs to be minified and renamed to cck.validation.min.js.

Regarding the mentioned JavaScript issue, it occurs when tabbing through fields and when the date field loses the focus. I must mention that the date field has been having issues for quite some time now.

https://github.com/Octopoos/SEBLOD/issues/679
https://github.com/Octopoos/SEBLOD/issues/817

Best regards,

Adonay

Get a Book for SEBLOD