search
HomeCMS TutorialPHPCMSWhat to do if phpcms 500 internal server error occurs

What to do if phpcms 500 internal server error occurs

What should I do if phpcms 500 internal server error occurs? The custom form access in PHPCMS reported a server 500 error

Recent company topics require the use of custom forms, but a server 500 error occurred when accessing and submitting the phpcms custom form plug-in.

After searching on Google for an hour or two and posting on the PHPCMS forum, I still haven't found a solution.

It is better to rely on yourself than to ask for help. The first thing I thought of was whether there was a configuration problem with the IIS7 server, so I tested it on the local Apache server, but found that the problem still existed. I was so miserable that I could only debug step by step in the form module of phpcms. After debugging, I found that the error occurred in showmessage() around line 65 of

phpcms\modules\formguide\index.php. method

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

Then I found that the bug appeared when referencing the template() method, because The template() method is a public method and cannot be changed at will. I returned to line 65 of phpcms\modules\formguide\index.php and commented out the showmessage() method and changed it to

$url=APP_PATH;
echo "<script> alert(&#39;提交成功!&#39;); </script>"; 
echo "<meta http-equiv=&#39;Refresh&#39; content=&#39;0;URL=$url&#39;>"; 
// showmessage(L(&#39;thanks&#39;), APP_PATH);

This is the custom form All functions in can be used normally. If there is a better solution, everyone is welcome to communicate and make progress together.

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of What to do if phpcms 500 internal server error occurs. For more information, please follow other related articles on the PHP Chinese website!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

MantisBT

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.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.