- Posts: 7
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Crash on K2 category pages after Joomla 3.7.0 / 3.7.1 update
Crash on K2 category pages after Joomla 3.7.0 / 3.7.1 update
- Simon C
-
Topic Author
- Offline
- New Member
I have been investigating a crash that has been occurring on K2 category pages since updating my site to 3.7.0 and 3.7.1. The error only occurs when Joomla's debug mode is enabled, so it's not an issue for our live sites, but does make like difficult for testing.
The error is:
Exception
Serialization of 'Closure' is not allowed
.../libraries/joomla/cache/controller/callback.php:184
I've tracked the error down to the fact that K2's TableK2Category class extends JTable.
The TableK2Category object is being dumped into the Joomla cache and when debug mode is enabled it includes the PHP call stack. And since Joomla 3.7, this call stack now includes closures, which are crashing the cache controller when it tries to serialise the object.
I have also posted this on Joomla's issue tracker here: github.com/joomla/joomla-cms/issues/16185, and the conclusion in that discussion was that the solution would be to implement Serializable for JTable so that the serialisation can be controlled and exclude the database object (which is what contains the call stack). However I felt it was worth raising with here K2 as well as it would equally be possible for K2 to implement Serializable on TableK2Category or K2Table and tackle it from there.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
We will investigate this for 2.8.0
I will post this on Github so you can track the progress.
Please Log in or Create an account to join the conversation.
- Simon C
-
Topic Author
- Offline
- New Member
- Posts: 7
Do you have an ETA on when 2.8 will be released?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Sandra Lamberg
-
- Offline
- New Member
- Posts: 6
i have the problem that all k2 category content is not shown after the update to joomla 3.7.
the page is not set to debug mode. still no content shown which is quite a serious problem for me and my client because it´s harming his business.
whats your solution?
if i get it right k2 itself does NOT provide technical support. it feels a bit like nobody feels responsible. i´m usually not that impatient but this is serious trouble for me and my client and since there is also no simple way to migrate to another extension like ZOO, i could only undo the update and put the page into security problems. any ideas how to handle that?
kr sandra
Please Log in or Create an account to join the conversation.
- Sandra Lamberg
-
- Offline
- New Member
- Posts: 6
my page is not set to debug mode in global configurations and i still don´t see the k2 category content. do i have to change that somewhere else than in the global configuration?
kr sandra
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Make sure to clear Joomla!'s cache and try to repair your database's tables.
Please Log in or Create an account to join the conversation.
- Sandra Lamberg
-
- Offline
- New Member
- Posts: 6
you just wrote me an email a few minutes ago that k2 doesn´t provide technical support. so i appreciate a lot that you answer here now. i also searched on github for a solution. very complicating. however.
i cleared joomla cache. i deleted expired cache. i checked and repaired the with RSFirewall database check. i cleared browser cache.
still don´t see the content of the categories: www.omanbros.com/support
kr sandra
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This is a zen-tools modules which is provided by a different developer.
We are not affiliated with that module.
K2's default component views www.omanbros.com/neuigkeiten are working as expected. K2 Tools is also working properly.
Is the default K2 module having any issues?
Please Log in or Create an account to join the conversation.
- Sandra Lamberg
-
- Offline
- New Member
- Posts: 6
but what you are saying is, that it is not k2 causing the problem but the zen-tools?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
If K2's default views are working as expected, then you need to address this issue to the module's developer.
Please Log in or Create an account to join the conversation.
- Sandra Lamberg
-
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Crash on K2 category pages after Joomla 3.7.0 / 3.7.1 update