Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Error saving cache... #165

Open
JustinPuksic opened this issue Mar 5, 2015 · 1 comment
Open

Error saving cache... #165

JustinPuksic opened this issue Mar 5, 2015 · 1 comment

Comments

@JustinPuksic
Copy link

Hey,

After setting up a vhost under xampp(windows 7 home), i got the following error:
Error saving cache...

So, I decided to look up what's throwing such an error.

I found that line in class.cache.php:

function set($file, $content) {
$file = preg_replace("/[^A-Za-z0-9_-]/", '', $file);

        if (($fp = @fopen($this->app->config['cache'] . $file, 'w')) !== false) {
            fwrite($fp, $content);
            fclose($fp);
        } else {
            echo "Error saving cache...";
        }
    }

So I assumed it's not able to open or write the file.
I tried to change the permissions to chmod 777.

Still getting this error, any solutions ?

@JustinPuksic
Copy link
Author

Finally fixed it.

the root directory wasn't html/.

After correcting it in my vhost config, it worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant