magento2-customer-avatar icon indicating copy to clipboard operation
magento2-customer-avatar copied to clipboard

Unable to save

Open dodiya-divyarajsinh opened this issue 6 years ago • 6 comments

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

dodiya-divyarajsinh avatar Apr 16 '18 09:04 dodiya-divyarajsinh

http://localhost/magento2/customer/account/editPost/ Magento version 2.2

dodiya-divyarajsinh avatar Apr 16 '18 09:04 dodiya-divyarajsinh

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

Simonchik avatar Jun 07 '18 12:06 Simonchik

I am having the same issue at Magento version 2.3.2

priyanka795 avatar Oct 10 '19 09:10 priyanka795

@dodiya-divyarajsinh @Simonchik @priyanka795 If anyone's still having the issue, update this line to

    return [$value];

That solved it for me.

prateekkarki avatar Oct 21 '19 15:10 prateekkarki

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.

sminmlc avatar Nov 01 '20 09:11 sminmlc