Resolve the problem that phpcms cannot upload pictures
Editor to share with you to solve the problem that phpcms can not upload pictures, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
What if phpcms cannot 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'])) {the above is all the content to solve the problem that phpcms cannot upload pictures. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!