I am unable to add new customer in admin or unable to edit customer. i am getting this error.

Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null given, called in /opt/lampp/htdocs/letoilemigration/vendor/magento/framework/View/Element/UiComponentFactory.php on line 220 and defined in /opt/lampp/htdocs/letoilemigration/vendor/magento/framework/View/Element/UiComponentFactory.php:172 Stack trace: #0 /opt/lampp/htdocs/letoilemigration/vendor/magento/framework/View/Element/UiComponentFactory.php(220): Magento\Framework\View\Element\UiComponentFactory->argumentsResolver('unsubscribe', NULL) #1 /opt/lampp/htdocs/letoilemigration/vendor/magento/module-ui/Component/Form/Field.php(84): Magento\Framework\View\Element\UiComponentFactory->create('unsubscribe', 'Null', Array) #2 /opt/lampp/htdocs/letoilemigration/vendor/magento/framework/View/Layout/Generator/UiComponent.php(159): Magento\Ui\Component\Form\Field->prepare() #3 /opt/lampp/htdocs/letoilemigration/vendor/magento/framework/View/Layout/Generator/UiComponent.php( in /opt/lampp/htdocs/letoilemigration/vendor/magento/framework/View/Element/UiComponentFactory.php on line 172

I have removed var and genrated folder also and ran all required command but still getting this error.

Anyone have an idea for that please?

  • 1
    have you done any customization related to the newsletter? – kunj Aug 28 '18 at 10:38
  • No I did not customize anything – twinkle_gupta Aug 28 '18 at 10:40
  • added any extension recently? – kunj Aug 28 '18 at 10:43
  • No all the extensions are core extension. – twinkle_gupta Aug 28 '18 at 10:44
  • Ok, try after php bin/magento setup:di:compile,php bin/magento cache:flush, php bin/magento setup:static:deploy -f – kunj Aug 28 '18 at 10:46

I deleted one row eav_attribute table where attribute_id =164 that worked for me.

  • just a note to this, the entity_id listed here doesn't matter, it's just about any custom customer or product attribute you (or your developer) built in to the Magento 1 site. I had 3 to remove but i knew exactly what i'd written in. – John Jan 18 '19 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.