Closed (fixed)
Project:
Block Class
Version:
4.0.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Apr 2026 at 09:14 UTC
Updated:
21 May 2026 at 21:55 UTC
Jump to comment: Most recent
Comments
Comment #2
umac_de commentedReplacing
// Get the array from JSON.
$block_classes_stored = Json::decode($block_classes_stored);
with
// Get the array from JSON if string.
if (is_string($block_classes_stored)) {
$block_classes_stored = Json::decode($block_classes_stored);
}
solved it for me.
Comment #4
dydave commentedThanks @umac_de for raising this issue and providing a solution!
This is actually a duplicate of #3513350: Hook block_class_update_20004 crashes at json_decode.
For now, let's keep this one Fixed and try making code changes in the other issue which is still open.
Thanks again for your feedback and help testing!