简体   繁体   English

Magento 2产品没有出现 - 尝试了一切

[英]Magento 2 products not showing up - tried everything

I have 1000 products, they all show up in the admin panel under catalog. 我有1000个产品,它们都显示在目录下的管理面板中。 They are all enabled, have inventory over 0, they are all visible in catalog, search... I am running single store mode so I don't have a store to assign them to. 它们全部启用,库存超过0,它们都在目录中可见,搜索...我正在运行单店模式,所以我没有商店来分配它们。

I have ran re-index a few times. 我已经运行了几次重新索引。 I have deployed static content several times. 我已多次部署静态内容。 I have cleared cache manually (CLI) and thru admin panel. 我已手动清除缓存(CLI)并通过管理面板清除。 I have deleted everything in var/cache, var/di etc... and ran update/compile. 我删除了var / cache,var / di等中的所有内容......并运行了update / compile。 I have set chmod to 777 on those folders. 我已在这些文件夹上将chmod设置为777。

What else can I try? 我还能尝试什么?

There are no errors in the javascript console. javascript控制台中没有错误。 The only error I see is in Admin when I refresh a product page I get an error that "Attention: Something went wrong." 我看到的唯一错误是在刷新产品页面的管理员中我收到错误“注意:出了问题。”

The products were imported from X-Cart using the Lit extension. 使用Lit扩展从X-Cart导入产品。

Try running compilation command : php bin/magento setup:di:compile 尝试运行编译命令:php bin / magento setup:di:compile

Also please check the logs in var/log folder exception.log & system.log files 另请检查var / log文件夹exception.log和system.log文件中的日志

If nothing fruitful then please try disabling the extensions one by one & running php bin/magento setup:upgrade command after disabling extension/s, and yes please also check the permissions of files & folders.....if you are working on live server it should be 644 for files & 755 for folders. 如果没有结果,请尝试逐个禁用扩展并在禁用扩展名后运行php bin / magento setup:upgrade命令,是的还请检查文件和文件夹的权限.....如果你正在进行直播服务器文件应为644,文件夹应为755。 If you are working in local pc then it should be 777 for all files & folders. 如果你在本地电脑上工作,那么所有文件和文件夹应该是777。

Thank you. 谢谢。

Try to run: /bin/php /bin/magento indexer:reset 尝试运行:/ bin / php / bin / magento indexer:reset

After that login to your virtual product and check Stock Status. 在登录到您的虚拟产品并检查库存状态之后。

Thanks 谢谢

You can try this- 你可以尝试这个 -

In admin click to edit product and then change your store view from "All store views" to "Default Store View" and then check stock , status, categories etc. And then save the product. 在管理员中单击以编辑产品,然后将商店视图从“所有商店视图”更改为“默认商店视图”,然后检查库存,状态,类别等。然后保存产品。 And then execute reindex command and flush cache.php 然后执行reindex命令并刷新cache.php

php bin/magento indexer:reindex.
php bin/magento cache:flush.

Hope It helps you!!! 希望它能帮到你!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM