在magento 2

时间:2017-05-31 17:21:45

标签: exception migration magento2

我正在附加

下面的例外日志和基本网址

URL: https://dev.xxxxxxx.com/admin/customer/index/edit/id/12/key/xxxxxxxxxxxxxxxxxxxxxxxx/

例外:

  

1个例外:   异常#0(BadMethodCallException):缺少Magento \ Eav \ Model \ Entity \ Attribute \ Source \ Config所需的参数$选项。

     

异常#0(BadMethodCallException):缺少Magento \ Eav \ Model \ Entity \ Attribute \ Source \ Config所需的参数$选项。

     

#0 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(82):Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> _resolveArguments(&#39) ; Magento \ Eav \ Mod ...',Array,Array)

     

#1 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(57):Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create(' Magento \ Eav \ Mod ...',Array)

     

#2 /var/www/html/vendor/magento/framework/Validator/UniversalFactory.php(36):Magento \ Framework \ ObjectManager \ ObjectManager->创建(' Magento \ Eav \ Mod .. 。',数组)

     

#3 /var/www/html/vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php(537):Magento \ Framework \ Validator \ UniversalFactory-> create(' Magento \ Eav下\国防部...&#39)

     #p /#/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / p>      #p /#/ / / / / / / / / / / / / / / / / / / / / / / / \模型\实体\型))

     

#6 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93):Magento \ Customer \ Model \ Customer \ DataProvider-> __ construct(' customer_form_d .. 。',' entity_id',' id',对象(Magento \ Ui \ DataProvider \ EavValidationRules),对象(Magento \ Customer \ Model \ ResourceModel \ Customer \ CollectionFactory),对象(Magento \ Eav \ Model \ Config),对象(Magento \ Framework \ View \ Element \ UiComponent \ DataProvider \ FilterPool),数组,数组)

     

#7 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89):Magento \ Framework \ ObjectManager \ Factory \ AbstractFactory-> createObject(' Magento \ Custome ...',Array)

     

#8 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(57):Magento \ Framework \ ObjectManager \ Factory \ Dynamic \ Developer-> create(' Magento \ Custome ......',数组)

     

#9 /var/www/html/vendor/magento/framework/View/Element/UiComponent/Argument/Interpreter/ConfigurableObject.php(60):Magento \ Framework \ ObjectManager \ ObjectManager-> create(&#39) ; Magento \ Custome ...',Array)

     

#10 /var/www/html/var/generation/Magento/Framework/Data/Argument/InterpreterInterface/Proxy.php(95):Magento \ Framework \ View \ Element \ UiComponent \ Argument \ Interpreter \ ConfigurableObject-&gt ;评估(阵列)

     

#11 /var/www/html/vendor/magento/framework/Data/Argument/Interpreter/Composite.php(61):Magento \ Framework \ Data \ Argument \ InterpreterInterface \ Proxy-&gt; evaluate(Array)< / p>      

#12 /var/www/html/vendor/magento/module-ui/Model/Manager.php(188):Magento \ Framework \ Data \ Argument \ Interpreter \ Composite-&gt; evaluate(Array)

     

#13 /var/www/html/vendor/magento/module-ui/Model/Manager.php(192):Magento \ Ui \ Model \ Manager-&gt; evaluateComponentArguments(Array)

     

#14 /var/www/html/vendor/magento/module-ui/Model/Manager.php(172):Magento \ Ui \ Model \ Manager-&gt; evaluateComponentArguments(Array)

此问题发生在迁移后,我已经尝试了所有缓存进程并删除了很多次,所以请提供一些其他好方法来解决 如果需要任何其他信息,请告诉我。

1 个答案:

答案 0 :(得分:0)

您可以更改\ Magento \ Eav \ Model \ Entity \ Attribute \ Source \ Config 来自

public function __construct(array $options)

public function __construct(array $options = null)

在行上做一个breackpoint

$this->_optionsData = $options;

捕获未设置$ options的情况。因此,您将找到相应的属性并进行修复。

请参阅此链接:-https://github.com/magento/magento2/issues/10141

此链接解决了我的问题。