I had this error when trying to import some new menu-items. It may have to do with malformed data on my end, but with a couple simple changes I was able to get it to run. Including a patch.

Comments

dotist created an issue. See original summary.

d0t15t’s picture

StatusFileSize
new1.22 KB
ayrmax’s picture

StatusFileSize
new1.22 KB

Your patch fixes the issue but still produces a notice because we still access array index 0 even though there is none:

$prepared_field_data = EntityShareUtility::prepareData($field_data['data'] ?? [])[0];

I updated the patch to fix the notice.

jurgenhaas’s picture

Version: 1.1.x-dev » 1.2.x-dev
Status: Active » Fixed

This got fixed in the 1.2.0 release.

  • jurgenhaas committed f7596a2c on 1.2.x
    Issue #3284649 by Ayrmax: Breaks when importing menu items
    

Status: Fixed » Closed (fixed)

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