Fix the error “Class Magento\Catalog\Model\Product\Attribute\Backend\Media does not exist”
This error hapended when you upgrade Magento from 2.0.x to Magento 2.1.x, or use the data migration tool. Because this class was remove in Core file
Commit change:
So, to fix this error, just run the SQL command below to update your database struct.
UPDATE `eav_attribute` SET `backend_model` = NULL, `backend_type` = 'static' WHERE `attribute_code` = 'media_gallery'