lvemy3100 Posted July 20, 2011 Posted July 20, 2011 This is the warning being shown on the Admin and Customer ends of the store... Warning: file_put_contents(/html/store/cache/1451b055e51aa12230e777989c666e2b.sql.05325ecb678af55c23315587fc14f74c.cache) [function.file-put-contents]: failed to open stream: File too large in /html/store/classes/cache/file.class.php on line 239 Warning: Cache data not written. in /html/store/classes/cache/file.class.php on line 242 Warning: file_put_contents(/html/store/cache/1451b055e51aa12230e777989c666e2b.sql.05325ecb678af55c23315587fc14f74c.cache) [function.file-put-contents]: failed to open stream: File too large in /html/store/classes/cache/file.class.php on line 239 Warning: Cache data not written. in /html/store/classes/cache/file.class.php on line 242 I really dont know much about coding but can follow directions very well. I have had things happen in the past and have been able to get everything fixed however I have yet to come across anyone with an issue like this so there arent any "fixes" readily available to my knowledge. I would greatly appreciate it if someone could please help me out with this issue. TIA Quote
Guest hennaboy Posted July 20, 2011 Posted July 20, 2011 Your cache cannot be written too which is what its stating in the error. Set the correct permissions on the cache directory. 0777 Quote
lvemy3100 Posted July 20, 2011 Author Posted July 20, 2011 Thank you for the advice however the file permissions are set correctly on the cache directory and I am still getting the error. I believe the error is stating that the file is too large to be written.. but again I dont really know that and I am just guessing.. Quote
Guest Technocrat Posted July 20, 2011 Posted July 20, 2011 Do you have access to your php.ini file? You may have to go in there and increase your max file size. If you dont then you might need to turn off cache. Quote
Atechstl Posted July 20, 2011 Posted July 20, 2011 You should never use 0777 permissions! Durring the installation it called for it but I made sure to change those back to 0755. You are putting your store at risk of being hacked if you leave that permission! Quote
Guest Technocrat Posted July 20, 2011 Posted July 20, 2011 Though true some shared hosts don't allow 0755 access. Thus it has to be 0777. We have cleaned that up in 5.0.1 however Quote
Guest hennaboy Posted July 20, 2011 Posted July 20, 2011 Made me laugh. Sorry having a directory set to a certain permission does not mean your store can be hacked. Quote
Atechstl Posted July 20, 2011 Posted July 20, 2011 Made me laugh. Sorry having a directory set to a certain permission does not mean your store can be hacked. Basically with the permissions set to 777, anyone can write to that folder, edit the folder contents or delete items in that folder. Not much of a laughing matter to me. It's bad practice. . Quote
Guest hennaboy Posted July 20, 2011 Posted July 20, 2011 Just because 777 states that everyone can write it does not mean that everyone can as it depends on the server setup and security. Bearing in mind that no matter what your permissions if your underlying security is not good then anyone will be able to get in anyway. If your host has its user & groups and security done correctly then it will be no problem although you could just set to 770 instead. It really comes down to your host and server security. If your security is bad then yeah it will be a bad idea but hey its going to be a bad idea whatever the permissions. Quote
Atechstl Posted July 20, 2011 Posted July 20, 2011 Agreed. Not all companies have their servers setup the same way it just worries me to see that permission being set. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.