簡體   English   中英

管理頁面顯示空白

[英]Admin Page Showing Blank

創建了一個 PHP 網站,Example.com 和登錄頁面是 example.com/admin

當我在 example.com/admin 填寫用戶名和密碼詳細信息時。

頁面已成功加載並顯示成功重定向到您,但儀表板或管理面板顯示空白屏幕。

檢查以下錯誤日志

2019/05/04 02:21:52 [emerg] 16768#16768: unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/default:92
2019/05/04 02:23:21 [notice] 16780#16780: signal process started

  thrown in /var/www/html/core/library/geoip.inc on line 572" while reading response header from upstream, client: 171.79.224.202, server: 157.230.229.11, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "157.230.229.11"
2019/05/04 03:23:16 [error] 30120#30120: *187 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /var/www/html/core/library/geoip.inc:572
Stack trace:
#0 /var/www/html/core/library/geoip.inc(464): _geoip_seek_country(Object(GeoIP), 2874138826)
#1 /var/www/html/core/library/geoip.inc(503): geoip_country_id_by_addr(Object(GeoIP), '171.79.224.202')
#2 /var/www/html/admin/controllers/dashboard.php(106): geoip_country_name_by_addr(Object(GeoIP), '171.79.224.202')
#3 /var/www/html/admin/app.php(129): require('/var/www/html/a...')
#4 /var/www/html/admin/index.php(41): require('/var/www/html/a...')
#5 {main}
  thrown in /var/www/html/core/library/geoip.inc on line 572" while reading response header from upstream, client: 171.79.224.202, server: 157.230.229.11, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "157.230.229.11"

nginx/sites-available/default 文件是

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /var/www/html;

    index index.php index.html index.htm index.nginx-debian.html;

    server_name 157.230.229.11;

    location / {
        #try_files $uri $uri/ =404;
    try_files $uri $uri/ /index.php?q=$uri&$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
    }

    location ~ /\.ht {
        deny all;
    }
}

同樣,當我單擊任何顯示主頁的頁面/子頁面時,或者如果更改為它,則會顯示 404 not found nginx 錯誤但主頁工作文件。

請幫助我任何人

在你的 .htaccess 文件中試試這個

RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM