Fixed fabrik SyntaxError: Unexpected token '<', " "... is not valid JSON

SoilentRed

Caaan do!
I have a fabrik form on a module throughout my site. I get the following error on tests:
Code:
fabrik SyntaxError: Unexpected token '<', " "... is not valid JSON
console reports the following:
Code:
<br />
<b>Deprecated</b>:  Creation of dynamic property PlgFabrik_ValidationruleIsEmail::$formModel is deprecated in <b>/home/houstonrehabclin/public_html/components/com_fabrik/models/form.php</b> on line <b>2367</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property PlgFabrik_ValidationruleRegex::$formModel is deprecated in <b>/home/houstonrehabclin/public_html/components/com_fabrik/models/form.php</b> on line <b>2367</b><br />
{"msg":"Record added\/updated","url":"https:\/\/houstonrehabclinic.com\/","baseRedirect":true,"rowid":"4","suppressMsg":false,"reset_form":true}: SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
How can I fix this? I see data is being stored in fabrik. But submissions are returning that error.

Fabrik
Version: 4.2 (GitDate: 2024-06-22)

Joomla
5.1.2

Database Version 8.0.37

PHP Version 8.2.18
 
Change the Joomla error reporting to simple. Deprecated notices are not errors, but will break the output on ajax type requests.
 
Back
Top