【发布时间】:2019-02-12 15:19:41
【问题描述】:
我目前正在接手某人的项目。该项目使用 codeigniter 3。 当我运行站点 localhost/proj 时,它工作得很好。但是当尝试登录到管理站点 localhost/proj/admin/login 时。它显示 HTTP ERROR 500, This page is not working, localhost 当前无法处理此请求。
有人建议我查看 Apache(error.log)。它显示“PHP 致命错误:在第 391 行的 C:\xampp\htdocs\project\system\database\drivers\mysqli\mysqli_driver.php 中的布尔值上调用成员函数 real_escape_string()”。
我读到它可能是我的 .htaccess 文件:
<IfModule mod_rewrite.c>
#--- Uncomment this line for production or testing server
#SetEnv CI_ENV production
#--- URL rewrite
#--- Note: require Rewrite mod enabled (sudo a2enmod rewrite)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Reference: https://gist.github.com/philipptempel/4226750
ErrorDocument 404 /index.php
</IfModule>
谁能帮我解决这个问题?请。
【问题讨论】:
-
这显然意味着您的脚本无法连接到数据库
标签: php codeigniter-3