Solve the problem that pictures cannot be uploaded at phpcms backend
This article mainly introduces how to solve the problem that phpcms background can not upload pictures. It has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
What if the phpcms backend cannot upload pictures?
PHPCMS V9 was misjudged by code in an 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'])) {Thank you for reading this article carefully. I hope it will be helpful for everyone to share the content to solve the problem that the phpcms backstage cannot upload pictures. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!