Home>Article>PHP Framework> What should I do if thinkphp cannot find the specified module?

What should I do if thinkphp cannot find the specified module?

藏色散人
藏色散人 Original
2022-12-05 09:46:45 1411browse

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.

What should I do if thinkphp cannot find the specified module?

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:

What should I do if thinkphp cannot find the specified module?

And what I want is this:

What should I do if thinkphp cannot find the specified module?

Or like this:

What should I do if thinkphp cannot find the specified module?

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!

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