Search
Other Advanced Module Manager questions
Forum

Error "Argument #2 (haystack) must be of type array" after installing AMM 9 on Joomla 4

Peter Wouda's Avatar Peter Wouda
Hi Peter,

Just to let you know: after installing Advanced Module Manager 9.0.0 on a Joomla 4 localhost website, I get the error
in_array(): Argument #2 ($haystack) must be of type array, string given

This is top-part of the stacktrace:
() JROOT\administrator\components\com_conditions\src\Helper\Helper.php:75
2 in_array() JROOT\administrator\components\com_conditions\src\Helper\Helper.php:75
3 RegularLabs\Component\Conditions\Administrator\Helper\Helper::conditionIsActive() JROOT\administrator\components\com_conditions\src\Api\Conditions.php:130
4 RegularLabs\Component\Conditions\Administrator\Api\Conditions->passRule() JROOT\administrator\components\com_conditions\src\Api\Conditions.php:98
5 RegularLabs\Component\Conditions\Administrator\Api\Conditions->passGroup() JROOT\administrator\components\com_conditions\src\Api\Conditions.php:57
6 RegularLabs\Component\Conditions\Administrator\Api\Conditions->pass() JROOT\plugins\system\advancedmodules\advancedmodules.php:183
7 PlgSystemAdvancedModules->pass() JROOT\plugins\system\advancedmodules\advancedmodules.php:163
8 PlgSystemAdvancedModules->onPrepareModuleList() JROOT\libraries\src\Plugin\CMSPlugin.php:285

Best regards,
Peter
ssnobben ssnobben's Avatar ssnobben ssnobben
HI

I got this problem too for Joomla 4.0.6. Joomla 3 version work without problem..

0
in_array(): Argument #2 ($haystack) must be of type array, string given


Cheers!
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Peter Wouda's Avatar Peter Wouda
Works just fine now!
Peter van Westen's Avatar Peter van Westen ADMIN
Fix is pushed to latest release.
Please post a rating at the Joomla! Extensions Directory
ssnobben ssnobben's Avatar ssnobben ssnobben
working now AMM 9.0.2 site not crashed have not tried any settings yet 🙂

thks
Peter van Westen's Avatar Peter van Westen ADMIN
Great.
Let me know if you run into anything else.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription