0

在我的 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.

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

经过一些研究,这似乎closeCursor()是必要的,但我无法整合它。

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

那么这现在是 TYPO3 错误还是我的生产机器的配置问题?

我的环境:

  • 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 不存在。

在此处输入图像描述

4

1 回答 1

0

原来是数据库表的索引index_rel坏了。

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

于 2019-01-11T13:14:44.323 回答