Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
607 views
in Q2A Core by

Notice: Trying to access array offset on value of type null in \q2a\qa-include\qa-base.php(720) : eval()'d code on line 85

Warning: count(): Parameter must be an array or an object that implements Countable in \q2a\qa-include\qa-base.php(720) : eval()'d code on line 86


AH01071: Got error 'PHP message: PHP Notice: Trying to access array offset on value of type null in qa-include/pages/question-view.php on line 434

message: PHP Notice: Trying to access array offset on value of type null in qa-include/pages/question-view.php on line 451

Thanks for you help

1 Answer

0 votes
by
selected by
 
Best answer

Ah dang it. I think the last two notices must be due to the option "close questions with a selected answer" which I didn't test in PHP 7.4. You can fix it by replacing the two lines in qa-include/pages/question-view.php with this:

line 434

        if (isset($closepost['basetype']) && $closepost['basetype'] == 'Q') {

line 451

        } elseif (isset($closepost['type']) && $closepost['type'] == 'NOTE') {

The first two are likely from a plugin, can you try disabling each plugin in turn and see if the notices go away? And let me know which plugin it occurred in.

by
+1
thanks for your prompt help!
The issue has been resolved.

the plugins

1.- Ultimate Widget
2.- Feature question Q2a Market

They are the ones that cause error 85 and 86

Which is out of the core

Thanks for your help!
by
OK great! For those plugins you'll have to contact the authors or report the issue via Github.
by
Tks for you!!!

Good Day!
...