Unable to edit fabrik elements with Javascript code for field event processing.

Status
Not open for further replies.

ghicar

Member
After updating from Joomla 3.10.11 with Fabrik 3.10 to Joomla 4 with the Fabrik beta4 zip I find I cannot edit any element that has javascript code for form field event processing.

When you edit such a file, browser debugger shows:
Uncaught TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at Object.getDataAttributes (dom.min.js?5.1.3:1:9635)
at Popover._getConfig (popover.min.js?5.1.3:1:9802)
at new Tooltip (popover.min.js?5.1.3:1:2384)
at new Popover (popover.min.js?5.1.3:1:11987)
at Popover.getOrCreateInstance (dom.min.js?5.1.3:1:8526)
at HTMLDocument.<anonymous> (popover.min.js?5.1.3:1:12546)
at Function.each (jquery.min.js?3.6.0:2:3003)
at S.fn.init.each (jquery.min.js?3.6.0:2:1481)
at S.fn.init.jQueryInterface [as popover] (popover.min.js?5.1.3:1:12513)

And when you try to save the element browser debugger shows:
index.php?option=com_fabrik&view=element&layout=edit&id=18:222 Uncaught TypeError: Cannot read properties of undefined (reading 'canSaveForm')
at index.php?option=com_fabrik&view=element&layout=edit&id=18:222:56
at Object.execCb (<anonymous>:29:311)
at $.check (<anonymous>:18:423)
at $.enable (<anonymous>:23:238)
at $.init (<anonymous>:17:54)
at <anonymous>:26:369

Any changes made to the element are not saved.
Further, if you create a new list and with a new field in J4, as soon as you add some javascript code for a field event, the same problem occurs.
 
any element that has javascript code for form field event processing
Which code where? Element JS build-in functions or custom code?

Which beta4? (Latest is beta4b ).
Any installation error?
Did you clear all J! and browser cache?
 
Hi troester, yes I have tried clearing Joomla cache and chrome browser cache, just done so again but still have the same issue.
Sorry for not being specific on the beta version, the zip is called: pkg_fabrik_4.0beta4b.zip
I do not remember seeing any install errors, and I just reinstalled over the top again and it has come up as successfully installed with no errors
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top