magento 2 中的客户网格为空
Customer grid is empty in magento 2
我正在使用 Magento 2.2.2 开发在线商店。我必须从旧站点导入客户。我面临的问题是,在 magento 2.2.2 客户网格中是空的,甚至没有显示单个网格标题(附截图)。
我可以成功添加新客户,但新客户也没有显示在网格中。如果我再次尝试使用相同的电子邮件,则显示客户已经存在。
我试过的解决方案:
php bin/magento indexer:reindex
php bin/magento indexer:reindex customer_grid
php bin/magento cache:clean
php bin/magento cache:flush
谁能帮帮我?我错过了什么吗?有什么办法可以解决这个问题吗?
首先,使用select * from customer_entity limit 2;
检查主table中是否存在客户记录
然后,检查客户网格 table 是否有可用记录,使用 select * from customer_grid_flat limit 2;
在重建索引之前,最好通过select * from indexer_state;
检查索引器的状态
然后,如果客户管理网格索引状态有效或处于工作状态,请使用以下查询更新重新索引的状态以使其无效
update indexer_state set status = 'invalid' where status = 'working'
现在,您必须再次 运行 php bin/magento indexer:reindex
好吧,你必须更新 indexer_state 因为可能在重新索引过程中出了点问题,因此你需要重置数据库条目。
如果索引的状态不是 invalid,Re-index 不起作用(意味着 re-index 忽略 valid 和工作 状态。
在缓存、重新索引并尝试其他一些操作后,我仍然无法在客户网格中看到客户。
然后我决定删除以下表格并从新的 magento 导入。
- 商店
- store_group
- store_website
我安装了全新的 magento 2.2.2,我导出了以上 3 个表并导入到我的开发版本中,它对我有用。我可以在客户网格中看到所有现有客户。
我不知道出了什么问题,我一点头绪都没有,但是花了 2 天时间终于客户回来了,这对我来说已经足够了。
我正在使用 Magento 2.2.2 开发在线商店。我必须从旧站点导入客户。我面临的问题是,在 magento 2.2.2 客户网格中是空的,甚至没有显示单个网格标题(附截图)。
我可以成功添加新客户,但新客户也没有显示在网格中。如果我再次尝试使用相同的电子邮件,则显示客户已经存在。
我试过的解决方案:
php bin/magento indexer:reindex
php bin/magento indexer:reindex customer_grid
php bin/magento cache:clean
php bin/magento cache:flush
谁能帮帮我?我错过了什么吗?有什么办法可以解决这个问题吗?
首先,使用select * from customer_entity limit 2;
然后,检查客户网格 table 是否有可用记录,使用 select * from customer_grid_flat limit 2;
在重建索引之前,最好通过select * from indexer_state;
然后,如果客户管理网格索引状态有效或处于工作状态,请使用以下查询更新重新索引的状态以使其无效
update indexer_state set status = 'invalid' where status = 'working'
现在,您必须再次 运行 php bin/magento indexer:reindex
好吧,你必须更新 indexer_state 因为可能在重新索引过程中出了点问题,因此你需要重置数据库条目。
如果索引的状态不是 invalid,Re-index 不起作用(意味着 re-index 忽略 valid 和工作 状态。
在缓存、重新索引并尝试其他一些操作后,我仍然无法在客户网格中看到客户。
然后我决定删除以下表格并从新的 magento 导入。
- 商店
- store_group
- store_website
我安装了全新的 magento 2.2.2,我导出了以上 3 个表并导入到我的开发版本中,它对我有用。我可以在客户网格中看到所有现有客户。
我不知道出了什么问题,我一点头绪都没有,但是花了 2 天时间终于客户回来了,这对我来说已经足够了。