Home > Common Problem > body text

What should I do if thinkphp does not prompt an error message?

藏色散人
Release: 2022-12-09 10:03:08
Original
2096 people have browsed it

Solution to thinkphp not prompting error message: 1. Open the "app.php" file in the config folder; 2. Change the "false" of "'show_error_msg'=>false" to "true" ” will display the error message.

What should I do if thinkphp does not prompt an error message?

The operating environment of this tutorial: Windows 7 system, ThinkPHP version 6.0, Dell G3 computer.

What should I do if thinkphp does not prompt an error message?

ThinkPHP6.0 turns on debugging mode and displays error messages

(1) Displays error messages

Open the app in the config folder .php file, change 'show_error_msg'=>false,' false to true. At this point, an error message may be displayed.

What should I do if thinkphp does not prompt an error message?

(2) Turn on the debugging mode

It can be done in one step, modify the .example.env environment variable sample file in the project root path to .env . APP_DEBUG is true by default.

What should I do if thinkphp does not prompt an error message?

# Remember: Turn off debug before the project goes online, otherwise server information may be leaked. Just change true to false.

Recommended learning: "thinkPHP Video Tutorial"

The above is the detailed content of What should I do if thinkphp does not prompt an error message?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template