平台:Joomla 1.5.22,Docman 1.5.7
在上传新文件后想直接从files标签点击文件直接创建文档时出现以下错误:
string(2) "23" array(1) { [0]=> string(12) "filename.ext" }
这个是1.5.7版本的一个bug,下个版本会修复的。目前的解决办法是更改docman的配置文件:
administrator/components/com_docman/includes/files.php
在第23行处,
var_dump(__METHOD__.__LINE__, $cid );die;
注释掉,修改为:
if(!$cid[0]) {
JFactory::getApplication()
->redirect("index.php?option=com_docman§ion=files",
_DML_MAKE_SELECTION);
}
重新访问你的Docman,即可。
修改files.php文件时,需要注意文件的权限,需要写入权限,首先
sudo chmod 777 files.php修改完后,再改回原来的文件权限
sudo chmod 644 files.php
| 用.htaccess修改apache和php.ini配置< 上页 | 下页 >iptables-save permission denied 权限禁止 |
|---|





