Warning: The author of this contribution does not provide support for it anymore.

Sortables CAPTCHA Plugin

Error 500 - Sortables CAPTCHA Plugin

Error 500

by mwh65 » Sun Dec 14, 2014 1:05 pm

I've just installed this mod but for some reason I get an Error 500 when clicking on "Spambot countermeasures" in the MCP. phpBB version is 3.0.12 ...

[/PHP Fatal error: Cannot make static method phpbb_captcha_qa::get_instance() non static in class phpbb_captcha_sortables in <hidden>/forums/includes/captcha/plugins/phpbb_captcha_sortables_plugin.php on line 1160, referer: http://www.wgtls.co.uk/forums/adm/index ... =main&sid=<hidden>
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by mwh65 » Fri Dec 26, 2014 11:35 am

No-one ?
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by Derky » Fri Dec 26, 2014 3:09 pm

1. Which version of PHP are you running?

2. If you remove the files for the Sortables Captcha Plugin and select the "Q&A" Captcha, do you also get an error?
Since I found this topic viewtopic.php?f=46&t=2255951 which said it could be an incomplete update.
User avatar
Derky
Development Team Member
Development Team Member
Posts: 4872
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: Error 500

by mwh65 » Fri Dec 26, 2014 5:32 pm

1. PHP version is 5.4.35 and phpBB versions is 3.0.12

2. My site was already running "Q&A Captcha" before I added the "Sortables Captcha Plugin" and is now back to running "Q&A Captcha" successfully.

Could this have anything to do with my site running PHP strict ?
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by Derky » Fri Dec 26, 2014 8:28 pm

mwh65 wrote:Could this have anything to do with my site running PHP strict ?
Yeah, could you try turning this off?
User avatar
Derky
Development Team Member
Development Team Member
Posts: 4872
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: Error 500

by mwh65 » Sat Dec 27, 2014 12:34 pm

Sorted.

It was indeed an incomplete update and I can now access "Spambot countermeasures" with your mod installed.

However the upshot of doing this has caused more errors in the logs which I understood were fixed in 3.0.12 ...

Code: Select all

[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  Non-static method phpbb_captcha_factory::get_captcha_types() should not be called statically, assuming $this from incompatible context in /usr/local/www/apache22/data/forums/includes/acp/acp_captcha.php on line 33, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_gd::is_available() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 83, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_gd::get_name() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 85, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_gd_wave::is_available() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 83, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_gd_wave::get_name() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 85, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_nogd::is_available() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 83, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_nogd::get_name() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 85, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_qa::is_available() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 83, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  Non-static method phpbb_captcha_qa::is_installed() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/plugins/phpbb_captcha_qa_plugin.php on line 135, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_qa::get_name() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 85, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_recaptcha::is_available() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 83, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_recaptcha::get_name() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 85, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_sortables::is_available() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 83, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  Non-static method phpbb_captcha_sortables::is_installed() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/plugins/phpbb_captcha_sortables_plugin.php on line 172, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_sortables::get_name() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 89, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  Non-static method phpbb_captcha_factory::get_instance() should not be called statically, assuming $this from incompatible context in /usr/local/www/apache22/data/forums/includes/acp/acp_captcha.php on line 116, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1
[Sat Dec 27 12:32:07 2014] [error] [client 95.172.236.183] PHP Strict Standards:  call_user_func() expects parameter 1 to be a valid callback, non-static method phpbb_captcha_qa::get_instance() should not be called statically in /usr/local/www/apache22/data/forums/includes/captcha/captcha_factory.php on line 38, referer: http://www.wgtls.co.uk/forums/adm/index.php?sid=f2936e11d91891706cfb690e0767e268&i=1


All of those files listed I checked and are the correct untouched versions.
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by Derky » Sat Dec 27, 2014 12:46 pm

Yeah I think that these strict error have only been fixed in phpBB 3.1 and they will leave it like this for 3.0. You could open a support topic for it if you wonder though.
User avatar
Derky
Development Team Member
Development Team Member
Posts: 4872
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: Error 500

by mwh65 » Sat Dec 27, 2014 1:18 pm

Interestingly the common.php file and includes/startup.php were not the 3.0.12 versions. I've updated them both and the errors are no longer shown. Of course I do not know if they are being supressed or have been cleared up.
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by mwh65 » Sat Dec 27, 2014 1:42 pm

Just set it up and there seems to be an empty option in the left column. I only added 3 options so no clue where the empty one has come from.

captcha.png
captcha.png (6.8 KiB) Viewed 782 times
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by Derky » Sat Dec 27, 2014 1:58 pm

Perhaps an enter, try to edit and save the question again.
User avatar
Derky
Development Team Member
Development Team Member
Posts: 4872
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: Error 500

by mwh65 » Sat Dec 27, 2014 3:22 pm

Unfortunately it is still the same. Added a new question then deleted the original question. Recreated the question. Tried in Firefox and Maxthon and also the blank one doesn't remain in the same order every time which may be deliberate for all entries of course ...

captcha2.png
captcha2.png (7.93 KiB) Viewed 843 times
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by mwh65 » Sat Dec 27, 2014 3:36 pm

Oops sorted. I had no option shown in the right column hence it listed a space in the left column as that is where I told it to put them all.
mwh65
Registered User
Posts: 209
Joined: Sat Jul 12, 2003 11:10 pm
Contact:

Re: Error 500

by Derky » Sat Dec 27, 2014 3:50 pm

Oh hehe. :P
User avatar
Derky
Development Team Member
Development Team Member
Posts: 4872
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact: