linux一键安装包
4813
bug提交时提示 File upload error - unable to create a temporary file已解决 悬赏5积分
提问者Phoenix
答案数1
阅读数3273
发表时间2017-06-07 09:45:50
File upload error - unable to create a temporary file。。。
禅道版本:9.2
安装包类型:Linux安装包
操作系统:CentOS
客户端浏览器:Firefox
答案列表
石洋洋
2017-06-07 11:17:51
zentao(pro/pms)/config/my.php 中debug的值改成true 重新操作一下 看日志文件 zentao(pms/pro)/tmp/log/php开头的今天的文件有什么报错。给日志中显示的临时目录加一些读写权限。
回复
|
联系我们
联系人
刘斌/高级客户经理
电话(微信)
17685869372
QQ号码
526288068
联系邮箱
liubin@chandao.com
上传附件符合大小,但是报错,提示
<br />
<b>Warning</b>: File upload error - unable to create a temporary file in <b>Unknown</b> on line <b>0</b><br />{"result":"fail","message":{"openedBuild":["\u300e\u5f71\u54cd\u7248\u672c\u300f\u4e0d\u80fd\u4e3a\u7a7a\u3002"]}}parsererrorSyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
开启debug后 ,php的日志显示如下:
<?php
die();
?>
12:19:48 File upload error - unable to create a temporary file in Unknown on line 0 when visiting bug-create-1-0-moduleID=0
12:21:02 File upload error - unable to create a temporary file in Unknown on line 0 when visiting bug-create-1-0-moduleID=0
12:22:25 File upload error - unable to create a temporary file in Unknown on line 0 when visiting bug-create-1-0-moduleID=0
把系统目录/tmp 权限加了w后,可以上传成功了,但是预览图片的时候报错:
13:38:38 ERROR: The file you visit 5 not found. in /opt/zbox/app/zentao/module/file/control.php on line 172, last called by /opt/zbox/app/zentao/framework/base/router.class.php on line 1469 through function download.
in /opt/zbox/app/zentao/framework/base/router.class.php on line 1932 when visiting file-download-5-left