0

When I login in Magento 2 I get this following error.

    Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Customer\Controller\Account\LoginPost::__construct() must be an instance of Magento\Framework\App\Action\Context, instance of Magento\Framework\ObjectManager\ObjectManager given, called in /var/www/html/isac/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 93 and defined in /var/www/html/isac/vendor/magento/module-customer/Controller/Account/LoginPost.php:64 Stack trace: #0 /var/www/html/isac/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Magento\Customer
\Controller\Account\LoginPost->__construct(Object(Magento\Framework
\ObjectManager\ObjectManager)) #1 /var/www/html/isac/vendor/magento/framework
/ObjectManager/Factory/Compiled.php(88): Magento\Framework\ObjectManager
\Factory\AbstractFactory->createObject('Altius\\Multiven...', Array) #2 
/var/www/html/isac/vendor/magento/framework/ObjectManager
/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory
\Compiled->create('Altius\\Multiven...', Array) #3 /var/w in /var/www
/html/isac/vendor/magento/module-customer/Controller/Account/LoginPost.php on 
line 64

I didn't touch any core files. I tried all these steps

bin/magento cache:flush
remove var/generation and var/di
bin/magento setup:di:compile

But no changes.

  • Could you post your custom controller? – Khoa TruongDinh Dec 23 '18 at 6:51

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.