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

Command icon 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

firewaller created an issue. See original summary.

dhruv.mittal’s picture

Assigned: Unassigned » dhruv.mittal

dhruv.mittal’s picture

Assigned: dhruv.mittal » Unassigned
Status: Active » Needs review

kindly review

slucero’s picture

Version: 9.1.0-beta8 » 9.1.1
Status: Needs review » Reviewed & tested by the community
Parent issue: » #3506209: Patternkit 9.1.2 Release Plan

The 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!

  • slucero committed 026ac735 on 9.1.x authored by dhruv.mittal
    Issue #3511524 by dhruv.mittal, firewaller: Resolve "Warning: var_export...
slucero’s picture

Status: Reviewed & tested by the community » Fixed

Merged for inclusion in the 1.2 release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.