_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错误
