-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
When I try to add new item to menu (with brand name "SliRx") there is an error:
"Invalid Document
Element 'add', attribute 'resource': [facet 'pattern'] The value 'SliRx_News::news' is not accepted by the pattern '[A-Z]+[a-z0-9]{1,}_[A-Z]+[A-Z0-9a-z]{1,}::[A-Za-z_0-9]{1,}'.
Line: 6
Element 'add', attribute 'resource': 'SliRx_News::news' is not a valid value of the atomic type 'typeResource'.
Line: 6
#0 /home/slirx/web_dev/m2.local/lib/internal/Magento/Framework/Config/Reader/Filesystem.php(119): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#1 /home/slirx/web_dev/m2.local/app/code/Magento/Backend/Model/Menu/Config.php(142): Magento\Framework\Config\Reader\Filesystem->read('adminhtml')
#2 /home/slirx/web_dev/m2.local/app/code/Magento/Backend/Model/Menu/Config.php(109): Magento\Backend\Model\Menu\Config->_initMenu()
#3 /home/slirx/web_dev/m2.local/app/code/Magento/Backend/Block/Menu.php(306): Magento\Backend\Model\Menu\Config->getMenu()
#4 /home/slirx/web_dev/m2.local/app/code/Magento/Backend/App/AbstractAction.php(132): Magento\Backend\Block\Menu->getMenuModel()
#5 /home/slirx/web_dev/m2.local/app/code/Magento/Cms/Controller/Adminhtml/Page/Index.php(31): Magento\Backend\App\AbstractAction->_setActiveMenu('Magento_Cms::cm...')
#6 /home/slirx/web_dev/m2.local/var/generation/Magento/Cms/Controller/Adminhtml/Page/Index/Interceptor.php(117): Magento\Cms\Controller\Adminhtml\Page\Index->execute()
#7 /home/slirx/web_dev/m2.local/lib/internal/Magento/Framework/App/Action/Action.php(101): Magento\Cms\Controller\Adminhtml\Page\Index\Interceptor->execute()"
Do I need to name the brand only starting with uppercase? or this is the wrong pattern in app/code/Magento/Backend/etc/menu.xsd:134?