Bug
Error messages in logs:
Trying to access array offset on value of type null in /qa-include/app/votes.php on line 47
Trying to access array offset on value of type null in /qa-include/app/votes.php on line 50
Trying to access array offset on value of type null in /qa-include/app/votes.php on line 54
Obviously someone posted something that had an empty post somehow (post null).
To fix this the function qa_vote_error_html($post, $vote, $userid, $topage) should check if post isset.
Bug Error messages in logs: Trying to access array offset on value of type null in /qa-include/app/votes.php on line 47 Trying to access array offset on value of type null in /qa-include/app/votes.php on line 50 Trying to access array offset on value of type null in /qa-include/app/votes.php on line 54
Obviously someone posted something that had an empty post somehow (post null).
To fix this the
function qa_vote_error_html($post, $vote, $userid, $topage)
should check if post isset.https://github.com/q2a/question2answer/blob/bugfix/qa-include/app/votes.php#L47