Sortables Captcha

Error messages in phpBB debug - Sortables Captcha

Error messages in phpBB debug

by Darloup » Sun Feb 14, 2021 12:42 am

Hello,

After having installed this extension and running a phpBB Debug (thanks to RMcGirr83!), it shows two errors:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/derky/sortablescaptcha/captcha/sortables.php on line 124: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/ext/derky/sortablescaptcha/captcha/sortables.php on line 325: count(): Parameter must be an array or an object that implements Countable
Can these be fixed please?

Regards,

Henry
Last edited by Darloup on Wed Feb 17, 2021 12:52 am
User avatar
Darloup
Registered User
Posts: 368
Joined: Sun Jun 27, 2010 8:59 pm
Location: Barranquilla (Colombia)
Name: Henry

Re: Error messaages in phpBB debug

by RMcGirr83 » Sun Feb 14, 2021 12:45 pm

That error message is due to the plug in not being configured correctly or items missing from the database table for the extension. Are there questions and answers configured in the ACP for the extension?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22071
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Error messaages in phpBB debug

by Derky » Sun Feb 14, 2021 10:36 pm

Yeah this happens when you don't have any questions set for the used language. When trying to fallback to the boards default language this error occurs on newer PHP versions. This will be fixed in the next version, until then make sure to configure questions for all languages.
User avatar
Derky
Development Team Member
Development Team Member
Posts: 4882
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands

Re: Error messaages in phpBB debug

by Darloup » Sun Feb 14, 2021 11:43 pm

Hello RMcGirr83 and Derky!

I have 3 languages on my board.

I have now configured the questions for all 3 languages (which I should have done before :cry: ), and the error message in phpBB debug has now disappeared.

Well done to both of you!
User avatar
Darloup
Registered User
Posts: 368
Joined: Sun Jun 27, 2010 8:59 pm
Location: Barranquilla (Colombia)
Name: Henry