【问题标题】:An ERROR shows "This page isn’t working, localhost is currently unable to handle this request. HTTP ERROR 500"错误显示“此页面无法正常工作,本地主机当前无法处理此请求。HTTP 错误 500”
【发布时间】: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


【解决方案1】:

是的,我的应用程序也遇到了同样的问题,但是当我删除 htaccess 时,应用程序开始正常工作

【讨论】:

    猜你喜欢
    • 2020-03-01
    • 2019-05-03
    • 2017-06-18
    • 2017-10-21
    • 2018-12-05
    • 2020-05-01
    • 2017-12-19
    • 1970-01-01
    相关资源
    最近更新 更多