pimcore_iterate_block error after updating non-pimcore packages #17173
alasdair-shields
started this conversation in
Admin-Ui-Classic-Bundle
Replies: 2 comments 1 reply
-
did you update twig? what version do you use? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The twig-related updates were:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This refers to Pimcore 10.6.9 - I don't know if other versions are affected however I'm mentioning this in case others are affected.
Yesterday (2024-06-12) I ran composer update. Pimcore itself was NOT updated in any way - it was already at 10.6.9. The upadate affected only supporting packages.
After the update, if a document containing pimcore_iterate_block was saved, on save the data got corrupted. Any attempt to re-open the document would result in a "duplicate editable" warning. We confirmed this by testing with the sample code from the documentation.
In the documents_editables table the 'data' value for the json 'gridblock' entry had an extra entry. For example,
a:3:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"3";} #correct
a:4:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"3";i:1;s:1:"2";} #error - note that i:1;s:1:"2"; appears twice.
I haven't been able to trace what's causing the problem. Reversing the composer update fixed the issue however I had to manually update the corrupted entries in the database before affected documents could be re-opened.
Beta Was this translation helpful? Give feedback.
All reactions