No Code Attached Yet bug
avatar Denitz
Denitz
25 Mar 2021

Steps to reproduce the issue

Create the admin menu link with array parameter in component manifest file.

I.e. the link to display component-specific plugins:

			<menu
					link="option=com_foo&amp;view=plugins&amp;filter[folder]=foo"
					view="plugins"
					img="class:plug"
					alt="Foo/Plugins"
			>
				com_foo_plugins
			</menu>

Next try to create new menu item for backend menu.

Expected result

No errors.

Actual result

( ! ) Warning: strlen() expects parameter 1 to be string, array given in \administrator\components\com_menus\models\menutypes.php on line 455

System information (as much as possible)

Not related.

Additional comments

avatar Denitz Denitz - open - 25 Mar 2021
avatar joomla-cms-bot joomla-cms-bot - change - 25 Mar 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Mar 2021
avatar PhilETaylor
PhilETaylor - comment - 25 Mar 2021

$o->request = array_filter($request, 'strlen');

avatar anurag806
anurag806 - comment - 25 Mar 2021

we can do this code
$o->request = array_filter($request, 'strlen');

avatar PhilETaylor
PhilETaylor - comment - 25 Mar 2021

that's the code that is broken... as $request is an array.

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment