search
Homephp教程php手册页面显示:页面错误!请稍后再试

thinkphp项目404错误,同时页面显示:页面错误!请稍后再试
问题:

今天项目新版上线,突然发现有个页面打不开,请求直接 404了,而且页面显示
页面显示:页面错误!请稍后再试
一时找不到是什么原因会显示这样的页面,

解决

这个页面都出现了(典型的thinkphp页面),说明请求已经到了,是thinkphp程序抛出的一个404。但是什么情况下才会这样?
最后发现,当关闭thinkphp的调试模式,程序错误时,不显示错误到页面,就会出现这个上面这个页面
请注意thinkphp文件index.php中

开启调试模式

// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);
这样显示:
页面显示:页面错误!请稍后再试

关闭调试模式

// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',false);

这样显示
页面显示:页面错误!请稍后再试

AD:真正免费,域名+虚机+企业邮箱=0元

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool