J!4.1.3, Too few arguments to function...

Search
Other Bug Reports questions
Forum

J!4.1.3, Too few arguments to function RegularLabs\Library\Cache...

Beate Tröster's Avatar Beate Tröster
Extension update after update to J!4.1.3
Regular Labs Library has been successfully updated to v22.5.9993
Conditions has been successfully updated to v22.5.9993

An error has occurred.
0 Too few arguments to function RegularLabs\Library\Cache::__construct(), 0 passed in /home/...../public_html/administrator/components/com_conditions/src/Helper/Helper.php on line 215 and at least 1 expected

php8.0.18
Peter van Westen's Avatar Peter van Westen ADMIN
That's weird, as the Cache class doesn't need an argument.

Maybe your files are not correctly overwritten and you have some old files being stuck.
That could be caused by issues with folder/file write permissions.

Try deleting these folders:
/plugins/system/regularlabs
/libraries/regularlabs
(You will get other errors now).

Then reinstall the latest version of the extension you installed.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
PS: You shouldn't be using php 8.0 anymore.
It has some major bugs. See if you can upgrade to PHP 8.1.
Please post a rating at the Joomla! Extensions Directory
Beate Tröster's Avatar Beate Tröster
Thanks for the php hint.

It was a new J!4 installation with a new RegularLabs AdvancedModuleManager9.0.5, the recent one at the time of installation (via UploadPackageFile).
The update was from AdvancedModuleManager9.0.5 to 9.1.2 and I can see that only the component was updated, Actionlog and system plugin are still 9.0.5.
There's a folder plugins/system/regularlabsinstalleradvancedmodulemanager with the date of my update.

I now did a new installation of RegularLabs AdvancedModuleManager9.1.2 (via UploadPackageFile), no error shown, Actionlog and system plugin are 9.1.2, too.

So it's ok now.

Out of interest I did a new clean J!4.1.3 installation + AdvancedModuleManager9.0.5 (on php8.1.5 now).
The update via Joomla to 9.1.2 is showing the same "Too few arguments" error. So it seems to be related to AdvancedModuleManager9.0.5
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, happy it is fixed for you now.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in