【问题标题】:cake/basics.php missing when cloning a project克隆项目时缺少 cake/basics.php
【发布时间】:2016-06-22 06:26:24
【问题描述】:

我尝试克隆 beta.neighborrow.com - 我为文件复制了目录文件,但在新 URL instillbliss.neighborrow.com 上出现此错误:

警告:require(cake/basics.php) [function.require]:无法打开流:第 53 行的 /home/neighborrow/instillbliss.neighborrow.com/index.php 中没有这样的文件或目录

致命错误:require() [function.require]:无法打开所需的“cake/basics.php”(include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear :/home/neighborrow/instillbliss.neighborrow.com:/home/neighborrow/instillbliss.neighborrow.com/app/') 在 /home/neighborrow/instillbliss.neighborrow.com/index.php 第 53 行

感谢 Ahmed,我找到了正确的文件...

*/
if (!defined('APP_DIR')) {
    define('APP_DIR', basename(dirname(dirname(__FILE__))));
}

/**
 * The absolute path to the "cake" directory, WITHOUT a trailing DS.
 *
 */
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
    define('CAKE_CORE_INCLUDE_PATH', '/home/neighborrow');
}

/**
 * Editing below this line should NOT be necessary.
 * Change at your own risk.
 *
 */
if (!defined('WEBROOT_DIR')) {
    define('WEBROOT_DIR', basename(dirname(__FILE__)));

我假设我必须更改/home/neighborrow,但我应该将其更改为什么?那是数据库吗?

【问题讨论】:

  • 这基本上意味着cake/basics.php不见了。
  • 但我在 beta.neighborrow.com 有完全相同的文件,并且没有蛋糕文件夹

标签: php cakephp


【解决方案1】:

您需要重新配置 webroot/index.php 文件中的路径 并确保您在 cake 文件夹上设置了正确的权限

【讨论】:

  • 好的太棒了...我找到了正确的文件...我现在更新问题
猜你喜欢
  • 2012-04-22
  • 2022-12-18
  • 1970-01-01
  • 2020-01-31
  • 2016-10-27
  • 1970-01-01
  • 2019-12-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多