gpt4 book ai didi

exception - 从 magento 2 的管理面板编辑客户详细信息时出现异常

转载 作者:行者123 更新时间:2023-12-03 20:29:56 24 4
gpt4 key购买 nike

我在下面附上异常日志和基本 URL

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

异常(exception):

1 exception(s): Exception #0 (BadMethodCallException): Missing required argument $options of Magento\Eav\Model\Entity\Attribute\Source\Config.

Exception #0 (BadMethodCallException): Missing required argument $options of 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('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->create('Magento\Eav\Mod...', Array)

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

#4 /var/www/html/vendor/magento/module-customer/Model/Customer/DataProvider.php(320): Magento\Eav\Model\Entity\Attribute\AbstractAttribute->getSource()

#5 /var/www/html/vendor/magento/module-customer/Model/Customer/DataProvider.php(152): Magento\Customer\Model\Customer\DataProvider->getAttributesMeta(Object(Magento\Eav\Model\Entity\Type))

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

#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...', Array)

#9 /var/www/html/vendor/magento/framework/View/Element/UiComponent/Argument/Interpreter/ConfigurableObject.php(60): Magento\Framework\ObjectManager\ObjectManager->create('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->evaluate(Array)

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

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

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

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



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

最佳答案

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

public function __construct(array $options)


public function __construct(array $options = null)

并在 line 处设置一个断点
$this->_optionsData = $options;

在未设置 $options 时捕获这种情况。所以你会找到相应的属性并修复它。

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

这个链接解决了我的问题。

关于exception - 从 magento 2 的管理面板编辑客户详细信息时出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44291092/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com