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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

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