PHPCMS v9后台登陆提示验证码错误
PHPCMS v9的验证码在生成后,会把验证码的数字存入Session当中。PHPCMS v9在默认的情况下,Session是存放在数据库当中的。
如果出现登录和评论是报验证码错误可以修改成如下方式。
可以偿试通过修改"/caches/configs/system.php"当中的:
'session_storage' => 'mysql',
将其修改为
'session_storage' => 'files',
再进行偿试。上面的修改表示,Session存储到硬盘里面,这个将使用PHP默认的存储的方式。
PHPCMS v9后台编辑器上传图片卡死
这个一般是登录时候浏览器上的域名地址和caches/config/system.php中的
'app_path' => 'http://×××.cn/',//动态域名配置地址
地址不一样造成的。解决方式是是浏览器登录时的域名和这个地址一样就可以了
或直接修改一下phpcms/lib/form.class.php中的
if($allowupload) $str .= "filebrowserUploadUrl : '".APP_PATH."index.php?m=attachment&c=attachments&a=upload&module=".$module."&catid=".$catid."&dosubmit=1',\r\n";
把APP_PATH硬编码成你常用的地址就可以了