thinkphp cannot find the solution to the specified module: 1. Enable debugging mode in config.php; 2. Check the nginx configuration; 3. Find "#START-ERROR-PAGE#error_page 403 /403.html ;error_page 404 /404.html;#error_page 502 /502.html;”; 4. Just comment out the 404 error.

The operating environment of this tutorial: Windows 7 system, ThinkPHP version 5, Dell G3 computer.
thinkphp What should I do if the specified module cannot be found?
thinkphp cannot find the module and prompts 404 without displaying the error
Enable debugging mode in config.php
// 应用调试模式
'app_debug' => true,
// 应用Trace
'app_trace' => true,Specially enter A non-existent module or function
still displays 404:

And what I want is this:
Or like this:

After some trouble, I found that the nginx configuration caused:
#START-ERROR-PAGE
#error_page 403 /403.html;
error_page 404 /404.html;
#error_page 502 /502.html;Commenting out the 404 error will give me the effect I want.
Recommended learning: "thinkPHP Video Tutorial"
The above is the detailed content of What should I do if thinkphp cannot find the specified module?. For more information, please follow other related articles on the PHP Chinese website!