Problem/Motivation
We're seeing this error on some nodes:
Stack trace :
Warning: var_export does not handle circular references in Drupal\patternkit\PatternFieldProcessorPluginManager->traverseSchema() (line 229 of /modules/contrib/patternkit/src/PatternFieldProcessorPluginManager.php)This notice/warning/error occurs when the block data deviates from what the defined pattern schema allows. This is most likely caused by migrated patterns from D7 that do not align with the latest schemas for those patterns provided.
Proposed resolution
We were able to successfully resolve this issue by replacing the 2 var_export() instances with json_encode() here: https://git.drupalcode.org/project/patternkit/-/blob/9.1.0-beta8/src/Pat...
Issue fork patternkit-3511524
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dhruv.mittal commentedComment #4
dhruv.mittal commentedkindly review
Comment #5
sluceroThe work for this looks good, so I'm going to go ahead and merge it for inclusion in the 1.2 release. Thank you for the contribution!
Comment #7
sluceroMerged for inclusion in the 1.2 release.