Menu link indexing still breaks when parent column is filled with none existing value
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2956376. --> Reported by: [tvoesenek](https://www.drupal.org/user/3499831) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The changes in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/menu_entity_index/-/work_items/2902303" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/menu_entity_index/-/work_items/2902303</a></span> cause the menu link indexing to break again, because non-existing parent links are attempted to be instantiated:</p> <pre>The website encountered an unexpected error. Please try again later.Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID 'menu_link_content:cfadab44-d046-480a-badc-94452ed008f4' was not found. in Drupal\Core\Menu\MenuLinkManager-&gt;getDefinition() (line 207 of core/lib/Drupal/Core/Menu/MenuLinkManager.php). Drupal\Core\Plugin\Factory\ContainerFactory-&gt;createInstance('menu_link_content:cfadab44-d046-480a-badc-94452ed008f4', Array) (Line: 234)<br>Drupal\Core\Menu\MenuLinkManager-&gt;createInstance('menu_link_content:cfadab44-d046-480a-badc-94452ed008f4') (Line: 485)</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Check if the definition of the parent menu link content plugin exists before creating an instance</p> > Related issue: [Issue #2902303](https://www.drupal.org/node/2902303) > Related issue: [Issue #2927190](https://www.drupal.org/node/2927190)
issue