【发布时间】:2017-09-26 03:09:43
【问题描述】:
系统曾经正常工作,但随后出现此错误我不知道解决方案,因为我还是这个平台的新手;但我已经检查了由于缺少文件目录而提示它的类似问题。有什么建议吗?
附件是文件结构; 这些文件在一个系统文件下Files structure
【问题讨论】:
标签: php codeigniter
系统曾经正常工作,但随后出现此错误我不知道解决方案,因为我还是这个平台的新手;但我已经检查了由于缺少文件目录而提示它的类似问题。有什么建议吗?
附件是文件结构; 这些文件在一个系统文件下Files structure
【问题讨论】:
标签: php codeigniter
发生这种情况的原因如下。
您的 system 文件夹可能丢失
检查您的文件夹权限
打开您的 index.php 文件并找到 $system_path 和
$application_folder。
$system_path = 'system';
$application_folder = 'application';
【讨论】:
正确指向您的系统文件夹,如果是不同的目录,请在 index.php 中调整
例如
$system_path = 'system';
$system_path = '../system';
$system_path = '../../system';
【讨论】:
发生这种情况的原因如下。
your system folder might be missing
【讨论】:
如果您使用的是 CI4,请在项目主目录中创建 index.php:
<?php
// Path to the front controller (this file)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
// Ensure the current directory is pointing to the front controller's directory
chdir(__DIR__);
// Load our paths config file
// This is the line that might need to be changed, depending on your folder structure.
$pathsConfig = FCPATH . 'app/Config/Paths.php';
// ^^^ Change this if you move your application folder
require realpath($pathsConfig) ?: $pathsConfig;
$paths = new Config\Paths();
// Location of the framework bootstrap file.
$bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
$app = require realpath($bootstrap) ?: $bootstrap;
$app->run();
【讨论】: