Custom plugin not showing on UI after added to plugins folder

Your software
My Mautic version is: 2.15.2
My PHP version is: PHP 7.2.19-0ubuntu0.18.04.2 (cli) (built: Aug 12 2019 19:34:28) ( NTS )

Your problem
My problem is: I have created a mautic hello world plugin based on mautic doc but i am unable to see the in database

These errors are showing in the log:

Steps I have tried to fix the problem:

  1. Copied existing plugin and renamed in plugin dir to see if it shows (Failed)

  2. Download sample plugin from internet (failed)
    https://github.com/vishal-px/Mautic-Simple-Plugin

  3. Created a mautic plugin based on doc and run following command :
    php app/console cache:warmup --env=prod --no-debug
    php app/console mautic:plugins:reload

But i am not able to see the plugin. please tell me the steps i may be missing.

Attached plugin zip sample

https://drive.google.com/open?id=1QKa66tj9kmy2YB4go60Z4k42vzm17vg1

1 Like

Try install any other plugins from https://github.com/mtcextendee/
If work, then is issue with https://github.com/vishal-px/Mautic-Simple-Plugin

I have tried one of sample plugins and it seems to work and using that i have tried to create a sample plugin but i am getting an error. I have check the log and got below due which it seemed the plugin was not showing

mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “mautic.helloworld.model.contact is not a registered container key.” at /app/app/bundles/CoreBundle/Factory/ModelFactory.php line 58 {“exception”:"[object] (InvalidArgumentException(code: 0): mautic.helloworld.model.contact is not a registered container key. at /app/app/bundles/CoreBundle/Factory/ModelFactory.php:58)"}

In config i have set the following :slight_smile:
‘services’ => array(
‘models’ => [
‘mautic.helloworld.model.contact’ => [
‘class’ => \MauticPlugin\MauticHelloWorldBundle\Model\ContactModel::class
],
],
),

Hey,

Found the problem solved it based on doc is was extending CommonModel but the new mautic requires extending FormModel.

1 Like

Hi,
I have same problem and i don’t find the solution.

Help!!!

Error:“mautic.helloworld.model.world is not a registered container key”

I called from the controller using this line

“$this->getModel(‘helloworld.world’)”

But, Whats is model’s name?

helloworldModel or worldModel