1

我正在尝试为调度程序设置一个 cronjob,但出现不存在的数据库表的错误。

通过 cli_dispatch.phpsh

/usr/local/bin/php_cli /home/www/MyAccount/html/typo3/typo3/cli_dispatch.phpsh scheduler

Oops, an error occurred: An exception occurred while executing 'SELECT `content` FROM `cf_cache_hash` WHERE (`identifier` = ?) AND (`expires` >= ?)' with params ["22b1624a39d90c5db056873686cabf4f", 1498474993]:

Table 'usr_MyAccount_1.cf_cache_hash' doesn't exist

通过 Symfony 命令

/usr/local/bin/php_cli /home/www/MyAccount/html/typo3/typo3/sysext/core/bin/typo3 scheduler:run

Uncaught TYPO3 Exception An exception occurred while executing 'SELECT `content` FROM `cf_extbase_object` WHERE (`identifier` = ?) AND (`expires` >= ?)' with params ["3bcc835c5d8d7866a0ce2dc41464b9a8", 1498475122]:

Table 'usr_MyAccount_1.cf_extbase_object' doesn't exist
thrown in file /html/typo3/typo3_src-8.7.2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
in line 53

“数据库分析器”说一切正常。我错过了什么吗?

4

1 回答 1

1

问题是 APCu 缓存。由于 APCu 不适用于 CLI,因此您必须为 CLI 命令禁用它。到目前为止,还没有一个很好的解决方案来解决这个问题。见:https ://forge.typo3.org/issues/78140

于 2017-06-29T13:53:23.073 回答