bug: plg_quickicon_mokosuitebackup crashes admin dashboard with array_merge error #297
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The admin dashboard (mod_quickicon) crashes with an
array_merge()TypeError attributed to plg_quickicon_mokosuitebackup.Root-cause mechanism
Joomla 6.1
administrator/modules/mod_quickicon/src/Helper/QuickIconHelper.php(~line 390-407) does:So the crash happens when a plugin returns its icons UNWRAPPED (a bare icon dict), because the inner loop then iterates the dict's string VALUES and array_merge() gets a string.
Investigation
The current repo
MokoSuiteBackupQuickicon::onGetIcons()wraps the icon correctly:$result[] = [ [ 'link'=>..., ... ] ]— a list containing one icon dict — identical to coreplg_quickicon_joomlaupdate(6.1-dev). So the current repo code should NOT trigger this crash, and the file has a single commit (no regression).Most likely: suite.dev is running a stale build with an older (unwrapped) version, or the error is from a different quickicon plugin. Needs the actual error page (file:line + the offending plugin) to confirm.
Hardening (regardless)
$event->getContext()(like core) instead ofgetArgument('context', getArgument(0, '')).Component: admin
Branch created:
feature/297-bug-plg-quickicon-mokosuitebackup-crashe