I’ve seen this error before and I believe i’ve fixed it in the past but i can’t seem to resolve it atm. So the Argument 1 passed must be of the type array, null given, called in vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121.
I think it something to do with an eav attribute related to customers. Not sure how to determine which attribute it may be because we have alot.
I did see a possible quick fix/patch that said to do this but i know it goes against magento values by editing the core.
EavModelEntityAttributeSourceConfigFactory
in code you have line like this
$this->configFactory->create();
but should be
$this->configFactory->create($optionsData);
1 exception(s):
Exception #0 (MagentoFrameworkExceptionRuntimeException): Type Error occurred when creating object: MagentoEavModelEntityAttributeSourceConfig, Argument 1 passed to MagentoEavModelEntityAttributeSourceConfig::__construct() must be of the type array, null given, called in /srv/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121
Exception #0 (MagentoFrameworkExceptionRuntimeException): Type Error occurred when creating object: MagentoEavModelEntityAttributeSourceConfig, Argument 1 passed to MagentoEavModelEntityAttributeSourceConfig::__construct() must be of the type array, null given, called in /srv/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121
<pre>#1 MagentoFrameworkObjectManagerFactoryCompiled->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#2 MagentoFrameworkObjectManagerObjectManager->create() called at [vendor/magento/framework/Validator/UniversalFactory.php:36]
#3 MagentoFrameworkValidatorUniversalFactory->create() called at [vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:642]
#4 MagentoEavModelEntityAttributeAbstractAttribute->getSource() called at [vendor/magento/module-customer/Model/AttributeMetadataConverter.php:98]
#5 MagentoCustomerModelAttributeMetadataConverter->createMetadataAttribute() called at [vendor/magento/module-customer/Model/Metadata/AddressMetadata.php:77]
#6 MagentoCustomerModelMetadataAddressMetadata->getAttributeMetadata() called at [vendor/magento/module-customer/Model/Metadata/AddressMetadata.php:109]
#7 MagentoCustomerModelMetadataAddressMetadata->getAllAttributesMetadata() called at [vendor/magento/module-customer/Model/Metadata/CachedMetadata.php:85]
#8 MagentoCustomerModelMetadataCachedMetadata->getAllAttributesMetadata() called at [vendor/magento/module-customer/Ui/Component/Listing/AttributeRepository.php:90]
#9 MagentoCustomerUiComponentListingAttributeRepository->getList() called at [vendor/magento/module-customer/Ui/Component/Listing/Columns.php:112]
#10 MagentoCustomerUiComponentListingColumns->prepare() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#11 MagentoCustomerUiComponentListingColumnsInterceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#12 MagentoCustomerUiComponentListingColumnsInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/amasty/orderattr/Model/ResourceModel/Value/Plugin/Order/Grid/Columns.php:57]
#13 AmastyOrderattrModelResourceModelValuePluginOrderGridColumns->aroundPrepare() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#14 MagentoCustomerUiComponentListingColumnsInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#15 MagentoCustomerUiComponentListingColumnsInterceptor->___callPlugins() called at [generated/code/Magento/Customer/Ui/Component/Listing/Columns/Interceptor.php:23]
#16 MagentoCustomerUiComponentListingColumnsInterceptor->prepare() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:164]
#17 MagentoFrameworkViewLayoutGeneratorUiComponent->prepareComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:161]
#18 MagentoFrameworkViewLayoutGeneratorUiComponent->prepareComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:142]
#19 MagentoFrameworkViewLayoutGeneratorUiComponent->generateComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:103]
#20 MagentoFrameworkViewLayoutGeneratorUiComponent->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:93]
#21 MagentoFrameworkViewLayoutGeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:365]
#22 MagentoFrameworkViewLayout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:32]
#23 MagentoFrameworkViewLayoutInterceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#24 MagentoFrameworkViewLayoutBuilder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:65]
#25 MagentoFrameworkViewPageBuilder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#26 MagentoFrameworkViewLayoutBuilder->build() called at [vendor/magento/framework/View/Layout.php:271]
#27 MagentoFrameworkViewLayout->build() called at [vendor/magento/framework/View/Layout.php:896]
#28 MagentoFrameworkViewLayout->getBlock() called at [vendor/magento/module-backend/Model/View/Result/Page.php:26]
#29 MagentoBackendModelViewResultPage->setActiveMenu() called at [vendor/magento/module-customer/Controller/Adminhtml/Index/Index.php:28]
#30 MagentoCustomerControllerAdminhtmlIndexIndex->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#31 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#32 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#33 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->___callPlugins() called at [generated/code/Magento/Customer/Controller/Adminhtml/Index/Index/Interceptor.php:23]
#34 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#35 MagentoFrameworkAppActionAction->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:151]
#36 MagentoBackendAppAbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#37 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#38 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:145]
#39 MagentoBackendAppActionPluginAuthentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#40 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#41 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->___callPlugins() called at [generated/code/Magento/Customer/Controller/Adminhtml/Index/Index/Interceptor.php:32]
#42 MagentoCustomerControllerAdminhtmlIndexIndexInterceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
#43 MagentoFrameworkAppFrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
#44 MagentoFrameworkAppFrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:147]
#45 MagentoFrameworkAppFrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#46 MagentoFrameworkAppFrontControllerInterceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#47 MagentoFrameworkAppFrontControllerInterceptor->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#48 MagentoFrameworkAppFrontControllerInterceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#49 MagentoFrameworkAppFrontControllerInterceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#50 MagentoFrameworkAppHttp->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#51 MagentoFrameworkAppBootstrap->run() called at [pub/index.php:30]
</pre>
Has anybody else ran into this issue and know of a fix?