TYPO3版本6到版本8的兼容性问题

时间:2017-07-20 09:41:11

标签: typo3 typo3-extensions

将typo3版本6升级到8.7.3时出现此数据库错误...

An exception occurred while executing 'SELECT `pid` FROM `sys_template` WHERE (root = 1 AND deleted = 0 AND hidden = 0 AND starttime <= :starttime AND (endtime = 0 OR endtime > :endtime)) AND ((`sys_template`.`deleted` = 0) AND (`sys_template`.`hidden` = 0) AND (`sys_template`.`starttime` <= 1500543000) AND ((`sys_template`.`endtime` = 0) OR (`sys_template`.`endtime` > 1500543000)))': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':starttime AND (endtime = 0 OR endtime > :endtime)) AND ((`sys_template`.`delete' at line 1 

请查看截图。

Error while upgrading the project

Getting the error while performing Database analyzer

1 个答案:

答案 0 :(得分:2)

数据库配置变量已从TYPO3 v7更改为v8 ^^

不是

$GLOBALS['TYPO3_CONF_VARS']['DB']['database'] $GLOBALS['TYPO3_CONF_VARS']['DB']['host'] $GLOBALS['TYPO3_CONF_VARS']['DB']['username'] $GLOBALS['TYPO3_CONF_VARS']['DB']['password']

,但是

$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host'] $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['dbname'] $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['user'] $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['password']

在通过AdditionalConfiguration.php

配置其他环境时尤其如此
相关问题