All extensions are free now. Because it was coded by Russians.

K2 Filter@Search Module Php 8 error

Please Log in or Create an account to join the conversation.

#
Hi Andrey, I just updated php to 8.0 and K2 filter&Search module broke.
The error:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /plugins/system/k2filter/K2Filter/models/itemlistfilter.php on line 2436

I just downloaded the current version from your website but it did not solve the error.

Can you help? PHP 7.4 is not supported anymore, so 8 is a must

Please Log in or Create an account to join the conversation.

#
Please try to update it from here, we have no any `curly braces` there.
github.com/molotow11/joomla-k2filter

Please Log in or Create an account to join the conversation.

#
Thank youfor your prompt reply and efficient reaction! That worked. But now I get another error whenever I try filtering any parameter:
"0 Attempt to assign property "K2CategoryDisplay" on null"

Please Log in or Create an account to join the conversation.

#
Please try to enable Joomla debug for get full error log.
Otherwise please send me email to This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

#
I am needing to upgrade the search module because of PHP 8.1 and wondered how this discussion ended after it went to private messages? Is it safe to use the github version?

Thanks

Please Log in or Create an account to join the conversation.

#
I can debug it on your site if yo will send me details in email.

Yes, github versions is official now.

Please Log in or Create an account to join the conversation.

#
Thanks, I'll give it a go and let you know if there are any problems.

Please Log in or Create an account to join the conversation.

#
I installed the latest version but got this error when I upgraded to PHP v8.1 and tried to use the filter:

0 count(): Argument #1 ($value) must be of type Countable|array, string given

Any ideas?

Thanks

Please Log in or Create an account to join the conversation.

#
Hello,

We need more details how it can be checked it on your site and full error trace log.
Please email to This email address is being protected from spambots. You need JavaScript enabled to view it.