升级 Magento 2.3.4 到 2.4 后产品无法保存,显示错误

问题描述 投票:0回答:2

我已将 magento 升级到 2.4,同时保存产品显示错误。 我已尝试按计划更新、设置升级、缓存清理重新索引、给予 root 用户权限,但在产品保存时仍然遇到此问题。

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'm24.scconnector_google_feed_cl' doesn't exist, query was: DELETE FROM `catalog_product_entity_media_gallery_value` WHERE (value_id = 630 AND entity_id = 640 AND store_id = 0)

我试过以下命令:

php bin/magento cron:install
php bin/magento cron:run
php bin/magento index:reindex
mysql -u root -p set global log_bin_trust_function_creators=1;
php bin/magento module:disable Magento_GoogleShoppingAds

我找不到表“scconnector_google_feed_cl”。

谁能告诉我为什么这张表在从 Magento 2.3.4 迁移到 2.4 后不显示?

谁能给我创建表 scconnector_google_feed_cl 的 SQL 查询,以便我创建它?

magento magento2
2个回答
4
投票

正如我发布here

它曾在模块 Magento_GoogleShoppingAds 中使用,但该模块已结束 生活。

https://docs.magento.com/user-guide/sales-channels/google-eol.html

但是,该模块将触发器添加到您的 MySQL 数据库中,并且 有时,当您升级到例如Magento 2.3.6 模块,移除 表,但未能删除触发器。

我不得不在我的数据库中运行 show triggers 然后我不得不放弃 在我再次保存产品之前触发。

drop trigger trg_catalog_product_website_after_insert;
drop trigger trg_catalog_product_website_after_update;
drop trigger trg_catalog_product_website_after_delete;

2
投票
DROP TRIGGER IF EXISTS trg_catalog_product_entity_media_gallery_value_after_insert;
DROP TRIGGER IF EXISTS trg_catalog_product_entity_media_gallery_value_after_update;
DROP TRIGGER IF EXISTS trg_catalog_product_entity_media_gallery_value_after_delete;
© www.soinside.com 2019 - 2024. All rights reserved.