Home > PHP Framework > ThinkPHP > body text

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

藏色散人
Release: 2022-12-05 09:46:45
Original
1552 people have browsed it

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,
Copy after login

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;
Copy after login

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!