Import breaks when no menu's have been exported (patch available)

Created on 3 May 2023, over 1 year ago
Updated 17 October 2023, over 1 year ago

Problem/Motivation

When no menu has been exported, there's no config and this situation breaks the import with a fatal error:

Error Output:                                                                                                                                      
  ================                                                                                                                                   
   [notice] Menu links import started                                                                                                                
   [notice] Using "safe" style for menu links import                                                                                                 
   [error]  TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 370 of <...>

Steps to reproduce

Export no menu, try to import the menu's or all.

Proposed resolution

See attached patch

Remaining tasks

Testing by community

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands markwittens

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024