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

Getting Notice: Trying to access array offset on value of type null in nginx1.17.9\nginx-1.17.9\faqs\qa-include\pages\question-view.php on line 1131

Q2A version: 1.8.3
by
+3
Ask yourself "What am I asking?".

1 Answer

+2 votes
by
selected by
 
Best answer

In PHP 7.4 they have changed the way to report this, if you use PHP 7.3 this notice is not shown.

Use PHP's @ control operator to hide it.

Change line 1131 as follows:

isset($in['notify']) ? $in['notify'] : qa_opt('notify_users_default'), $in['email'], @$errors['email'], $prefix);

to

isset($in['notify']) ? $in['notify'] : qa_opt('notify_users_default'), @$in['email'], @$errors['email'], $prefix);
...