Home  >  Article  >  Backend Development  >  求大神来看看什么问题

求大神来看看什么问题

WBOY
WBOYOriginal
2016-06-23 13:20:511253browse

_STORAGE_WRITE_ERROR_:./Runtime/Cache/Home/b39761fdd01eadcd4b8a82f371520558.php
错误位置
FILE: /alidata/www/redis/thinkphp/Library/Think/Storage/Driver/File.class.php  LINE: 48
TRACE
#0 /alidata/www/redis/thinkphp/Library/Think/Storage/Driver/File.class.php(48): E('_STORAGE_WRITE_...')
#1 [internal function]: Think\Storage\Driver\File->put('./Runtime/Cache...', ' #2 /alidata/www/redis/thinkphp/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array)
#3 /alidata/www/redis/thinkphp/Library/Think/Template.class.php(114): Think\Storage::__callstatic('put', Array)
#4 /alidata/www/redis/thinkphp/Library/Think/Template.class.php(114): Think\Storage::put('./Runtime/Cache...', ' #5 /alidata/www/redis/thinkphp/Library/Think/Template.class.php(76): Think\Template->loadTemplate('


回复讨论(解决方案)

之前接口是通的,但是后面重启过一次服务器之后,这个API 就不通了,没有返回值 数据也传不进去了

_STORAGE_WRITE_ERROR_ 是 thinkphp 的自定义错误
表示目录 ./Runtime/Cache/Home/ 不可写
或 ./Runtime/Cache/Home/b39761fdd01eadcd4b8a82f371520558.php 不可被改写
总之是权限不够
清空 Runtime 目录,并授予 Runtime 写权限

云主机就要出点血了

我这边(thinkPHP的缓存文件上传)访问我们的接口地址(http://redis.wtl119.com)的时候可以正常访问,

还有一种情况是没有把thinkPHP文件的缓存文件上传的时候访问(http://redis.wtl119.com)会出现404错误,以下图片情况

我把thinkPHP的缓存文件上传,加上我们的请求地址(/api/Redis/redis.json)的时候就不能正常访问了,不能正常的传输数据。
一直是以下图中的情况:

还有就是我输入访问(http://redis.wtl119.com/api/Redis/redis)地址的时候,提示404错误

Statement:
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