MyBB Community Forums

Full Version: Error 500 after registration (using Captchas)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
People can't register on the site because they are getting an 500 error when redirected to the members.php page after registration.

It doesn't seem to have anything to do with the plugins, because i disabled them one by one and neither has an issue.
There doesn't seem to be anything in the php error log, the only logs i find to be broken are the redirect ones.

Is there a thing i might be doing wrong?


Last 5 lines of the redirection errors:
[Wed Aug 02 12:33:16.626331 2017] [:error] [pid 2147] [client 86.121.157.124:56278] PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /var/www/html/forums/inc/class_captcha.php:345\nStack trace:\n#0 /var/www/html/forums/member.php(250): captcha->validate_captcha()\n#1 {main}\n  thrown in /var/www/html/forums/inc/class_captcha.php on line 345, referer: https://www.hellgame.org/forums/member.php
[Wed Aug 02 12:35:14.401810 2017] [:error] [pid 2147] [client 86.121.157.124:56301] PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /var/www/html/forums/inc/class_captcha.php:345\nStack trace:\n#0 /var/www/html/forums/member.php(250): captcha->validate_captcha()\n#1 {main}\n  thrown in /var/www/html/forums/inc/class_captcha.php on line 345, referer: https://www.hellgame.org/forums/member.php
[Wed Aug 02 12:37:41.814347 2017] [:error] [pid 13220] [client 79.118.237.97:26753] PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /var/www/html/forums/inc/class_captcha.php:345\nStack trace:\n#0 /var/www/html/forums/member.php(250): captcha->validate_captcha()\n#1 {main}\n  thrown in /var/www/html/forums/inc/class_captcha.php on line 345, referer: https://www.hellgame.org/forums/member.php
[Wed Aug 02 12:40:49.706781 2017] [:error] [pid 13361] [client 86.124.190.248:54518] PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /var/www/html/forums/inc/class_captcha.php:345\nStack trace:\n#0 /var/www/html/forums/member.php(250): captcha->validate_captcha()\n#1 {main}\n  thrown in /var/www/html/forums/inc/class_captcha.php on line 345, referer: https://www.hellgame.org/forums/member.php
[Wed Aug 02 12:41:24.680443 2017] [:error] [pid 13220] [client 86.124.190.248:4103] PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /var/www/html/forums/inc/class_captcha.php:345\nStack trace:\n#0 /var/www/html/forums/member.php(250): captcha->validate_captcha()\n#1 {main}\n  thrown in /var/www/html/forums/inc/class_captcha.php on line 345, referer: https://www.hellgame.org/forums/member.php
Other data about the forum:
Link: www.hellgame.org/forums
MyBB version : 1.8.12
PHP version: 7.0.21
Can you run the file varification in your acp to check that your member.php is in original shape.
https://i.gyazo.com/3f03ad5a84772007d8f9...4d288c.png

The only things i have modified are the smilies.

It seems to be something to do with the captcha,as when i disable it,it works just fine.
Any ideas?
I am running into the same issue! 

PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array


Quote:[Sun Mar 04 10:49:25.399123 2018] [:error] [pid 31761] [client xx.xx.xx.xx:23345] PHP Fatal error:  Uncaught Error: Cannot use object of type stdClass as array in /var/www/html/forum/inc/class_captcha.php:348\nStack trace:\n#0 /var/www/html/forum/member.php(250): captcha->validate_captcha()\n#1 {main}\n  thrown in /var/www/html/forum/inc/class_captcha.php on line 348, referer: https://wowgasm-reloaded.org/forum/member.php


Since I never seen any succesful or help message, I am hoping someone can help with this.
My forum worked fine until I moved to another server and PERHAPS have a different php version.
forum admin panel >> Configuration [Settings] >> General Configuration -->
CAPTCHA Images for Registration & Posting

which method is selected & do you have correct keys set for the method ?
(03-04-2018, 10:17 AM).m. Wrote: [ -> ]forum admin panel >> Configuration [Settings] >> General Configuration -->
CAPTCHA Images for Registration & Posting

which method is selected & do you have correct keys set for the method ?

Hello .m.,

Thanks for your response! They were.
While waiting I Tried to upgrade my PHP Version from PHP 7.0.27  to PHP 7.1.14-1 and this seemed to have resolved it.

I also had some plugins not working due to the same issue.


Ask me what it was in 7.0.27? I have no idea. But this resolved it for me.