Home > php教程 > php手册 > 解决PhpCms V9后台无法上传图片

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

WBOY
Release: 2016-06-06 20:11:24
Original
1618 people have browsed it

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

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

phpcms_9.4.2.undefined

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

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

phpcms_9.4.2_undefined_bug

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

if(empty($this->userid)){
Copy after login

替换成

if(empty($_POST['userid'])){
Copy after login
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template