Keyword

K2 v2.11 does not work on my lepesradio.hu website if I update to PHP8.2!

  • Hollo Robert
  • Hollo Robert's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 2 weeks ago #181153 by Hollo Robert
Hello!

The latest version of K2 v 2.11 does not work under PHP8.2!
Why is this possible?
My site , the site gives a white page and only says that:
0 ERROR0.
I use Joomla 3.10.12, because according to my experience, J4 has been transformed quite a bit, moreover, K2 does not even run under it and I stick to K2!
Curiosity:
If I transfer the databases to a freshly installed Joomla 3.10.12 system after installing K2, the page appears, but if I click on the K2 articles and contents (from the main page, for example, via the K2 content module), it also gives 0 error 0 error .
But Joomla works!
I also tried what I read on the forum, that if (count( lines are rewritten to if (isset( lines).
But that didn't help either!
Another observation is that I am using the Radio Wave template and without K2 on my other site , but on the , if it is turned on under PHP8.2, it gives a 500 error on the main page and on all subpages.
The interesting thing is that k2 content modules that do not use extra fields do not cause a 500 error on the page, only modules that use extra fields do.
, Our employees.
If I turn off these modules, the Joomla page is immediately available, but the appearance of the k2 content has not yet been resolved.
What is the solution so that I can update the storage under the
I look forward to your reply as soon as possible and thank you in advance for your help!
Regards: Hollo Robert
From Hungary!

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

More
7 months 2 weeks ago #181156 by Boskiz
Hello,
My site uses PHP version 8.2.9, Joomla 3.10.12, and K2 v2.11.20230505. I do not detect any errors, and I also checked the error log before responding to you. There is nothing to detect here either.

Bye Bye
Max

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

  • Tomasz Bieliński
  • Tomasz Bieliński's Avatar
  • Offline
  • Senior Member
More
7 months 1 week ago #181182 by Tomasz Bieliński
In my case, it was the same. I had to update K2 template to repair it. Also, I had an issue with JCE editor - it has to be updated to the newest version, otherwise, it blocks the entry to the admin. Hope that helps

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

  • Hollo Robert
  • Hollo Robert's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 1 week ago #181186 by Hollo Robert
I do whatever, all components, modules, plugins are up to date, the error still exists:
hirdetnijo.eu/lr/index.php/component/k2/item/1-brobahir

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

  • Hollo Robert
  • Hollo Robert's Avatar Topic Author
  • Offline
  • Junior Member
More
7 months 6 days ago #181189 by Hollo Robert
Hello!
I think there will be a problem with Joomla's Radio Wave template!
I haven't tried it with a different template yet, but I use the ADS Manager component on the hirtennijo.eu page with this template from my J3.10.12 pages, and when I go there as a user, I get an ad and the same error message.
This freaking J3/php8.2!
Can someone explain this to me with concrete examples?
Because I'm not a professional php programmer, I'm just an amateur, but I'm aware that something is outdated in the case of the J3.10.12 / Radio Wave template.
Maybe someone knows a specific solution or help?
In K2, I get the same error in the case of a blank page with the news displayed, and in the case of a saved page. :(
I don't know what to do anymore.
On Github, I downloaded the .php files needed to update to php 8 one by one, and replaced them manually.
In the k2/Joomla3.10.12 Radio Wave combination, however, this error persists!
If someone can solve the problem for me, I will gladly give them individual ftp access, just let it be solved, because it's damn annoying!
Thanks in advance for your help!
Best regards.: Robi

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

  • Hollo Robert
  • Hollo Robert's Avatar Topic Author
  • Offline
  • Junior Member
More
6 months 4 weeks ago #181204 by Hollo Robert
Hello!
Well PHP 8.0 K2 V2.11, Radio Wave template and the
hirdetnijo.eu/lrteszt/
link from the K2 Content module, if I click on the created element, it still gives the same error...
I might switch from K2 to another news manager, although I've already really liked the RadioWave template and K2, and I wouldn't want to change it.
I would like to ask the K2 developers, when can RadioWave and K2 be updated to Joomla 4.x?
I understand that it's complicated, but I'm a little disappointed because my current content is in K2, I also like J3, but I can't use it under PHP 8.0, 8.1, or 8.2.
Only under PHP 7.4 or older.
Will there be any solution for this in the future?
Because I can't solve it and I don't want to deal with it anymore, I hope some additional update will fix the errors!!!
Thank you in advance for your answers!
Best regards.: Robert

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

More
6 months 4 weeks ago #181205 by JoomlaWorks
Search your template (and overrides) for the use of the "count()" function. Then solve the errors like so:

www.joomlaworks.net/forum/k2-en/59481-error-message-after-upgrade-to-php8-0-fpm#178585

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Hollo Robert
  • Hollo Robert's Avatar Topic Author
  • Offline
  • Junior Member
More
6 months 4 weeks ago #181207 by Hollo Robert
Hi Fotis!
You write:
"Search your template (and overrides) for the use of the "count()" function. Then solve the errors like so:"
How do I override the "count()" function in the Template?
Can I get some instructions for overriding the count() function in a template?
I've never done an override in a template before.
Thank you in advance for your help!
Best regards.: Robert

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

  • Hollo Robert
  • Hollo Robert's Avatar Topic Author
  • Offline
  • Junior Member
More
6 months 3 weeks ago #181209 by Hollo Robert
The tip didn't work Fotis!
I created the overrides in the RadioWave template, then modified the if (count() lines
if(isset($items) && count(
to lines.
The result remains the same!
hirdetnijo.eu/lrteszt/index.php?option=com_k2&view=item&id=1:brobahir
You can download and view the overwritten and modified file here:
hirdetnijo.eu/k2rewrite.zip

What have I done wrong?
Would you look at it?
It would be very important for me to correct these mistakes!
Thanks in advance!
Best regards.: Robert

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

  • Hollo Robert
  • Hollo Robert's Avatar Topic Author
  • Offline
  • Junior Member
More
6 months 4 days ago #181264 by Hollo Robert
Hello!
Please help me!
I have already given up on the solution myself, please help me solve the problem!
I tried everything I could!
J3.10.12 all extensions, components, modules and plugins are the latest.
Installed:
Radio Wave template, K2 latest and error when I click on the k2 element on the page:
Still 0Error0
count(): Argument #1 ($value) must be of type Countable|array, null given
There is still no solution for this error!
At least in my case, because:
I tried everything I found here on the Joomla Works forum.
I rewrote the count in the php, as I think Fotis suggested, to if (isset), where I found a line related to count in the .php codes within the K2 component, but it did not solve the problem.
I downloaded the modified files for php 8 from the github site and replaced them, but nothing changed.
The error also occurs in PHP 8.0, PHP 8.1 and PHP 8.2.
In the case of PHP 7.4.33, the page does not throw an error, but PHP 7.4 has already become obsolete.
There is no problem with the template, because on PHP 8.0 it currently works perfectly on PHP 8.1 and PHP 8.2 without K2!
Please help, or we will eliminate this problem with a K2 update!
Thank you in advance for your quick answers!
I hope someone can solve this problem for me, because if not I will be forced to part with K2!
And I don't want that!
Thank you in advance and I look forward to your reply as soon as possible!
Best regards.: Robert

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


Powered by Kunena Forum