Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
in Q2A Core by
Here is the notice:

Notice: Undefined index: categoryid in ..../qa-include/qa-page-question-post.php on line 479
Q2A version: 1.6.1

1 Answer

+1 vote

Thanks for this. You should be able to fix it by modifying qa-page-question-post.php as follows:

if (strcmp($in['categoryid'], $question['categoryid']))

... to ...

if (array_key_exists('categoryid', $in) && strcmp($in['categoryid'], $question['categoryid']))

Once you confirm this workrs the fix will be rolled into 1.6.2.

I will try to test it, but what about the index 'categoryid' in the array $question. I think it needs to be checked too?!
No, it should always be there.