I just installed php-cuong customer avatar (https://github.com/php-cuong/magento2-customer-avatar) on magento 2.1.8
My problem is that when I want to upload an image in customer panel it has error and not to upload image. In the admin panel, customer tab when I choose a customer and upload image it saves in pub/media but not show avatar and sends error.
2
Answers
CustomerProfilePicture/Model/Attribute/Backend/Avatar.php
In this file there is one function
just add
this if condition , and you are done
because you are getting undefined index error for
$dataSource[‘data’][‘items’]
Go to
Find
and replace with
And you are ready to Go!!!!