更改数据库后TYPO3网站不起作用 [英] TYPO3 website doesn't work after changing db

查看:20
本文介绍了更改数据库后TYPO3网站不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想复制我的 TYPO3 CMS 6.2.18 网站 - 到目前为止我所做的:

I want to make a copy of my TYPO3 CMS 6.2.18 website - what I did so far:

  1. 复制整个网站文件夹(包括 TYPO3 安装)
  2. 复制整个数据库(使用新名称)
  3. 为复制的数据库创建一个新的数据库用户
  4. 根据新的 DB+User 调整文件 /typo3conf/LocalConfiguration.php

现在我在调用我复制的 TYPO3 网站的不同网址时收到以下错误:

Now I'm receiving following errors when calling different urls of my copied TYPO3 website:

当我尝试从安装工具/typo3/install(这是当前唯一可用的页面)内部调用升级向导"时:

When I try calling the "Upgrade Wizard" from inside the install tool /typo3/install (which is the only page that currently works):

#1: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/<my-domain>/typo3/sysext/install/Classes/Service/SqlSchemaMigrationService.php line 409

当我调用 /typo3

 #1: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/<my-domain>/typo3/sysext/backend/Classes/Utility/BackendUtility.php line 3022
4 count(NULL)
...
/var/www/vhosts/<my-domain>/typo3/sysext/backend/Classes/Utility/BackendUtility.php:
03020:   $signals = array();
03021:   $modData = $GLOBALS['BE_USER']->getModuleData('TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getUpdateSignal', 'ses');
03022:   if (!count($modData)) {
03023:    return '';
03024:   }

当我调用

#1: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/<my-domain>/typo3/sysext/core/Classes/Database/PreparedStatement.php line 582
...after calling... 
TYPO3\CMS\Core\Database\PreparedStatement::convertNamedPlaceholdersToQuestionMarks("SELECT * FROM fe_session_data WHERE hash = :hash", array, array)

我感兴趣的是:
复制网站后,该副本有效,只有在将其引用到复制的数据库后才显示这些错误.

What's interesting to me:
After copying the website the copy worked, only after referencing it to the copied db it showed these errors.

有人知道我可以做什么/正在寻找什么吗?
我尝试删除所有缓存、安装工具清理"部分中显示的所有表以及typoe3temp 文件夹中的所有文件.

Anyone an idea what I could do / be looking for?
I tried deleting all cache, all tables shown in the "Cleanup" part of the install tool and all files in the typoe3temp folder already.

推荐答案

所以,正如我在评论中所说的.可能是 PHP 版本的问题,因为所有提到的错误(实际上是警告;))反映了不兼容的 PHP 代码.

So, as I have said in the comment. Probably the issue with PHP version, because of all the mentioned errors (warning actually ;) ) reflect the incompatible PHP code.

解决方案很简单,根据TYPO3的需要切换你的PHP版本:)

The solution is pretty easy, switch your PHP version according to TYPO3's need :)

这篇关于更改数据库后TYPO3网站不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆