-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
I've installed the extension and it works fine on a local environment, but when I deploy the extension to a stage environment (that is running in production mode), I get this error when running bin/magento setup:upgrade:
Module 'Magento_Integration':
Module 'Magento_SendFriend':
Module 'Magento_Shipping':
Module 'Magento_Sitemap':
Module 'Magento_Solr':
Module 'Magento_CatalogInventoryStaging':
Module 'Diglin_Username':
magento stderr: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Setup\Module\DataSetup::__construct() must be an instance of Magento\Framework\Module\Setup\Context, instance of Magento\Framework\ObjectManager\ObjectManager given, called in /var/www/stage/releases/20170908220834/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and defined in /var/www/stage/releases/20170908220834/setup/src/Magento/Setup/Module/DataSetup.php:57
Stack trace:
#0 /var/www/stage/releases/20170908220834/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Magento\Setup\Module\DataSetup->__construct(Object(Magento\Framework\ObjectManager\ObjectManager))
#1 /var/www/stage/releases/20170908220834/vendor/magento/framework/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Setup\\M...', Array)
#2 /var/www/stage/releases/20170908220834/vendor/magento/framework/ObjectManager/Factory/Compiled.php(130): Magento\Framework\ObjectManager\Factor in /var/www/stage/releases/20170908220834/setup/src/Magento/Setup/Module/DataSetup.php on line 57
This issue appears to be caused by the \Diglin\Username\Setup\InstallData::install and \Diglin\Username\Setup\InstallSchema::install methods requiring instances of the \Magento\Framework\Setup\ModuleDataSetupInterface and \Magento\Framework\Setup\SchemaSetupInterface interfaces. I'm not sure why this is causing an error, as it's the same pattern that native Magento Setup classes use.
Have you seen this issue and do you happen to know what the resolution of it is?