This file cannot be written: cache/label_cache/index_0_8_0_1_6539c.php
Solution:
OPEN function. Inc. php In the INC directory and find
- /* Write File functions **/
- Function write_file ($ filename, $ data, $ method = "RB +", $ iflock = 1 ){
- @ Touch ($ filename );
- $ Handle = @ fopen ($ filename, $ method );
- If (! $ Handle ){
- Showerr ("this file cannot be written: $ FILENAME ");
- }
- If ($ iflock ){
- @ Flock ($ handle, lock_ex );
- }
- @ Fputs ($ handle, $ data );
- If ($ Method = "RB +") @ ftruncate ($ handle, strlen ($ data ));
- @ Fclose ($ handle );
- @ Chmod ($ filename, 0777 );
- If (is_writable ($ filename )){
- Return 1;
- } Else {
- Return 0;
- }
- }
Change to the followingCode. It is mainly to remove the prompt of writing failure, so that no error is reported.
- /* Write File functions **/
- Function write_file ($ filename, $ data, $ method = "RB +", $ iflock = 1 ){
- @ Touch ($ filename );
- $ Handle = @ fopen ($ filename, $ method );
- If ($ iflock ){
- @ Flock ($ handle, lock_ex );
- }
- @ Fputs ($ handle, $ data );
- If ($ Method = "RB +") @ ftruncate ($ handle, strlen ($ data ));
- @ Fclose ($ handle );
- @ Chmod ($ filename, 0777 );
- If (is_writable ($ filename )){
- Return 1;
- } Else {
- Return 0;
- }
- }