Note: Backup your database first.
Find the string Attempt to load value of nonexistent EAV attribute
in our project. On my current Magento version 2.2.2, foud it in
vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php
foreach ($connection->fetchAll($unionSelect) as $attributeValue) {
if (isset($attributesMap[$attributeValue['attribute_id']])) {
$entityData[$attributesMap[$attributeValue['attribute_id']]] = $attributeValue['value'];
} else {
$this->logger->warning(
"Attempt to load value of nonexistent EAV attribute '{$attributeValue['attribute_id']}'
for entity type '$entityType'."
);
}
}
We need to dig into this part with xDebug:
Check entity_id
in eav_attribute
and check backend_type
. For example: int, datetime, decimal, varchar...
And then find the table of this type: catalog_product_*