后台登陆页面验证码一直出错!
因公司要转移服务器,直接复制镜像,现在登陆后台一直验证码错误,因为不懂php无从下手,求从方面下手。这是 CI 问题么? 用的是CI框架。 具体是什么错误?比如错误信息什么的。 本帖最后由 shine_xn 于 2016-10-27 11:32 编辑
阿里云服务器直接镜像复制到新的一台服务器上,后台登陆输入验证码一直出错,输对了也显示错误验证码。 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,
shine_xn 发表于 2016-10-27 11:26
阿里云服务器直接镜像复制到新的一台服务器上,后台登陆输入验证码一直出错,输对了也显示错误验证码。 ...
需要你提供更多的信息才能判断是什么问题呀。比如贴代码,贴截图等等。 本帖最后由 shine_xn 于 2016-10-27 11:34 编辑
Hex 发表于 2016-10-27 11:31
需要你提供更多的信息才能判断是什么问题呀。比如贴代码,贴截图等等。 ...
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 === "'")
? substr($str, 1, -1)
: $str;
}
231行代码。
shine_xn 发表于 2016-10-27 11:33
1563#0: *9 FastCGI sent in stderr: "PHP message: PHP Fatal error:Call to a member functio ...
这里好像是没连接上数据库?CI 里面的代码原则上是没问题的,如果你的项目之前OK,现在不OK,应该是你的环境有问题,虽然你是镜像的,但也不能保证一定没问题。 谢谢,我继续找找问题吧。 数据库连接出错,估计是没权限。
页:
[1]