soberwp / controller

Composer package to enable a controller when using Blade with Sage 9
MIT License
368 stars 43 forks source link

Cannot redeclare Sober\Controller\debugger() #23

Closed Log1x closed 7 years ago

Log1x commented 7 years ago

It looks like since the update a few hours ago, you setup autoload in composer.json to autoload the plugin, but are still declaring "type": "wordpress-muplugin" thus the plugin is installing into /mu-plugins/ and being loaded by WordPress as well as Composer resulting in an error.

I can see how this could be overlooked as Sage 9 doesn't ship with installer-paths set in composer.json like it does Bedrock, but if they are manually set at a theme-level it will result in the error above.

Thanks in advance for a quick fix.

darrenjacoby commented 7 years ago

Sorry, that's an oversight.

Please try del, clear cache and re-install.

Log1x commented 7 years ago

Should be good now. Thanks!