? bug PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Denitz
Denitz
1 Apr 2023

Pull Request for Issue #38782.

Summary of Changes

  1. Caching of Articles Categories module fails because CategoryNode tries to serialize Categories with database layer instance which is not technically serialazable due to presence of Closure and i.e. PDOStatement objects.
    We need to allow CategoryNode serialization.

Testing Instructions

  1. Enable Joomla caching.
  2. Create Articles Categories module to display lots of categories.
  3. Browse website as a guest.

Actual result BEFORE applying this Pull Request

See serialization error.

Expected result AFTER applying this Pull Request

No errors, module is cached.

Link to documentations

No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed

ae01633 1 Apr 2023 avatar fix
avatar joomla-cms-bot joomla-cms-bot - change - 1 Apr 2023
Category Front End com_content Libraries Modules
avatar Denitz Denitz - open - 1 Apr 2023
avatar Denitz Denitz - change - 1 Apr 2023
Status New Pending
avatar Denitz Denitz - change - 1 Apr 2023
Labels Added: PR-4.3-dev
avatar joomdonation
joomdonation - comment - 1 Apr 2023

@Denitz Many thanks for your work. May I suggest splitting your PR into two smaller ones

  • The bug fix in one PR
  • The improvement in another PR

That would make it easier to test. I think the bug fix could go into 4.3 and the improvement could go to 4.4. As the current state of 4.3, Release Lead might not want to take the risk of too many changes.

avatar Denitz Denitz - change - 1 Apr 2023
The description was changed
avatar Denitz Denitz - edited - 1 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 1 Apr 2023
Category Front End com_content Libraries Modules Libraries Modules Front End
avatar Denitz Denitz - change - 1 Apr 2023
Title
Fix mod_articles_categories caching, allow CategoryNode serialization, speed-up categories routing
Fix mod_articles_categories caching, allow CategoryNode serialization
avatar Denitz Denitz - edited - 1 Apr 2023
avatar Denitz Denitz - change - 1 Apr 2023
The description was changed
avatar Denitz Denitz - edited - 1 Apr 2023
avatar Denitz
Denitz - comment - 1 Apr 2023

@joomdonation Done, preload PR is #40279

avatar joomdonation
joomdonation - comment - 1 Apr 2023

Great, thanks @Denitz. We will test this PR ASAP.

avatar joomdonation joomdonation - test_item - 1 Apr 2023 - Tested successfully
avatar joomdonation
joomdonation - comment - 1 Apr 2023

I have tested this item successfully on 85292dd

Works well for both cache on and off. Also tried to test the menu items which uses categories and it is still working well.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40275.

avatar alikon alikon - test_item - 2 Apr 2023 - Tested successfully
avatar alikon
alikon - comment - 2 Apr 2023

I have tested this item successfully on 85292dd


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40275.

avatar alikon alikon - change - 2 Apr 2023
Status Pending Ready to Commit
avatar alikon
alikon - comment - 2 Apr 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40275.

avatar Vegaturk
Vegaturk - comment - 19 Apr 2023

Hi Denitz, these fixes seem to have been committed to version 4.3.0 I updated to version 4.3.0 my module cache was disabled, I activated it again and it keeps returning the same error "0 Serialization of 'Closure' is not allowed"

avatar obuisard obuisard - change - 5 May 2023
Labels Added: ? bug
avatar obuisard obuisard - change - 5 May 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-05-05 22:56:57
Closed_By obuisard
avatar obuisard obuisard - close - 5 May 2023
avatar obuisard obuisard - merge - 5 May 2023
avatar obuisard
obuisard - comment - 5 May 2023

Thank you @Denitz for this PR!

Add a Comment

Login with GitHub to post a comment