MetaModels / core

MetaModels Core Module
GNU Lesser General Public License v3.0
96 stars 42 forks source link

Error to open the Contao backend #1381

Closed zonky2 closed 4 years ago

zonky2 commented 4 years ago

Error to open the Contao backend

MM 2.2 / C 4.9

ErrorException:
Warning: array_flip() expects parameter 1 to be array, bool given

  at /home/xxx/contao4_2020/vendor/metamodels/core/src/CoreBundle/Contao/Hooks/RegisterBackendNavigation.php:182
  at MetaModels\CoreBundle\Contao\Hooks\RegisterBackendNavigation->extractUserRights(object(UsernamePasswordToken))
     (/home/xxx/contao4_2020/vendor/metamodels/core/src/CoreBundle/Contao/Hooks/RegisterBackendNavigation.php:114)
  at MetaModels\CoreBundle\Contao\Hooks\RegisterBackendNavigation->onGetUserNavigation(array('content' => array('class' => 'group-content node-expanded', 'title' => 'Bereich schließen', 'label' => 'Inhalte', 'href' => '/contao?mtg=content&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('article' => array('tables' => array('tl_article', 'tl_content'), 'table' => array('Contao\\CoreBundle\\Controller\\BackendCsvImportController', 'importTableWizardAction'), 'list' => array('Contao\\CoreBundle\\Controller\\BackendCsvImportController', 'importListWizardAction'), 'title' => 'Artikel und Inhaltselemente verwalten', 'label' => 'Artikel', 'class' => 'navigation article', 'href' => '/contao?do=article&ref=RTZChjNc', 'isActive' => false), 'form' => array('tables' => array('tl_form', 'tl_form_field', 'tl_lead_export'), 'option' => array('Contao\\CoreBundle\\Controller\\BackendCsvImportController', 'importOptionWizardAction'), 'title' => 'Individuelle Formulare gestalten und deren Daten speichern oder versenden', 'label' => 'Formulare', 'class' => 'navigation form', 'href' => '/contao?do=form&ref=RTZChjNc', 'isActive' => false), 'faq' => array('tables' => array('tl_faq_category', 'tl_faq'), 'title' => 'Häufig gestellte Fragen verwalten', 'label' => 'FAQ', 'class' => 'navigation faq', 'href' => '/contao?do=faq&ref=RTZChjNc', 'isActive' => false), 'news' => array('tables' => array('tl_news_archive', 'tl_news', 'tl_news_feed', 'tl_content', 'tl_news_category'), 'table' => array('Contao\\TableWizard', 'importTable'), 'list' => array('Contao\\ListWizard', 'importList'), 'title' => 'Nachrichten verwalten und als RSS- oder Atom-Feed exportieren', 'label' => 'Nachrichten', 'class' => 'navigation news', 'href' => '/contao?do=news&ref=RTZChjNc', 'isActive' => false), 'newsletter' => array('tables' => array('tl_newsletter_channel', 'tl_newsletter', 'tl_newsletter_recipients'), 'send' => array('Contao\\Newsletter', 'send'), 'import' => array('Contao\\Newsletter', 'importRecipients'), 'stylesheet' => 'bundles/contaonewsletter/newsletter.min.css', 'title' => 'Abonnements verwalten und Newsletter versenden', 'label' => 'Newsletter', 'class' => 'navigation newsletter', 'href' => '/contao?do=newsletter&ref=RTZChjNc', 'isActive' => false), 'dlh_googlemaps' => array('tables' => array('tl_dlh_googlemaps', 'tl_dlh_googlemaps_elements'), 'icon' => 'system/modules/dlh_googlemaps/assets/icon.gif', 'stylesheet' => 'system/modules/dlh_googlemaps/assets/backend.css', 'list' => array('dlhCoordsWizard', 'importList'), 'title' => 'Hier können Sie Ihre Google Maps verwalten', 'label' => 'Google Maps', 'class' => 'navigation dlh_googlemaps', 'href' => '/contao?do=dlh_googlemaps&ref=RTZChjNc', 'isActive' => false), 'calendar' => array('tables' => array('tl_calendar', 'tl_calendar_events', 'tl_calendar_feed', 'tl_content'), 'table' => array('Contao\\TableWizard', 'importTable'), 'list' => array('Contao\\ListWizard', 'importList'), 'title' => 'Events verwalten und als Kalender oder Eventliste ausgeben', 'label' => 'Events', 'class' => 'navigation calendar', 'href' => '/contao?do=calendar&ref=RTZChjNc', 'isActive' => false), 'comments' => array('tables' => array('tl_comments'), 'stylesheet' => 'bundles/contaocomments/comments.min.css', 'title' => 'Kommentare bzw. Gästebuch-Einträge verwalten', 'label' => 'Kommentare', 'class' => 'navigation comments', 'href' => '/contao?do=comments&ref=RTZChjNc', 'isActive' => false))), 'leads' => array('class' => 'group-leads node-expanded', 'title' => 'Bereich schließen', 'label' => 'Anfragen', 'href' => '/contao?mtg=leads&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('lead' => array('tables' => array('tl_lead', 'tl_lead_data'), 'javascript' => 'system/modules/leads/assets/leads.js', 'stylesheet' => 'system/modules/leads/assets/leads.css', 'show' => array('tl_lead', 'show'), 'export' => array('tl_lead', 'export'), 'notification' => array('tl_lead', 'sendNotification'), 'title' => 'Manage incoming leads from form "%s".', 'label' => 'Leads', 'class' => 'navigation lead', 'href' => '/contao?do=lead&ref=RTZChjNc', 'isActive' => false))), 'notification_center' => array('class' => 'group-notification_center node-expanded', 'title' => 'Bereich schließen', 'label' => 'Notification Center', 'href' => '/contao?mtg=notification_center&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('nc_notifications' => array('tables' => array('tl_nc_notification', 'tl_nc_message', 'tl_nc_language'), 'icon' => 'system/modules/notification_center/assets/notification.png', 'title' => 'Benachrichtigungen verwalten.', 'label' => 'Benachrichtigungen', 'class' => 'navigation nc_notifications', 'href' => '/contao?do=nc_notifications&ref=RTZChjNc', 'isActive' => false), 'nc_gateways' => array('tables' => array('tl_nc_gateway'), 'icon' => 'system/modules/notification_center/assets/gateway.png', 'title' => 'Gateways verwalten', 'label' => 'Gateways', 'class' => 'navigation nc_gateways', 'href' => '/contao?do=nc_gateways&ref=RTZChjNc', 'isActive' => false))), 'design' => array('class' => 'group-design node-expanded', 'title' => 'Bereich schließen', 'label' => 'Layout', 'href' => '/contao?mtg=design&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('themes' => array('tables' => array('tl_theme', 'tl_module', 'tl_style_sheet', 'tl_style', 'tl_layout', 'tl_image_size', 'tl_image_size_item', 'tl_form_layout', 'tl_bs_grid'), 'importTheme' => array('Contao\\Theme', 'importTheme'), 'exportTheme' => array('Contao\\Theme', 'exportTheme'), 'import' => array('Contao\\StyleSheets', 'importStyleSheet'), 'export' => array('Contao\\StyleSheets', 'exportStyleSheet'), 'hofff_layoutusage' => array('Hofff\\Contao\\LayoutUsage\\Backend\\ModuleLayoutUsage', 'generateFromDC'), 'stylesheet' => array('bundles/contaobootstrapnavbar/backend.css'), 'title' => 'Themes, Frontend-Module, Seitenlayouts oder Bildgrößen verwalten', 'label' => 'Themes', 'class' => 'navigation themes', 'href' => '/contao?do=themes&ref=RTZChjNc', 'isActive' => false), 'page' => array('tables' => array('tl_page'), 'title' => 'Die Seitenstruktur der Webseite(n) erstellen', 'label' => 'Seitenstruktur', 'class' => 'navigation page', 'href' => '/contao?do=page&ref=RTZChjNc', 'isActive' => false), 'tpl_editor' => array('tables' => array('tl_templates'), 'new_tpl' => array('tl_templates', 'addNewTemplate'), 'compare' => array('tl_templates', 'compareTemplate'), 'title' => 'Eigene Templates anlegen oder bearbeiten', 'label' => 'Templates', 'class' => 'navigation tpl_editor', 'href' => '/contao?do=tpl_editor&ref=RTZChjNc', 'isActive' => false))), 'accounts' => array('class' => 'group-accounts node-expanded', 'title' => 'Bereich schließen', 'label' => 'Benutzerverwaltung', 'href' => '/contao?mtg=accounts&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('member' => array('tables' => array('tl_member'), 'title' => 'Mitgliederkonten verwalten (Frontend)', 'label' => 'Mitglieder', 'class' => 'navigation member', 'href' => '/contao?do=member&ref=RTZChjNc', 'isActive' => false), 'mgroup' => array('tables' => array('tl_member_group'), 'title' => 'Mitgliedergruppen verwalten (Frontend)', 'label' => 'Mitgliedergruppen', 'class' => 'navigation mgroup', 'href' => '/contao?do=mgroup&ref=RTZChjNc', 'isActive' => false), 'user' => array('tables' => array('tl_user'), 'title' => 'Benutzerkonten verwalten (Backend)', 'label' => 'Benutzer', 'class' => 'navigation user', 'href' => '/contao?do=user&ref=RTZChjNc', 'isActive' => false), 'group' => array('tables' => array('tl_user_group'), 'title' => 'Benutzergruppen verwalten (Backend)', 'label' => 'Benutzergruppen', 'class' => 'navigation group', 'href' => '/contao?do=group&ref=RTZChjNc', 'isActive' => false))), 'metamodels' => array('class' => 'group-metamodels node-expanded', 'title' => 'Bereich schließen', 'label' => 'MetaModels', 'href' => '/contao?mtg=metamodels&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('metamodels' => array('tables' => array('tl_metamodel', 'tl_metamodel_attribute', 'tl_metamodel_filter', 'tl_metamodel_filtersetting', 'tl_metamodel_rendersettings', 'tl_metamodel_rendersetting', 'tl_metamodel_dca_sortgroup', 'tl_metamodel_dca', 'tl_metamodel_dcasetting', 'tl_metamodel_dca_combine', 'tl_metamodel_dcasetting_condition', 'tl_metamodel_searchable_pages'), 'icon' => 'bundles/metamodelscore/images/backend/logo.png', 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => 'Die MetaModels-Erweiterung ermöglicht es, eigene Datenmodelle zu erstellen', 'label' => 'MetaModels', 'class' => 'navigation metamodels', 'href' => '/contao?do=metamodels&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_gut_levels' => array('tables' => array('mm_gut_levels'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_levels', 'class' => 'navigation metamodel_mm_gut_levels', 'href' => '/contao?do=metamodel_mm_gut_levels&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_gut_salutations' => array('tables' => array('mm_gut_salutations'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_salutations', 'class' => 'navigation metamodel_mm_gut_salutations', 'href' => '/contao?do=metamodel_mm_gut_salutations&ref=RTZChjNc', 'isActive' => false))), 'system' => array('class' => 'group-system node-expanded', 'title' => 'Bereich schließen', 'label' => 'System', 'href' => '/contao?mtg=system&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('files' => array('tables' => array('tl_files'), 'title' => 'Dateien und Ordner verwalten', 'label' => 'Dateiverwaltung', 'class' => 'navigation files', 'href' => '/contao?do=files&ref=RTZChjNc', 'isActive' => false), 'slick_config' => array('tables' => array('tl_slick_config'), 'title' => 'Erstellt eine einzigartige Slick Karussell Konfiguration', 'label' => 'Slick Konfiguration', 'class' => 'navigation slick_config', 'href' => '/contao?do=slick_config&ref=RTZChjNc', 'isActive' => false), 'settings' => array('tables' => array('tl_settings'), 'title' => 'Die Contao-Konfiguration anpassen', 'label' => 'Einstellungen', 'class' => 'navigation settings', 'href' => '/contao?do=settings&ref=RTZChjNc', 'isActive' => false), 'maintenance' => array('callback' => 'Contao\\ModuleMaintenance', 'title' => 'Die Webseite crawlen oder generierte Daten löschen', 'label' => 'Systemwartung', 'class' => 'navigation maintenance', 'href' => '/contao?do=maintenance&ref=RTZChjNc', 'isActive' => false), 'log' => array('tables' => array('tl_log'), 'title' => 'Das System-Log durchsuchen', 'label' => 'System-Log', 'class' => 'navigation log', 'href' => '/contao?do=log&ref=RTZChjNc', 'isActive' => false), 'opt_in' => array('tables' => array('tl_opt_in'), 'resend' => array('tl_opt_in', 'resendToken'), 'title' => 'Double Opt-In-Token verwalten', 'label' => 'Double Opt-In', 'class' => 'navigation opt_in', 'href' => '/contao?do=opt_in&ref=RTZChjNc', 'isActive' => false), 'undo' => array('tables' => array('tl_undo'), 'disablePermissionChecks' => true, 'haste_undo' => array('Haste\\Util\\Undo', 'callback'), 'title' => 'Gelöschte Datensätze wiederherstellen', 'label' => 'Wiederherstellen', 'class' => 'navigation undo', 'href' => '/contao?do=undo&ref=RTZChjNc', 'isActive' => false), 'dlstats' => array('callback' => 'BugBuster\\DLStats\\ModuleDlstatsStatistics', 'icon' => 'bundles/bugbusterdlstats/icon.png', 'stylesheet' => 'bundles/bugbusterdlstats/mod_dlstatsstatistics_be.css', 'title' => 'Dieses Modul erfasst Downloads und erstellt Statistiken.', 'label' => 'Downloadstatistik', 'class' => 'navigation dlstats', 'href' => '/contao?do=dlstats&ref=RTZChjNc', 'isActive' => false))), 'redirects' => array('class' => 'group-redirects node-expanded', 'title' => 'Bereich schließen', 'label' => 'redirects', 'href' => '/contao?mtg=redirects&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('sttgs-redirects' => array('tables' => array('tl_redirect'), 'title' => 'Weiterleitungen verwalten', 'label' => 'Weiterleitungen', 'class' => 'navigation sttgs-redirects', 'href' => '/contao?do=sttgs-redirects&ref=RTZChjNc', 'isActive' => false), 'aliasindex' => array('tables' => array('tl_aliasindex'), 'checkStatus' => array('\\DieSchittigs\\SttgsRedirect\\redirectClass', 'checkStatus'), 'title' => 'Besehende und alte Alias ansehen', 'label' => 'Alias-Datenbank', 'class' => 'navigation aliasindex', 'href' => '/contao?do=aliasindex&ref=RTZChjNc', 'isActive' => false))), 'mm_qrcert' => array('class' => 'group-mm_qrcert node-expanded', 'title' => 'Bereich schließen', 'label' => 'mm_qrcert', 'href' => '/contao?mtg=mm_qrcert&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('metamodel_mm_qrcert_company' => array('tables' => array('mm_qrcert_company', 'mm_qrcert_certificate'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_qrcert_company', 'class' => 'navigation metamodel_mm_qrcert_company', 'href' => '/contao?do=metamodel_mm_qrcert_company&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_qrcert_status' => array('tables' => array('mm_qrcert_status'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_qrcert_status', 'class' => 'navigation metamodel_mm_qrcert_status', 'href' => '/contao?do=metamodel_mm_qrcert_status&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_qrcert_type_textes' => array('tables' => array('mm_qrcert_type_textes'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_qrcert_type_textes', 'class' => 'navigation metamodel_mm_qrcert_type_textes', 'href' => '/contao?do=metamodel_mm_qrcert_type_textes&ref=RTZChjNc', 'isActive' => false))), 'mm_gut' => array('class' => 'group-mm_gut node-expanded', 'title' => 'Bereich schließen', 'label' => 'mm_gut', 'href' => '/contao?mtg=mm_gut&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('metamodel_mm_gut_employees' => array('tables' => array('mm_gut_employees'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_employees', 'class' => 'navigation metamodel_mm_gut_employees', 'href' => '/contao?do=metamodel_mm_gut_employees&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_gut_procucts' => array('tables' => array('mm_gut_procucts'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_procucts', 'class' => 'navigation metamodel_mm_gut_procucts', 'href' => '/contao?do=metamodel_mm_gut_procucts&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_gut_divisions' => array('tables' => array('mm_gut_divisions'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_divisions', 'class' => 'navigation metamodel_mm_gut_divisions', 'href' => '/contao?do=metamodel_mm_gut_divisions&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_gut_lines' => array('tables' => array('mm_gut_lines'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_lines', 'class' => 'navigation metamodel_mm_gut_lines', 'href' => '/contao?do=metamodel_mm_gut_lines&ref=RTZChjNc', 'isActive' => false))), 'mm_testimonials' => array('class' => 'group-mm_testimonials node-expanded', 'title' => 'Bereich schließen', 'label' => 'mm_testimonials', 'href' => '/contao?mtg=mm_testimonials&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('metamodel_mm_gut_testimonials' => array('tables' => array('mm_gut_testimonials'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_testimonials', 'class' => 'navigation metamodel_mm_gut_testimonials', 'href' => '/contao?do=metamodel_mm_gut_testimonials&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_gut_testimonials_categories' => array('tables' => array('mm_gut_testimonials_categories'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_gut_testimonials_categories', 'class' => 'navigation metamodel_mm_gut_testimonials_categories', 'href' => '/contao?do=metamodel_mm_gut_testimonials_categories&ref=RTZChjNc', 'isActive' => false))), 'mm_auditor' => array('class' => 'group-mm_auditor node-expanded', 'title' => 'Bereich schließen', 'label' => 'mm_auditor', 'href' => '/contao?mtg=mm_auditor&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('metamodel_mm_aud_auditors' => array('tables' => array('mm_aud_auditors'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_aud_auditors', 'class' => 'navigation metamodel_mm_aud_auditors', 'href' => '/contao?do=metamodel_mm_aud_auditors&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_aud_appointments' => array('tables' => array('mm_aud_appointments'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_aud_appointments', 'class' => 'navigation metamodel_mm_aud_appointments', 'href' => '/contao?do=metamodel_mm_aud_appointments&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_aud_qualifications' => array('tables' => array('mm_aud_qualifications'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_aud_qualifications', 'class' => 'navigation metamodel_mm_aud_qualifications', 'href' => '/contao?do=metamodel_mm_aud_qualifications&ref=RTZChjNc', 'isActive' => false))), 'mm_seminare' => array('class' => 'group-mm_seminare node-expanded', 'title' => 'Bereich schließen', 'label' => 'mm_seminare', 'href' => '/contao?mtg=mm_seminare&ref=RTZChjNc', 'ajaxUrl' => '/contao', 'icon' => 'modPlus.gif', 'modules' => array('metamodel_mm_sv_booking' => array('tables' => array('mm_sv_booking'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_booking', 'class' => 'navigation metamodel_mm_sv_booking', 'href' => '/contao?do=metamodel_mm_sv_booking&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_events' => array('tables' => array('mm_sv_events'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_events', 'class' => 'navigation metamodel_mm_sv_events', 'href' => '/contao?do=metamodel_mm_sv_events&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_seminar' => array('tables' => array('mm_sv_seminar'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_seminar', 'class' => 'navigation metamodel_mm_sv_seminar', 'href' => '/contao?do=metamodel_mm_sv_seminar&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_modules' => array('tables' => array('mm_sv_modules'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_modules', 'class' => 'navigation metamodel_mm_sv_modules', 'href' => '/contao?do=metamodel_mm_sv_modules&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_theme' => array('tables' => array('mm_sv_theme'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_theme', 'class' => 'navigation metamodel_mm_sv_theme', 'href' => '/contao?do=metamodel_mm_sv_theme&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_niveau' => array('tables' => array('mm_sv_niveau'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_niveau', 'class' => 'navigation metamodel_mm_sv_niveau', 'href' => '/contao?do=metamodel_mm_sv_niveau&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_type' => array('tables' => array('mm_sv_type'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_type', 'class' => 'navigation metamodel_mm_sv_type', 'href' => '/contao?do=metamodel_mm_sv_type&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_location' => array('tables' => array('mm_sv_location'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_location', 'class' => 'navigation metamodel_mm_sv_location', 'href' => '/contao?do=metamodel_mm_sv_location&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_taxo_values' => array('tables' => array('mm_sv_taxo_values'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_taxo_values', 'class' => 'navigation metamodel_mm_sv_taxo_values', 'href' => '/contao?do=metamodel_mm_sv_taxo_values&ref=RTZChjNc', 'isActive' => false), 'metamodel_mm_sv_taxo_group' => array('tables' => array('mm_sv_taxo_group'), 'callback' => 'MetaModels\\BackendIntegration\\Module', 'title' => '', 'label' => 'metamodel_mm_sv_taxo_group', 'class' => 'navigation metamodel_mm_sv_taxo_group', 'href' => '/contao?do=metamodel_mm_sv_taxo_group&ref=RTZChjNc', 'isActive' => false)))), true)
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/classes/BackendUser.php:543)
  at Contao\BackendUser->navigation()
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/EventListener/Menu/BackendMenuListener.php:85)
  at Contao\CoreBundle\EventListener\Menu\BackendMenuListener->buildMainMenu(object(MenuEvent), object(BackendUser))
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/EventListener/Menu/BackendMenuListener.php:75)
  at Contao\CoreBundle\EventListener\Menu\BackendMenuListener->__invoke(object(MenuEvent), 'contao.backend_menu_build', object(TraceableEventDispatcher))
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(MenuEvent), 'contao.backend_menu_build', object(TraceableEventDispatcher))
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/EventDispatcher.php:251)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'contao.backend_menu_build', object(MenuEvent))
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(MenuEvent), 'contao.backend_menu_build')
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(MenuEvent), 'contao.backend_menu_build')
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Menu/BackendMenuBuilder.php:49)
  at Contao\CoreBundle\Menu\BackendMenuBuilder->buildMainMenu(array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Provider/LazyProvider.php:37)
  at Knp\Menu\Provider\LazyProvider->get('be_menu', array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Provider/ChainProvider.php:21)
  at Knp\Menu\Provider\ChainProvider->get('be_menu', array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/Helper.php:56)
  at Knp\Menu\Twig\Helper->get('be_menu', array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/Helper.php:162)
  at Knp\Menu\Twig\Helper->castMenu('be_menu')
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/Helper.php:91)
  at Knp\Menu\Twig\Helper->render('be_menu', array(), null)
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/MenuExtension.php:76)
  at Knp\Menu\Twig\MenuExtension->render('be_menu')
     (/home/xxx/contao4_2020/var/cache/dev/twig/12/12503eb1ca72ca805945b11dfed4531f67d000f96ca9d8812819cf19fa771f04.php:54)
  at __TwigTemplate_bdaa7bff4f856b2f57b471425018654a8253dd307c9e4afd23f66abfc3ec43a1->doDisplay(array('app' => object(AppVariable)), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:407)
  at Twig\Template->displayWithErrorHandling(array('app' => object(AppVariable)), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:380)
  at Twig\Template->display(array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:392)
  at Twig\Template->render(array(), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render(array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@ContaoCore/Backend/be_menu.html.twig')
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:241)
  at Contao\BackendMain->output()
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:159)
  at Contao\BackendMain->run()
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Controller/BackendController.php:48)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/xxx/contao4_2020/web/index.php:31)

workaround:

        if (null !== ($user = $this->tokenStorage->getToken())) {
-           $userRights = $this->extractUserRights($user);
+           // $userRights = $this->extractUserRights($user);
        }
richardhj commented 4 years ago

Der StackTrace ist nicht aktuell?

richardhj commented 4 years ago

Kann ich nicht nachproduzieren, hab sogar nen Test-Nicht-Admin erstellt.

zonky2 commented 4 years ago

nicht im Testaccount - hast Du noch eine weitere Installation?

zonky2 commented 4 years ago

aktuell:

Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Warning: array_flip() expects parameter 1 to be array, bool given").

  at /home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/views/Backend/be_menu.html.twig:4
  at Twig\Template->displayWithErrorHandling(array('app' => object(AppVariable)), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:380)
  at Twig\Template->display(array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:392)
  at Twig\Template->render(array(), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render(array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@ContaoCore/Backend/be_menu.html.twig')
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:241)
  at Contao\BackendMain->output()
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:159)
  at Contao\BackendMain->run()
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Controller/BackendController.php:48)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/xxx/contao4_2020/web/index.php:31)  

ErrorException:
Warning: array_flip() expects parameter 1 to be array, bool given

  at /home/xxx/contao4_2020/vendor/metamodels/core/src/CoreBundle/EventListener/BackendNavigationListener.php:185
  at MetaModels\CoreBundle\EventListener\BackendNavigationListener->extractUserRights(object(UsernamePasswordToken))
     (/home/xxx/contao4_2020/vendor/metamodels/core/src/CoreBundle/EventListener/BackendNavigationListener.php:118)
  at MetaModels\CoreBundle\EventListener\BackendNavigationListener->__invoke(object(MenuEvent), 'contao.backend_menu_build', object(TraceableEventDispatcher))
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(MenuEvent), 'contao.backend_menu_build', object(TraceableEventDispatcher))
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/EventDispatcher.php:251)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'contao.backend_menu_build', object(MenuEvent))
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(MenuEvent), 'contao.backend_menu_build')
     (/home/xxx/contao4_2020/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(MenuEvent), 'contao.backend_menu_build')
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Menu/BackendMenuBuilder.php:49)
  at Contao\CoreBundle\Menu\BackendMenuBuilder->buildMainMenu(array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Provider/LazyProvider.php:37)
  at Knp\Menu\Provider\LazyProvider->get('be_menu', array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Provider/ChainProvider.php:21)
  at Knp\Menu\Provider\ChainProvider->get('be_menu', array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/Helper.php:56)
  at Knp\Menu\Twig\Helper->get('be_menu', array())
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/Helper.php:162)
  at Knp\Menu\Twig\Helper->castMenu('be_menu')
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/Helper.php:91)
  at Knp\Menu\Twig\Helper->render('be_menu', array(), null)
     (/home/xxx/contao4_2020/vendor/knplabs/knp-menu/src/Knp/Menu/Twig/MenuExtension.php:76)
  at Knp\Menu\Twig\MenuExtension->render('be_menu')
     (/home/xxx/contao4_2020/var/cache/dev/twig/12/12503eb1ca72ca805945b11dfed4531f67d000f96ca9d8812819cf19fa771f04.php:54)
  at __TwigTemplate_bdaa7bff4f856b2f57b471425018654a8253dd307c9e4afd23f66abfc3ec43a1->doDisplay(array('app' => object(AppVariable)), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:407)
  at Twig\Template->displayWithErrorHandling(array('app' => object(AppVariable)), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:380)
  at Twig\Template->display(array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Template.php:392)
  at Twig\Template->render(array(), array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/TemplateWrapper.php:45)
  at Twig\TemplateWrapper->render(array())
     (/home/xxx/contao4_2020/vendor/twig/twig/src/Environment.php:318)
  at Twig\Environment->render('@ContaoCore/Backend/be_menu.html.twig')
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:241)
  at Contao\BackendMain->output()
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:159)
  at Contao\BackendMain->run()
     (/home/xxx/contao4_2020/vendor/contao/core-bundle/src/Controller/BackendController.php:48)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/HttpKernel.php:146)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (/home/xxx/contao4_2020/vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/xxx/contao4_2020/web/index.php:31) 
richardhj commented 4 years ago

@zonky2 Kannst du fixen.

zonky2 commented 4 years ago

done