kolber / stacey

Cheap & easy content management
http://staceyapp.com
MIT License
1.04k stars 132 forks source link

Stacey 2.3 sometimes makes my cache corrupt by adding a duplicate "up one directory" #164

Open desbest opened 3 years ago

desbest commented 3 years ago

Sometimes the cache for my website goes corrupt and I get a website that looks similar to this.

Screenshot 2021-07-23 at 20-20-33 My client work

This is because all the paths that say ../ are changed to ../../ by the Stacey's cache. This happens occassionally but only after weeks or months has passed, so I can't recreate the error. But it's got something to do with how the cache is generated.

The file name in the app/cache folder is called Li9jb250ZW50L3dvcms,

I'm using Stacey 2.3 Is there a fix for this?

<link rel="stylesheet" type="text/css" href="../../public/stylesheet.css">
 <a href="../../work/adopted"><img src="../../public/images/work_chooseme_adopted.png" class="responsive-eightteen" width="61" height="12" style=" margin-bottom: 22px; margin-left: 12px;" alt="adopted software"></a>
desbest commented 6 months ago

The bug seems to be caused by using an old version of PHP 7. I don't have the time to debug this, as I have no need to use any older versions. Especially as there is a mysql bug in earlier versions of PHP 7.x which are only fixed in PHP 7.4, for connecting to newer versions of mysql.