【问题标题】:Troube with migrate an codeigniter systemcodeigniter系统中的迁移问题
【发布时间】:2017-11-19 09:11:20
【问题描述】:

我正在尝试为我的本地主机迁移一个 codeigniter 系统,但我收到了这条消息:

A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

Fatal error: Class 'CI_Controller' not found in C:\xampp\htdocs\sistema-emisa\system\core\CodeIgniter.php on line 233

我已经从主机下载了以下页面:

应用程序〜 public_html ~ 系统


我在我的本地主机上更改了 BD 的输入以进行更正,但仍然没有工作。我必须做一些设置或下载其他东西吗?

服务器具有这种结构:

【问题讨论】:

  • 检查here
  • @Tpojka 它对我有用,但我仍然收到错误消息:致命错误:在 C:\xampp\htdocs\sistema-emisa\system\core\ 中找不到类 'CI_Controller' CodeIgniter.php 在第 233 行
  • 检查 .htaccessAPPPATH.'config/config.php' 以查看在线服务器的任何值是否仍然存在并且需要更改为 localhost 值。

标签: php codeigniter


【解决方案1】:

需要快速修复。

转到您的 system/core/Common.php 文件。 并搜索return $_config[0] =& $config;

并将此内容替换为以下两个 sn-ps 之一:

$_config[0] =& $config;
return $_config[0];

return isset($_config[0][$item]) ? $_config[0][$item] : NULL;

上面给出的两个代码都可以工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-27
    • 2019-07-10
    • 2016-09-17
    • 1970-01-01
    相关资源
    最近更新 更多