The controller does not exist. Solution:
1. Troubleshooting method
1. Check the link;
2. Check whether the file name under the module is consistent with the link;
3. Check whether the name of the class in the file is consistent with the file name;
4. Check the operation in the class Is the naming consistent with the link?
Basically, you can definitely troubleshoot errors by following the above methods.
2. Analysis of the reasons
“Controller does not exist.” Literally speaking, the controller does not exist. V9 seems to be a typical MVC model. Find the source code where this error occurs... After my search, this error is in the file phpcms/libs/classes/application.class.php What appears below is the function load_controller() When loading the controller, an error occurs because the controller cannot be loaded.
application.class.php This file is the PHPCMS application creation class Each step of initialization requires finding its controller. If it can't be found, it's an error.
3. Why does this error occur
Some users said that Controller does not exist. appeared during member management; some users also said that Controller does not exist. appeared when logging into the background;
Reanalyzed the function load_controller() and its call And the relationship, I found this: when managing members, if there is such a Controller does not exist
, first right-click on the Controller does not exist page to view the properties.
Find "index.php?m=member&c=member&a=manage&menuid=72&pc_hash=QauE2I" and see m=*** and c=$$$, right? $$$ is the controller, and the file of this controller needs to be loaded.
In this example, the file to be loaded is phpcms/modules/member/member.php, and the corresponding file is phpcms/modules/***/$$$.php. If this file does not exist, it will The error Controller does not exist appears.
Some students said that the Controller does not exist when logging into the background. For the same reason, take a look at where it appears when logging into the background:
Login URL:
An error occurred:
This time you can find where the error is,
m=admin & c=index
Check whether the phpcms/modules/admin/index.php file exists.
4. Solution
First configure the configuration file under caches\configs\system.php, and then put the files in the original installation package into That's it.
Recommended tutorial: phpcms tutorial
The above is the detailed content of phpcms controller does not exist. 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

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools