{"action":"created","issue":{"url":"https://api.github.com/repos/HackThis/hackthis.co.uk/issues/165","labels_url":"https://api.github.com/repos/HackThis/hackthis.co.uk/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/HackThis/hackthis.co.uk/issues/165/comments","events_url":"https://api.github.com/repos/HackThis/hackthis.co.uk/issues/165/events","html_url":"https://github.com/HackThis/hackthis.co.uk/issues/165","id":59966250,"number":165,"title":"Error saving cache...","user":{"login":"JustinPuksic","id":9157874,"avatar_url":"https://avatars.githubusercontent.com/u/9157874?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinPuksic","html_url":"https://github.com/JustinPuksic","followers_url":"https://api.github.com/users/JustinPuksic/followers","following_url":"https://api.github.com/users/JustinPuksic/following{/other_user}","gists_url":"https://api.github.com/users/JustinPuksic/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinPuksic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinPuksic/subscriptions","organizations_url":"https://api.github.com/users/JustinPuksic/orgs","repos_url":"https://api.github.com/users/JustinPuksic/repos","events_url":"https://api.github.com/users/JustinPuksic/events{/privacy}","received_events_url":"https://api.github.com/users/JustinPuksic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T15:21:16Z","updated_at":"2015-03-08T13:21:36Z","closed_at":null,"body":"Hey,\r\n\r\nAfter setting up a vhost under xampp(windows 7 home), i got the following error:\r\nError saving cache...\r\n\r\nSo, I decided to look up what's throwing such an error.\r\n\r\nI found that line in class.cache.php:\r\n\r\nfunction set($file, $content) {\r\n\t\t\t$file = preg_replace(\"/[^A-Za-z0-9_-]/\", '', $file);\r\n\r\n\t\t\tif (($fp = @fopen($this->app->config['cache'] . $file, 'w')) !== false) {\r\n\t\t\t\tfwrite($fp, $content);\r\n\t\t\t\tfclose($fp);\r\n\t\t\t} else {\r\n\t\t\t\techo \"Error saving cache...\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\nSo I assumed it's not able to open or write the file.\r\nI tried to change the permissions to chmod 777.\r\n\r\nStill getting this error, any solutions ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/HackThis/hackthis.co.uk/issues/comments/77748437","html_url":"https://github.com/HackThis/hackthis.co.uk/issues/165#issuecomment-77748437","issue_url":"https://api.github.com/repos/HackThis/hackthis.co.uk/issues/165","id":77748437,"user":{"login":"JustinPuksic","id":9157874,"avatar_url":"https://avatars.githubusercontent.com/u/9157874?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinPuksic","html_url":"https://github.com/JustinPuksic","followers_url":"https://api.github.com/users/JustinPuksic/followers","following_url":"https://api.github.com/users/JustinPuksic/following{/other_user}","gists_url":"https://api.github.com/users/JustinPuksic/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinPuksic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinPuksic/subscriptions","organizations_url":"https://api.github.com/users/JustinPuksic/orgs","repos_url":"https://api.github.com/users/JustinPuksic/repos","events_url":"https://api.github.com/users/JustinPuksic/events{/privacy}","received_events_url":"https://api.github.com/users/JustinPuksic/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T13:21:36Z","updated_at":"2015-03-08T13:21:36Z","body":"Finally fixed it.\r\n\r\nthe root directory wasn't html/.\r\n\r\nAfter correcting it in my vhost config, it worked."}}