_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錯誤