nystudio107 / craft-instantanalytics

DEPRECATED: Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
https://nystudio107.com/
Other
20 stars 9 forks source link

Issues with install #12

Closed bossanova808 closed 4 years ago

bossanova808 commented 5 years ago

Ok, so my general process is to upgrade a db from Craft 2 -> 3 and the in my own little custom console controller I have:

Craft::$app->plugins->installPlugin('instant-analytics'); ...this does not raise an error. But it also (unlike with several other plugins I do this with) - does not results in the plugin being installed.

So I have to go into the control panel and manually install it there in the plugins section. Then I immediately get this error:

image

..because, again unlike any other plugin, it is in 'Disabled' state after the initial install. When I then enable it, it then works as expected.

khalwat commented 4 years ago

Is this controller being run via a console command @bossanova808 ?