eworkers / K2ForJ4

GNU General Public License v2.0
11 stars 6 forks source link

0 - mysqli object is already closed #29

Closed cmirnow closed 1 year ago

cmirnow commented 1 year ago

Links in K2 article tags and categories don't work:

0 - mysqli object is already closed

Tested on Joomla 3.10.11, php 8.1, K2ForJ4.

eworkers commented 1 year ago

We actually can't verify this, unable to reproduce, but in any case you should be aware that k2 itself is not fully compatible with php8.1 (planned to be from our side) and so Joomla3.

However I to tend think that this somehow related to Joomla rather than k2.

Can you try to change your session handler from DB to file and test again? plus can you enable system debug and maximum error reporting and share the outcome of the issue so we can have a better clue?

Thanks @cmirnow

cmirnow commented 1 year ago

Hi. I was able to reproduce the problem. Live demo: http://cq71437.tw1.ru/index.php/second/itemlist/tag/tag

System Cache: ON - Conservative caching Plugin System - Page Cache: On (but it doesn't seem to matter) All other options are default.

K2ForJ4, Joomla 3.10.11, php 8.1

But indeed, the problem does not reproduce immediately, I had to mess around with it for about 10 minutes. If you have any questions, ask them. I will try to look for an answer.

cache_error

cmirnow commented 1 year ago

It's funny... I tried turning on Joomla debug and the problem disappeared. After disabling debug mode, the problem shows up on a different page: http://cq71437.tw1.ru/index.php/one/itemlist/tag/newtag

cmirnow commented 1 year ago

0 Attempt to assign property "hits" on null

cmirnow commented 1 year ago

...but in any case you should be aware that k2 itself is not fully compatible with php8.1 ...

@eworkers, this error occurs on php 8.0 and 8.1.

eworkers commented 1 year ago

Please check the last push when you can and see if it fixes this issue as well as #31

cmirnow commented 1 year ago

This seems to be completely fixed for Joomla 3.10.11. I quickly tried php 7.4, 8.0, 8.1. But the problem remained on Joomla 4 (php 8.0, 8.1): https://github.com/eworkers/K2ForJ4/issues/31