用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1382|回复: 9
收起左侧

[HELP] 后台登陆页面验证码一直出错!

[复制链接]
发表于 2016-10-27 09:13:40 | 显示全部楼层 |阅读模式
因公司要转移服务器,直接复制镜像,现在登陆后台一直验证码错误,因为不懂php无从下手,求从方面下手。
发表于 2016-10-27 10:21:08 | 显示全部楼层
这是 CI 问题么?
 楼主| 发表于 2016-10-27 10:26:29 | 显示全部楼层
用的是CI框架。
发表于 2016-10-27 10:31:50 | 显示全部楼层
具体是什么错误?比如错误信息什么的。
 楼主| 发表于 2016-10-27 11:26:37 | 显示全部楼层
本帖最后由 shine_xn 于 2016-10-27 11:32 编辑

阿里云服务器直接镜像复制到新的一台服务器上,后台登陆输入验证码一直出错,输对了也显示错误验证码。[error] 1563#0: *9 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function quote() on a non-object in /app/www/CodeIgniter/system/database/drivers/pdo/pdo_driver.php on line 231" while reading response header from upstream,
发表于 2016-10-27 11:31:42 | 显示全部楼层
shine_xn 发表于 2016-10-27 11:26
阿里云服务器直接镜像复制到新的一台服务器上,后台登陆输入验证码一直出错,输对了也显示错误验证码。 ...

需要你提供更多的信息才能判断是什么问题呀。比如贴代码,贴截图等等。
 楼主| 发表于 2016-10-27 11:33:11 | 显示全部楼层
本帖最后由 shine_xn 于 2016-10-27 11:34 编辑
Hex 发表于 2016-10-27 11:31
需要你提供更多的信息才能判断是什么问题呀。比如贴代码,贴截图等等。 ...

[error] 1563#0: *9 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function quote() on a non-object in /app/www/CodeIgniter/system/database/drivers/pdo/pdo_driver.php on line 231" while reading response header from upstream, 只能看到这个错误
protected function _escape_str($str)
        {
                // Escape the string
                $str = $this->conn_id->quote($str);

                // If there are duplicated quotes, trim them away
                return ($str[0] === "'")
                        ? substr($str, 1, -1)
                        : $str;
        }

231行代码。
发表于 2016-10-27 12:24:02 | 显示全部楼层
shine_xn 发表于 2016-10-27 11:33
[error] 1563#0: *9 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member functio ...

这里好像是没连接上数据库?CI 里面的代码原则上是没问题的,如果你的项目之前OK,现在不OK,应该是你的环境有问题,虽然你是镜像的,但也不能保证一定没问题。
 楼主| 发表于 2016-10-27 12:25:16 | 显示全部楼层
谢谢,我继续找找问题吧。
发表于 2016-10-27 15:48:38 | 显示全部楼层
数据库连接出错,估计是没权限。

本版积分规则