_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错误
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号