**In the Administration Panel, under Content section , there is a sub section Open Questions,there is a list of Questions when I click Answer Question, enter an answer, and then click Save, the answer is not saved.
While inspecting the issue, the browser console displays the following error:
Uncaught (in promise) SyntaxError: Unexpected token '<', "
phpMyF"... is not valid JSON
The corresponding network request is:**
POST /admin/api/faq/create
Status Code: 500 Internal Server Error
The server response contains the following errors:
Error: Undefined property: stdClass::$active
at line 104 in FaqController.php
and
phpMyFAQ\Entity\FaqEntity::setSticky():
Argument #1 ($sticky) must be of type bool, string given,
called in FaqController.php on line 130
The stack trace indicates that the request is passing the value "on" as a string to setSticky(), whereas the method expects a boolean value (true/false). Additionally, the controller attempts to access the active property, which is not defined in the request payload, resulting in an undefined property error
**In the Administration Panel, under Content section , there is a sub section Open Questions,there is a list of Questions when I click Answer Question, enter an answer, and then click Save, the answer is not saved.
While inspecting the issue, the browser console displays the following error:
Uncaught (in promise) SyntaxError: Unexpected token '<', "
phpMyF"... is not valid JSON
The corresponding network request is:**
POST /admin/api/faq/create
Status Code: 500 Internal Server Error
The server response contains the following errors:
Error: Undefined property: stdClass::$active
at line 104 in FaqController.php
and
phpMyFAQ\Entity\FaqEntity::setSticky():
Argument #1 ($sticky) must be of type bool, string given,
called in FaqController.php on line 130
The stack trace indicates that the request is passing the value "on" as a string to setSticky(), whereas the method expects a boolean value (true/false). Additionally, the controller attempts to access the active property, which is not defined in the request payload, resulting in an undefined property error