The solution to the problem that phpcms can't upload pictures
This article is about how to solve the problem that phpcms can't upload pictures. 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 if phpcms can't upload pictures?
PHPCMS V9 was misjudged by code in the last updated version (9.4.2). Bug that causes PHPCMS to update articles in the background and is unable to upload pictures. A temporary solution has been found in the PHPCMS forum, and it is hoped that PHPCMS officials will release the update package as soon as possible, so that more operating webmasters can save trouble and effort.
Students who have come across the tips in the above picture! Give you a temporary way to fix it.
Method 1: file path: / phpcms/libs/classes/attachment.class.php
Method 2: file path: / phpcms/libs/classes/attachment.class.php
Set
If (empty ($this- > userid)) {
Replace with
If (empty ($_ POST ['userid'])) {
Related brief introduction:
PHPCMS is a website management software. The software adopts modular development and supports a variety of classification methods, and it is convenient to realize the design, development and maintenance of personalized websites. It supports a large number of program combinations, can easily achieve website platform migration, and can widely meet the needs of websites of all sizes, with high reliability. It is a powerful, easy-to-use, scalable excellent website management software with articles, downloads, pictures, classified information, film and television, shopping malls, collection, finance and many other functions.
Thank you for reading! On the solution to phpcms can not upload pictures to share here, I hope the above content can be of some help 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.