简体   繁体   English

CakePHP项目升级问题

[英]Problems with CakePHP project Upgrade

I have a CakePHP project, initially built using version 1.3. 我有一个CakePHP项目,最初是使用1.3版构建的。 I had saved the files long before and now wanted to deploy the site on my new machine. 我早就保存了文件,现在想在新计算机上部署站点。 My new machine runs on PHP 5.4 and hence there were lots of 'Strict Standard' warnings. 我的新机器在PHP 5.4上运行,因此有很多“严格标准”警告。

I, then downloaded CakePHP Version 2.0 and replaced it with my old 'cake' folder. 我,然后下载CakePHP版本2.0,并用我的旧“ cake”文件夹替换了它。 After that, I ran the 'Update all' command. 之后,我运行了“全部更新”命令。 I got a succesfully updated message. 我收到成功更新的消息。 However, I still had to manually change the names of few folders (from config to Config etc.) and specify a path for the bootstrap.php in the app/webroot/index.php 但是,我仍然必须手动更改几个文件夹的名称(从config到Config等),并在app / webroot / index.php中为bootstrap.php指定路径。

I have managed to get past all the errors, but one, that says "Fatal error: Class 'Dispatcher' not found in /path/to/app/webroot/index.php" on line 82. Is this some path specific error ? 我已经设法克服了所有错误,但是第82行上写着“致命错误:在/path/to/app/webroot/index.php中找不到致命错误:类'Dispatcher'”。这是某些特定于路径的错误吗?

You also need to manually replace the following: 您还需要手动替换以下内容:

  • app/index.php app / index.php
  • app/webroot/index.php app / webroot / index.php
  • app/webroot/test.php app / webroot / test.php
  • Any .htaccess file 任何.htaccess文件
  • Any other core files in the app folder, like cake.generic.css 应用程序文件夹中的任何其他核心文件,例如cake.generic.css

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

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