Search
Other Modules Anywhere questions
Forum

Error on J 4.2.1

Jordan Weinstein's Avatar Jordan Weinstein
Hello,

When helping to test J4.2.1 on PHP 7.4 with Modules Anywhere 12.4.1 PRO I received this error:

DATABASE NOT SET IN REGULARLABS\PLUGIN\SYSTEM\MODULESANYWHERE\FORM\FIELD\CHROMESTYLEFIELD

The call stack with debug on is shown below. Disabling the plugin resolves that error.

d.pr/f/rxmJA7+

Jordan
Jordan Weinstein's Avatar Jordan Weinstein
Resolved by opening plugin and saving it.
Peter van Westen's Avatar Peter van Westen ADMIN
This is already fixed in the latest dev version of Modules Anywhere:
regularlabs.com/development-releases

Just not released as stable yet.
Please post a rating at the Joomla! Extensions Directory
Jordan Weinstein's Avatar Jordan Weinstein
Thanks very much.

I have an additional error after that one was resolved with a specific module loading in an article which worked fine with Joomla 3. Error and stack trace:

ARRAY_REPLACE(): ARGUMENT #1 ($ARRAY) MUST BE OF TYPE ARRAY, STRING GIVEN

d.pr/f/5JIgd9+

The same module loads fine in a module position
Peter van Westen's Avatar Peter van Westen ADMIN
Looks like an issue with that specific module and how it is trying to load a stylesheet.
Please post a rating at the Joomla! Extensions Directory
Peter Tuson's Avatar Peter Tuson
Hello Peter,

I just got this error after upgrading to Joomla 4.1.

The problem seems to be the getTemplates function within the library ChromeStyleField which is calling $this->getDatabase(); which doesn't appear to exist.

I managed to temporarily fix it by adding the Factory namespace to the field and changing $this->getDatabase() to Factory::getContainer()->get('DatabaseDriver');

Maybe getDatabase() should be a function within the FormField class.

Regards,

Peter.
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
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription