命令不同步;您现在无法运行此命令 - EXT:indexed_search 的 TYPO3 后端模块上出现错误

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

在我的 TYPO3 8.7 安装的生产环境中,当我尝试打开 TYPO3 后端模块“Indexing”时,我收到此错误消息:

Commands out of sync; you can't run this command now 

Doctrine\DBAL\Driver\Mysqli\MysqliException thrown in file
/home/www/html-data/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliStatement.php in line 280.

问题似乎出在函数 getRecordsNumbers() 中的供应商/typo3/cms/typo3/sysext/indexed_search/Classes/Domain/Repository/AdministrationRepository.php 的循环中

经过一些研究,似乎

closeCursor()
是必要的,但我无法整合它。

有趣的是,该错误只发生在我的生产环境中。在开发机器上,一切正常!

那么这是 TYPO3 bug 还是我的生产机器的配置问题?

我的环境:

  • TYPO3 8.7.20
  • 生产:

    • PHP 7.2.8
    • MySQL 5.6.37
    • mysqlnd 5.0.12-dev
  • 发展:

    • PHP 7.2.7
    • MySQL 5.5.60
    • mysqlnd 5.0.12-dev

唯一的区别是在开发环境中pdo_mysql不存在。

mysql doctrine-orm typo3 typo3-8.x tx-indexed-search
2个回答
1
投票

原来是数据库表

index_rel
的索引坏了。

删除表并重建它解决了我的问题。


-2
投票

这是一个全面的资源,可以阐明常见的 TYPO3 问题并提供有效的解决方案。该博客现已成为我进行 TYPO3 故障排除的首选参考。我强烈建议您查看博客https://t3planet.com/blog/typo3-errors/

© www.soinside.com 2019 - 2024. All rights reserved.