解决PhpCms V9后盾无法上传图片

WBOY
Release: 2016-06-13 11:57:30
Original
1069 people have browsed it

解决PhpCms V9后台无法上传图片

PHPCMS V9 在最近一次更新的版本(9.4.2)中由于代码判断失误。导致PHPCMS在后台更新文章无法上传图片而导致的bug。在PHPCMS论坛中找到了临时解决方案,希望PHPCMS官方能尽快发布更新包,让更多的运营站长们省事省力。


遇到上图提示的同学们!给大家临时修复的方法。

方法1:文件路径:/phpcms/libs/classes/attachment.class.php


方法二:文件路径:/phpcms/libs/classes/attachment.class.php

1
if(empty($this->userid)){

替换成

1
if(empty($_POST['userid'])){
(来自新一博客)
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template