Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that phpcms controller does not exist

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to solve the problem that the phpcms controller does not exist, which has a certain reference value, friends who need can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

There is no workaround for the controller:

I. methods for troubleshooting problems

1. Check the link

2. Check whether the file name under the module is consistent with the link

3. Check whether the naming of the class in the file is consistent with the name of the file.

4. Check whether the naming of the operation in the class is consistent with that in the link.

Basically, according to the above method, you can definitely troubleshoot errors.

Second, analyze the reasons

"Controller does not exist." literally, the controller does not exist. V9 seems to be a typical MVC model. Find out where the source code is wrong. I found that this error occurred in the file phpcms / libs / classes / application.class.php, that is, in the function load_controller () load controller, the error occurred when the controller could not be loaded.

Application.class.php this file is the PHPCMS application creation class to find its controller at every step of initialization. If you can't find it, it's your mistake.

Third, why did this error occur

Some users say that Controller does not exist appears when managing members. Some users also say that Controller does not exist appears in the login background.

After analyzing function load_controller () and its invocation and relationship, I find that it is like this: when managing members, such a Controller does not exist appears.

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 masked controllers * and cased controllers. $$is the controller. You need to load the files for this controller.

The file to be loaded in this example is phpcms/modules/member/member.php, and the corresponding file is phpcms/modules/***/$$$.php. If this file does not exist, there will be an error of Controller does not exist.

Some students said that there is a Controller does not exist when logging in to the backend. By the same token, take a look at the place where the login background appears:

URL logged in:

An error has occurred:

This time we can find out where the mistake is.

M=admin & c=index

Find out if the phpcms/modules/admin/index.php file exists.

IV. Solutions

First, configure the configuration files under caches\ configs\ system.php, and then put the files in the original installation package.

Thank you for reading this article carefully. I hope it will be helpful for everyone to share how to solve the problems that do not exist in the phpcms controller. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report