我不想更改核心文件。而且我不明白为什么这种情况以前无法完美地完成。
Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\Pricing\Price\Pool::__construct()
must implement interface , array given, called in
E:\xamp70\htdocs\itemart\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php
on line 111 and defined in
E:\xamp70\htdocs\itemart\vendor\magento\framework\Pricing\Price\Pool.php:25
Stack trace:
#0 E:\xamp70\htdocs\itemart\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(111):
Magento\Framework\Pricing\Price\Pool->__construct(Array, Array)
#1 E:\xamp70\htdocs\itemart\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(66):
Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#2 E:\xamp70\htdocs\itemart\vendor\magento\framework\ObjectManager\ObjectManager.php(70):
Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Downloa...')
#3 E:\xamp70\htdocs\itemart\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(144):
Magento\Framework\ObjectMa in E:\xamp70\htdocs\itemart\vendor\magento\framework\Pricing\Price\Pool.php on line 25
答案 0 :(得分:0)
Magento生成类及其构造函数,并且生成的类将基类扩展为调用插件。好吧,通常预生成的类已过期,并且由于出现此错误@OrangeDog
。
因此,您可以通过在终端的Magento根目录中运行以下命令来解决此问题:
Argument 2 passed to Magento\Framework\Pricing\Price\Pool::__construct()