- π·πΊRussia andrewlab
The same error after upgrade to drupal 10. Problem has gone after addding access check to faq_uninstall() and reinstalling the module.
function faq_uninstall(){ $info = NodeType::load('faq'); if ($info) { $info->delete(); field_purge_batch(500); $nids = \Drupal::entityQuery('node') ->accessCheck(false) ->condition('type', 'faq') ->execute(); foreach ($nids as $nid) { $faqNode = Node::load($nid); $faqNode->delete(); } } }