magento invalid backend model specified giftmessage entity attribute backend boolean config

为了提高Magento的速度,通过禁用部分模块并使用全页缓存模块进行了优化。然而这导致了一个与EAV相关的问题,即禁用模块后数据库中仍保留对应记录。解决方法是清理数据库中与已禁用模块相关的记录。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

由于给magento瘦身 我禁用调很多模块 包括sale payment giftmessage等等 留下cms和产品展示等相关模块 加上full page cache全页缓存模块 这样速度就飞快了 那么问题来了 其中有一个invalid backend model specified giftmessage entity attribute backend boolean config 这是和eav相关的问题 由于禁用了giftmessage模块 数据库确依然存在对应的eav 所以出现了这样的问题 这样说来解决方案当然是清理数据库对应的记录 执行以下sql语句于eav_attribute 表 刷新缓存 编译等 问题解决。
SELECT *
FROM `eav_attribute`
WHERE (
`attribute_id` LIKE '%giftmessage%'
OR `entity_type_id` LIKE '%giftmessage%'
OR `attribute_code` LIKE '%giftmessage%'
OR `attribute_model` LIKE '%giftmessage%'
OR `backend_model` LIKE '%giftmessage%'
OR `backend_type` LIKE '%giftmessage%'
OR `backend_table` LIKE '%giftmessage%'
OR `frontend_model` LIKE '%giftmessage%'
OR `frontend_input` LIKE '%giftmessage%'
OR `frontend_label` LIKE '%giftmessage%'
OR `frontend_class` LIKE '%giftmessage%'
OR `source_model` LIKE '%giftmessage%'
OR `is_required` LIKE '%giftmessage%'
OR `is_user_defined` LIKE '%giftmessage%'
OR `default_value` LIKE '%giftmessage%'
OR `is_unique` LIKE '%giftmessage%'
OR `note` LIKE '%giftmessage%'
)
参考文章:http://www.learnmagento.org/magento-bug-fixes/invalid-backend-model-specified/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值