cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

SOLVED

How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

 

Please see below screenshot and suggest me how can i fix it.fatalblockerror(1).pngscreenshot

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

Hello @yagnik_solanki,

 

Please remove generated directory data which you can find on magento root directory. 

 

--
If my answer is useful, please give Kudos or Accept as Solution

View solution in original post

5 REPLIES 5

Re: How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

Hello @yagnik_solanki,

 

Please remove generated directory data which you can find on magento root directory. 

 

--
If my answer is useful, please give Kudos or Accept as Solution

Re: How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

Smiley Happy Thanks Bro,

 

It's works

Re: How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

 

Hello,

 

There is following error occurred during di:compile process


<namespace>\<module>\Block\Catalog\Product\View

 

Incompatible argument type: Required type: \Magento\Framework\Url\EncoderInterface. Actual type: array; File:


C:/xampp/htdocs/mage224/app/code/<namespace>/<module>/Block/Catalog/Product/View.php

Total Errors Count: 1
  [Magento\Framework\Validator\Exception]
  Error during compilation

please suggest me how can i fix it ?

Re: How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

 Uncaught TypeError: Argument 1 passed to Magento\Eav\Model\Entity\Attribute\Source\Config::__construct() must be of the type array, null , how to fix this issue

/vendor/magento/module-eav/Model/Entity/Attribute/Source/Config.php on line 26

Re: How to fix :__construct() must be an instance of Magento\Framework\App\Http\Context ?

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Eav\Model\Entity\Attribute\Source\Config::__construct() must be of the type array, null given, called in /home/magentooutstripi/public_html/demome/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 111 and defined in /home/magentooutstripi/public_html/demome/vendor/magento/module-eav/Model/Entity/Attribute/Source/Config.php:26 Stack trace: #0 /home/magentooutstripi/public_html/demome/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111): Magento\Eav\Model\Entity\Attribute\Source\Config->__construct(NULL) #1 /home/magentooutstripi/public_html/demome/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Eav\\Mod...', Array) #2 /home/magentooutstripi/public_html/demome/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Eav\\Mod...', Array) #3 /home/magento in /home/magentooutstripi/public_html/demome/vendor/magento/module-eav/Model/Entity/Attribute/Source/Config.php on line 26