magento2-customer-avatar
magento2-customer-avatar copied to clipboard
Unable to save
Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Customer\Model\Metadata\Form\File::extractValue() must implement interface Magento\Framework\App\RequestInterface, none given, called in /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php on line 58 and defined in /opt/lampp/htdocs/magento2/vendor/magento/module-customer/Model/Metadata/Form/File.php:107 Stack trace: #0 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Customer\Model\Metadata\Form\File->extractValue() #1 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Customer\Model\Metadata\Form\Image\Interceptor->___callParent('extractValue', Array) #2 /opt/lampp/htdocs/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Customer\Model\Metadata\Form\Image\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http)) #3 /opt/lampp/htdocs/mij_n in /opt/lampp/htdocs/magento2/vendor/magento/module-customer/Model/Metadata/Form/File.php on line 107
http://localhost/magento2/customer/account/editPost/ Magento version 2.2
https://github.com/php-cuong/magento2-customer-avatar/blob/master/Plugin/Metadata/Form/Image.php#L37 - this return does not necessary for Magento 2.2
I am having the same issue at Magento version 2.3.2
@dodiya-divyarajsinh @Simonchik @priyanka795 If anyone's still having the issue, update this line to
return [$value];
That solved it for me.
Thanks for the reply. But we remove your module.
Thanks and Regards
Priyanka Skype ID:psingh613
- https://plus.google.com/u/0/+PriyankaSingh33 https://www.facebook.com/33priyanka https://twitter.com/priyanka895509 https://www.linkedin.com/in/priyanka-singh-38422878/*
On Mon, Oct 21, 2019 at 8:45 PM Prateek Karki [email protected] wrote:
@dodiya-divyarajsinh https://github.com/dodiya-divyarajsinh @Simonchik https://github.com/Simonchik @priyanka795 https://github.com/priyanka795 If anyone's still having the issue, update this line https://github.com/php-cuong/magento2-customer-avatar/blob/master/Plugin/Metadata/Form/Image.php#L37 to
return [$value];
That solved it for me.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/php-cuong/magento2-customer-avatar/issues/5?email_source=notifications&email_token=AHWMBMVWANQJ3TTPUJGNJUDQPXBRHA5CNFSM4E2YWST2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2VZ7I#issuecomment-544562429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWMBMUT5TE4AUHUTEJ4YHDQPXBRHANCNFSM4E2YWSTQ .
Thanks prateekkarki this solution works fine!!
@dodiya-divyarajsinh @Simonchik @priyanka795 If anyone's still having the issue, update this line to
return [$value];
That solved it for me.