Failed Opening Cache

Last week we had a problem (HTTP ERROR 500) about cache file in error log file. After deleting this file, we regenerated this. And this problem was solved. Yesterday page was blank (White page). I tried a lot options to find log or to correct it. Lastly t_compile file is regenerated and this problem is resolved. But there was that file(t_compile) last week. We would like to solve the problem precisely. Our version is:2.4.8

ojs2 has produced an error\n Message: USER ERROR: Smarty error: the $compile_dir ‘/home/asd/public_html/cache/t_compile’ does not exist, or is not a directory.

ojs2 has produced an error\n Message: WARNING: include(/home/asd/public_html/cache/t_compile/%%72^720^720ACFDF%%journal.tpl.php): failed to open stream: No such file or directory\n

ojs2 has produced an error\n Message: WARNING: htmlspecialchars(): charset `ISO-8859-9’ not supported, assuming utf-8\n In file: /home/asd/public_html/plugins/generic/webFeed/WebFeedPlugin.inc.php\n

Please describe what you wanted to do so that message is generated. Is that upgrade procedure. Please, try to be more specific.

Hi @embla83,

I suspect you have a file permissions problem in your cache/t_compile directory. Check to make sure that the permissions on cache, and all its contents and subdirectories, are correct. There’s an entry on this in the FAQ in this forum.

Regards,
Alec Smecher
Public Knowledge Project Team

the permissions on cache are 777. Subfiles are like these _db 777, HTML 755, t_cache 777, t_compile 777, t_config 777, URI 755.

Best Regards

Hi @embla83

Make sure folder user owner is correct as well.

Regards,
Israel Cefrin
Public Knowledge Project Team

Hi @embla83,

Note that 777 permissions are never safe to use. They can be useful for debugging but make sure you don’t leave them that way.

Regards,
Alec Smecher
Public Knowledge Project Team