Uncaught Error: Call to a member function dbField()
Uncaught Error: Call to a member function dbField()
Hello,
Getting this error.. any thoughts .
<b>Fatal error</b>: Uncaught Error: Call to a member function dbField() on array in /www/seidenphp/htdocs/DataTables_Editor/lib/Editor.php:1107
Stack trace:
#0 /www/seidenphp/htdocs/DataTables_Editor/lib/Editor.php(1003): DataTables\Editor->_get()
#1 /www/seidenphp/htdocs/DataTables_Editor/lib/Editor.php(707): DataTables\Editor->_process()
#2 /www/seidenphp/htdocs/MIS/GlobalNetTabManagement/ssp_GlobalNetTabManagement.php(47): DataTables\Editor->process()
#3 {main}
thrown in <b>/www/seidenphp/htdocs/DataTables_Editor/lib/Editor.php</b> on line <b>1107</b><br />
Field::inst( 'NAV_ACTIVE' )
->validator(Validate::in(['Y', 'N'], ValidateOptions::inst()
->message('The value must be Y or N')
))
Answers
What version of the PHP libraries are you using please? I check the 2.3.2 code, as you mentioned that version in a recent post, but it doesn't correspond with an error like that. Likewise with the latest release.
Can you post the full PHP Editor init as well please? What makes you think it is the NAV_ACTIVE field that is causing the issue? Does the error go away if you remove it?
Allan
Hi Allan,
Yes Editor 2.3.2. Here is the entire script.
Ah I was wrong, sorry. The 2.3.2 file does correspond with that error on that line. I must have looked at something else by mistake.
However, the Error message suggests that there is no field found, which doesn't make sense with the code above.
Is that the full unmodified file?
Allan