简体   繁体   English

typo3 迁移到新服务器不工作

[英]typo3 migration to new server not working

I trying to move a typo3 website to a new server.I moved all the files across and created a new database and imported all the tables from the old database.我试图将 typo3 网站移动到新服务器。我移动了所有文件并创建了一个新数据库并从旧数据库导入了所有表。 I then updated the localconf.php file with the new database settings.然后我用新的数据库设置更新了 localconf.php 文件。 However, I'm now getting a series of fatal errors which seem to be because the paths in the typo3 old website used a mixture of uppercase and lowercase letters, but on the new server all the files and folders are lowercase, and it is throwing an error whenever an internal path is using uppercase letters because it can't find the path or file.I don't know if this is particular to 1&1 who are my hosts.但是,我现在遇到了一系列致命错误,这似乎是因为 typo3 旧网站中的路径混合使用了大小写字母,但在新服务器上所有文件和文件夹都是小写的,并且它正在抛出每当内部路径使用大写字母时都会出错,因为它找不到路径或文件。我不知道这是否是我的主机 1&1 特有的。

Is there an easy way to fix this or do I have to go through all the internal code to change all the paths to lowercase?有没有一种简单的方法可以解决这个问题,还是我必须通过所有内部代码 go 才能将所有路径更改为小写? Which seems a little unrealistic.这似乎有点不现实。 I was hoping I'd be able to transfer the website over in a few hours, but so far have spent about a day on it.我希望我能在几个小时内转移网站,但到目前为止已经花了大约一天的时间。 I also do not know typo3 at all, this is my first time with it.我也完全不知道 typo3,这是我第一次接触它。 Though I am experienced in setting up Drupal and Joomla websites and thought it wouldn't be so different.虽然我在设置 Drupal 和 Joomla 网站方面经验丰富,但认为不会有太大不同。

Any advice would be much appreciated.任何建议将不胜感激。

Ben

EDIT - Additional information:编辑 - 附加信息:

The error message I'm getting is:我收到的错误消息是:

Fatal error: require_once() [function.require]: Failed opening required '/htdocs/vincent/typo3conf/ext/formhandler/Resources/PHP/Hooks/class.tx_formhandler_stdwrap.php' (include_path='.:/usr/lib/php5') in /htdocs/vincent/t3lib/class.t3lib_div.php on line 5046致命错误:require_once() [function.require]: 需要打开失败 '/htdocs/vincent/typo3conf/ext/formhandler/Resources/PHP/Hooks/class.tx_formhandler_stdwrap.php' (include_path='.:/usr/lib/ php5') 在 /htdocs/vincent/t3lib/class.t3lib_div.php 第 5046 行

The line 5046 is the last line of code below.第 5046 行是下面的最后一行代码。 I don't know which path is being referred to in the $requireFile variable.我不知道 $requireFile 变量中引用了哪个路径。

    /**
 * Require a class for TYPO3
 * Useful to require classes from inside other classes (not global scope). A limited set of global variables are available (see function)
 */
public static function requireOnce($requireFile)    {
    global $T3_SERVICES, $T3_VAR, $TYPO3_CONF_VARS;

    require_once ($requireFile);
}

Looks like, the problem is in the cache, which was made on Your old installation.看起来,问题出在缓存中,它是在您的旧安装上创建的。 Check if typo3temp, typo3conf/temp_* files are removed.检查是否删除了 typo3temp、typo3conf/temp_* 文件。

If it will not work, pelase post here fatal errors You get.如果它不起作用,请在此处发布致命错误。 It will help to understand the nature of Your problem.这将有助于了解您的问题的性质。

I managed to resolve the problem by changing the names of any folders with uppercase letters to lowercase.我设法通过将大写字母的任何文件夹的名称更改为小写来解决问题。

When I moved the site across I had used a zip file, and for some reason, when I unzipped the file it must have created some of the folder names using initial capitals and this is what had caused the problem.当我移动网站时,我使用了一个 zip 文件,出于某种原因,当我解压缩文件时,它一定是使用首字母大写创建了一些文件夹名称,这就是导致问题的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM