cancel
Showing results for 
Search instead for 
Did you mean: 

problem when I change user group.

problem when I change user group.

 

Good evening, when I go to change the user I get the following error

Fatal error: Uncaught Error: Class 'Magento\Framework\Data\Form\Filter\Datetime' not found in /home/techsid0/public_html/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php:216 Stack trace: #0 /home/techsid0/public_html/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php(195): Magento\Customer\Model\Metadata\Form\AbstractData->_getFormFilter() #1 /home/techsid0/public_html/vendor/magento/module-customer/Model/Metadata/Form/Date.php(20): Magento\Customer\Model\Metadata\Form\AbstractData->_applyInputFilter('2019-02-02 17:1...') #2 /home/techsid0/public_html/vendor/magento/module-customer/Model/Metadata/Form.php(242): Magento\Customer\Model\Metadata\Form\Date->extractValue(Object(Magento\Framework\App\Request\Http)) #3 /home/techsid0/public_html/vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php(185): Magento\Customer\Model\Metadata\Form->extractData(Object(Magento\Framework\App\Request\Http), 'customer') #4 /home/techsid0/public_html/vendor/magento/module-customer/Controller/A in /home/techsid0/public_html/vendor/magento/module-customer/Model/Metadata/Form/AbstractData.php on line 216
4 REPLIES 4

Re: problem when I change user group.

Hello @daniele_laterza 

 

 

With the help of some of the comments, I discovered that when saving a Customer, a field called created_at was looking for a class datetime for validation. However, there is no filter for datetime validation.

Going into the database, I found in table customer_eav_attribute the column input_filter. Changing datetime to date for the relevant attribute fixed this specific problem.

 

Hope it will help you, if works then mark as a solution.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: problem when I change user group.

I didn't understand what I have to do in the database. Anyway, I went to string 216

 

/home/techsid0/public_html/vendor/magento/module-customer/Model/Metadata/Form.php

and I found this wording. Can anyone help me?

 

 if ($this->_ignoreInvisible && !$attribute->isVisible() || in_array(
$attribute->getAttributeCode(),
$this->_filterAttributes
)

Re: problem when I change user group.

I solved but partly. I'll explain. I changed what you told me but now I get the message "Something went wrong while saving the client."
And it doesn't save anything.Modifica per problema ingrosso2.jpg

Re: problem when I change user group.

I still haven't solved it.