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

The method to solve the error of phpcms 500Internal Server

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article is to share with you about how to resolve phpcms 500 internal server errors. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

What about the phpcms 500 internal server error? Custom form access report server 500error in PHPCMS

Recently the company project requires custom forms, but there was a server 500 error when accessing and submitting the phpcms custom forms plug-in.

After going to Google for an hour or two and posting on the PHPCMS forum, no solution was found.

It is better to ask for help than to rely on yourself. The first thing that comes to mind is whether it is the configuration of the IIS7 server, so I tested it on the local Apache server, but found that there was still this problem. I had to go to the form module of phpcms to debug it step by step. After debugging, I found that the error appeared in the

In the showmessage () method at line 65 or so of phpcms\ modules\ formguide\ index.php

So go to the showmessage () method in phpcms\ libs\ functions\ global.func.php to debug.

Then I found that bug appeared when referring to the template () method, because the template () method was a public method and could not be changed at will. I returned to line 65 of phpcms\ modules\ formguide\ index.php and changed the showmessage () method to

$url=APP_PATH;echo "alert ('submitted successfully!');"; echo ""; / / showmessage (L ('thanks'), APP_PATH)

At this point, the various functions in the custom form can be used properly. If there is a better solution, you are welcome to communicate and make progress together.

Thank you for reading! This is the end of the solution to phpcms 500 internal server errors. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

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