Error on creating administrator menu item Topic is solved

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
pwouda
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Apr 15, 2011 6:08 pm
Contact:

Error on creating administrator menu item

Post by pwouda » Wed Jan 12, 2022 2:44 pm

Hi there,

When I am trying to create a menu-item in a administrator-menu I get the error:

strlen(): Argument #1 ($string) must be of type string, array given

Rebuilding the menu did not help. THe same problem occurs in both of my Joomla-4 websites.

PHP: 8.0.14
DB: 10.5.13-MariaDB

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Error on creating administrator menu item

Post by brian » Wed Jan 12, 2022 2:46 pm

Enable debug mode. This should give a stack trace on the error so you can see where it is coming from
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

pwouda
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Apr 15, 2011 6:08 pm
Contact:

Re: Error on creating administrator menu item

Post by pwouda » Wed Jan 12, 2022 2:48 pm

Warning
: is_file(): open_basedir restriction in effect. File(/metadata.xml) is not within the allowed path(s): (/var/www/vhosts/akkrum.net/:/tmp/) in
/var/www/vhosts/akkrum.net/httpdocs/administrator/components/com_menus/src/Model/ItemModel.php
on line
1221

pwouda
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Apr 15, 2011 6:08 pm
Contact:

Re: Error on creating administrator menu item

Post by pwouda » Wed Jan 12, 2022 2:50 pm

And the complete stacktrace:

# Function Location
1 () JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:458
2 strlen()
3 array_filter() JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:458
4 Joomla\Component\Menus\Administrator\Model\MenutypesModel->getTypeOptionsFromManifest() JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:179
5 Joomla\Component\Menus\Administrator\Model\MenutypesModel->getTypeOptionsByComponent() JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:107
6 Joomla\Component\Menus\Administrator\Model\MenutypesModel->getTypeOptions() JROOT/administrator/components/com_menus/src/Model/MenutypesModel.php:67
7 Joomla\Component\Menus\Administrator\Model\MenutypesModel->getReverseLookup() JROOT/administrator/components/com_menus/src/Field/MenutypeField.php:83
8 Joomla\Component\Menus\Administrator\Field\MenutypeField->getInput() JROOT/libraries/src/Form/FormField.php:1080
9 Joomla\CMS\Form\FormField->renderField() JROOT/libraries/src/Form/Form.php:583
10 Joomla\CMS\Form\Form->renderField() JROOT/administrator/components/com_menus/tmpl/item/edit.php:76
11 include() JROOT/libraries/src/MVC/View/HtmlView.php:429
12 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:218
13 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_menus/src/View/Item/HtmlView.php:114
14 Joomla\Component\Menus\Administrator\View\Item\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:692
15 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_menus/src/Controller/DisplayController.php:116
16 Joomla\Component\Menus\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730
17 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146
18 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
20 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
21 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
22 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
23 require_once() JROOT/administrator/index.php:32

pwouda
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Apr 15, 2011 6:08 pm
Contact:

Re: Error on creating administrator menu item

Post by pwouda » Wed Jan 12, 2022 2:54 pm


pwouda
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Apr 15, 2011 6:08 pm
Contact:

Re: Error on creating administrator menu item

Post by pwouda » Tue Jan 18, 2022 10:44 am

Hi,

The problem still exists after the upgrade to Joomla 4.0.6.
Please can you tell me if this problem is still in investigation?

Best regards,
Peter

pwouda
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Apr 15, 2011 6:08 pm
Contact:

Re: Error on creating administrator menu item

Post by pwouda » Wed Jan 19, 2022 3:56 pm

Hi,

Problem solved. It was caused by the OSMap sitemap extension by JoomlaShack. After disabeling this plugin the admin-menu creation works fine.
I will report this problem to JoomlaShack.

Best regards,
Peter


Locked

Return to “Administration Joomla! 4.x”