Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
69 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
+2
Ask yourself "What am I asking?".

1 Answer

+1 vote
by

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);
...