MyBB Community Forums

Full Version: PHP Fatal error:  Uncaught Error: Object of class captcha could not be converted...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[STDERR] PHP Fatal error:  Uncaught Error: Object of class captcha could not be converted to string in /home/me/domains/myanonymizedsite.com/public_html/member.php(1241) : eval()'d code:44\nStack trace:\n#0 /home/me/domains/myanonymizedsite.com/public_html/member.php(1241): eval()\n#1 {main}\n  thrown in /home/me/domains/myanonymizedsite.com/public_html/member.php(1241) : eval()'d code on line 44\n

these errors appear on newly upgraded 1.6 to 1.8.38 when i confirm that i agree the rules to register on the forum and i expect to be taken to a registration form. I end up on a blank page http://myanonymizedsite.com/member.php and receiving quoted error in the error_log file.
While the dev. console showing:

POST
http://myanonymizedsite.com/member.php
Status
500
Internal Server Error
VersionHTTP/1.1
Transferred1.12 kB (0 B size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest

When i redirect to a HTTPS: some content faisl loading/is blocked as a mxied content, despite my .htaccess file has no CSP policy and no file contains "Content-Security-Policy".

full file: member.php

I am using older template gZe-Style-Minecraft. My idea was to reupload member.php file from original package (not helped, is the same), rename captcha related plugin, but i already have all related renamed to "*.php_", disabling all plugins via admin panel, does not help either.

UPDATE: page loaded when i have disabled any of the captcha methods inside forum settings, General configuration: "CAPTCHA Images for Registration & Posting". I had default mybb captcha and hcaptcha, neither one worked.
my answer applies to this topic and your second: https://community.mybb.com/thread-241361.html

Quote:I am using older template gZe-Style-Minecraft.

That won't work with the 1.6 style and the 1.8 board. That will lead to many more problems than you have found so far.
Your templates and your theme (CSS) are completely outdated and no longer fit. Find a current style that is still maintained (last update no more than three months ago)

please give a valid url, so we can help you much better
(2024-07-07, 01:02 PM)bv64 Wrote: [ -> ]Find a current style that is still maintained

Thanks, I think that downloading and installing new style worked to get rid of the error and i can now use registration form and see no error.
I wish mybb have reported more useful error so even a layman like me understand that the problem is in the style. But maybe this can not be improved.