【问题标题】:Magento Error "One or more indexers are invalid. Make sure your Magento cron job is running."Magento 错误“一个或多个索引器无效。确保您的 Magento cron 作业正在运行。”
【发布时间】:2016-07-31 09:23:34
【问题描述】:

当我尝试将 Magento 安装到 Localhost 时,出现以下错误:

一个或多个索引器无效。确保您的 Magento cron 作业是 正在运行。

我尝试了以下方法来重新索引索引器 -

php bin/magento indexer:reindex

但它没有工作。为什么会出现这个错误?

【问题讨论】:

标签: magento magento2


【解决方案1】:

打开magento文件夹并按住shift +右键单击->在此处使用命令窗口,然后写入:-

php bin/magento indexer:reindex

然后按回车等待一段时间处理

【讨论】:

    【解决方案2】:

    要在 Magento 2 中重新索引,请转到您的 Magento 安装的 CLI,然后转到 root folder 并运行以下命令:

    php bin/magento indexer:reindex
    

    【讨论】:

      【解决方案3】:

      您必须使用 cmd 命令重新索引所有索引。

      php bin/magento indexer:reindex
      

      更多命令请到http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-index.html

      这不是错误,无论何时安装 magento,它都需要构建索引。

      【讨论】:

      • 您能告诉我如何将下载的主题添加到 Magento。请帮我解决一下这个。我是 Magento 的新手,已经在网上搜索了很多文档,但没有找到任何答案。
      • 当我运行你给出的上述命令时,它给出:'php' 不是内部或外部命令、可运行程序或批处理文件。
      • 您必须在环境路径变量中设置您的 php 程序,或者在此命令中使用 php.exe 的路径代替 php。
      猜你喜欢
      • 2013-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-09
      • 1970-01-01
      • 2014-09-09
      相关资源
      最近更新 更多