q2a / question2answer

Question2Answer is a free and open source platform for Q&A sites, running on PHP/MySQL.
http://www.question2answer.org/
GNU General Public License v3.0
1.63k stars 629 forks source link

PHP warning when using CAPTCHA #930

Closed ghost closed 1 year ago

ghost commented 2 years ago

PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /question2answer/qa-include/app/captcha.php on line 85

Using https://github.com/ChrisNeedSpace/q2a-captcha-antibot for the captcha on my site.

pupi1985 commented 2 years ago

This is odd. What version/branch are you using exactly?

Can copy/paste the content of the first 90 lines of your qa-include/pages/register.php file?

ghost commented 2 years ago

This is odd. What version/branch are you using exactly?

Using the bugfix branch with the latest commit.

Can copy/paste the content of the first 90 lines of your qa-include/pages/register.php file?

It's exactly the same as in the repo, no changes.

Using PHP 7.3 btw.

pupi1985 commented 2 years ago

I haven't been able to replicate the warning in those conditions. Can you provide step by step instructions to do so?