Closed coolcat-creations closed 2 months ago
I cannot replicate that. What did you before? Disable the admin menu module?
Can you replicate this WITHOUT com_easybookreloaded
Base on data from print_r command, it could come from osmap. I guess in the extension, there is link with this format
option=com_plugins&filter[folder]=osmap
That link could be used to diplay plugins from osmap plugin group. Joomla could not handle that kind of link for some reasons and it causes the error. Sound like a valid bug.
@joomdonation confirmed
Disabled OS Map and I confirm. Should I close the issue and ask OsMap or should Joomla catch such errors different?
Both imo, without close the issue
Joomlashack have provided an update for their allediaframework library yesterday, which is also used by and provided with OSMap. Maybe that's related? https://github.com/joomlashack/AllediaFramework/releases/tag/v3.6.6
@coolcat-creations has been in touch with us. This is a problem we've been aware of for some time but affected only one other user over the years, so we pretty much ignored it.
OSMap contains a link in the sidebar to a list of plugins filtered by OSMap plugins. This is in the component manifest:
<menu link="option=com_plugins&filter[folder]=osmap">COM_OSMAP_SUBMENU_EXTENSIONS</menu>
This breaks code in Joomla for creating admin menus in both Joomla 3 and Joomla 4. The only thing we can do on our end is remove this convenience link. So future versions of OSMap will remove this convenience link.
This has been reported again in #43715 and there I proposed a fix. I'm unable to create a PR myself right now, but please look at that other issue as well to be kept up to date.
please test #43884
Steps to reproduce the issue
Create an admin menu Create a menu item and click on menu item type
Expected result
A list of menu item types
Actual result
0 strlen(): Argument #1 ($string) must be of type string, array given
System information (as much as possible)
Additional comments
If I comment out Line 412 to 420 in Menu Model it works, /* $o->request = array_filter($request, 'strlen'); $options[] = new CMSObject($o);
print_r for $request is: print_r for request is:
Array ( [option] => com_banners ) Array ( [option] => com_categories [extension] => com_banners ) Array ( [option] => com_banners [view] => clients ) Array ( [option] => com_banners [view] => tracks ) Array ( [option] => com_contact ) Array ( [option] => com_categories [extension] => com_contact ) Array ( [option] => com_easybookreloaded ) Array ( [option] => com_easybookreloaded [view] => gb ) Array ( [option] => com_easybookreloaded [view] => badwords ) Array ( [option] => com_newsfeeds ) Array ( [option] => com_categories [extension] => com_newsfeeds ) Array ( [option] => com_osmap [act] => [task] => [controller] => [view] => sitemaps [layout] => [sub] => ) Array ( [option] => com_plugins [filter] => Array ( [folder] => osmap ) ) Array ( [option] => com_weblinks ) Array ( [option] => com_categories [extension] => com_weblinks ) Array ( [option] => com_fields [view] => fields [context] => com_weblinks.weblink ) Array ( [option] => com_fields [view] => groups [context] => com_weblinks.weblink )
-- could not be reproduced by others.
Hoster is Ionos