Home > CMS Tutorial > PHPCMS > body text

phpcms controller does not exist

王林
Release: 2019-11-18 10:32:21
Original
3414 people have browsed it

phpcms controller does not exist

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

phpcms controller does not exist

, first right-click on the Controller does not exist page to view the properties.

phpcms controller does not exist

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:

phpcms controller does not exist

An error occurred:

phpcms controller does not exist

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!

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!