1

When Creating a Customer registration I am getting this error

"We can't save the customer"

on front end. I have Migrated from Magento 1.9.1.1 to Magento 2.3.3.

This is error log:Exception message: Class Magento\Eav\Model\Attribute\Data\Datetime does not exist.

1
  • Replace Class Magento\Eav\Model\Attribute\Data\Datetime to Class Magento\Eav\Model\Attribute\Data\Date. and check it. – Dhaduk Mitesh Jan 23 '20 at 5:20
0

This seems to be a change in the migration mapping files I had overlooked. I had the same problem, added a class in /vendor/magento/module-eav/Model/Attribute/Data/Datetime.php.

One of those nice things you find out after moving things into production :-(

<?php
namespace Magento\Eav\Model\Attribute\Data;

use Magento\Framework\App\RequestInterface;

/**
 * EAV Entity Attribute Date Data Model
 *
 * @author      Magento Core Team <core@magentocommerce.com>
 */
class Datetime extends Date
{
}
0

First, you need to check whether there are any backend_model columns which have value = Magento\Eav\Model\Attribute\Data\Datetime in the eav_attribute table.

If yes, edit them to value = Magento\Eav\Model\Entity\Attribute\Backend\Datetime

Next, do the same action, check whether there are any frontend_model columns which have value = Magento\Eav\Model\Attribute\Data\Datetime then change them to value = Magento\Eav\Model\Entity\Attribute\Backend\Datetime

And finally, check whether there are any attribute_model columns which have value = Magento\Eav\Model\Attribute\Data\Datetime then edit them to value = null

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.