500 Error related to tmp subdirectories
Running 1.7.9 on Linux server
Constantly getting a 500 error with these error messages:
[12-Jan-2021 21:43:25 America/Los_Angeles] PHP Parse error: syntax error, unexpected ''YToxMzI6e3M6MzI6ImVmN2QxYzc4Y' (T_ENCAPSED_AND_WHITESPACE) in /home/oadarchi/staff.oadarchives.org/app/tmp/collectiveaccessCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14 [12-Jan-2021 22:31:54 America/Los_Angeles] PHP Parse error: syntax error, unexpected ''YToxMzI6e3M6MzI6ImVmN2QxYzc4Y' (T_ENCAPSED_AND_WHITESPACE) in /home/oadarchi/staff.oadarchives.org/app/tmp/collectiveaccessCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14
I cleared the tmp directories and can log in, but any record I make causes the server to stop working and give the 500 error. Anyone have this experience or insights as to what I can do to resolve it?
Thanks,
Mark
Comments
Hi,
It's an issue with the "Stash" caching library used by default. On some systems it can have a race condition that causes this (or so the developers of it say). I'd recommend switching to redis for caching, if possible. That will not have this issue.
seth
This occurs only when trying to add media to an object, specifically any image file. These are the PGP error messages. If you delete line 14 from the file, the image will save. But the very next thing that happens is the 500m error from the server. The ISP has been very generous in helping me, but in the end they said I needed to contact CA. I will try your suggestion. Thank you for the assistance, Seth. Always appreciate and never taken for granted. Mark.
I'd try using redis.
That fixed it. THANK YOU Seth!