在我的TYPO3 8.7安装的生产环境中,当我试图打开TYPO3后端模块“索引”时,我会收到以下错误消息:
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.这个问题似乎存在于函数vendor/typo3/cms/typo3/sysext/indexed_search/Classes/Domain/Repository/AdministrationRepository.php ()中的getRecordsNumbers()循环中
经过一些研究,closeCursor()似乎是必要的,但我无法集成它。
有趣的是,错误只发生在我的生产环境中。在开发机器上,一切都很好!
那么,这是TYPO3错误还是我的生产机器的配置问题呢?
我的环境:
- 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。

发布于 2019-01-11 13:14:44
结果表明,数据库表index_rel的索引被破坏了。
删除表并重建它解决了我的问题。
https://stackoverflow.com/questions/53448594
复制相似问题