The install went well, however, all files in the cache folder are CHMOD to 600 causing the images to NOT display. I manually CHMOD them to 644 and they display correctly. If I delete all the cache images and refresh the cart. The images are back to 600 and NOT displaying. I put a ticket in with the web host but they seem clueless, anyone have any insight of what might be happening? I've never seen this type of behavior on the server???
open the cache class and replace the set method with:
Code: Select all
public function set($key, $value) {
$this->delete($key);
$file = DIR_CACHE . 'cache.' . $key . '.' . (time() + $this->expire);
$handle = fopen($file, 'w');
fwrite($handle, serialize($value));
fclose($handle);
chmod($file, 0755);
}
OpenCart®
Project Owner & Developer.
Hi Daniel,
I did like you said to replace set function as I have same problem with not having right permissions on /images and /images/cache folder contents after uploading file. After changing set function OC is not loading. Page is just blank. either shop page and admin page. do you think it is provider problem? If so, do you have any idea what adjustments they must make in order to make this page to display correctly and load images.
FYI: some servers do not have problems with not having permissions 0755 or 0777. Like my virtual test server MAMP.
I did like you said to replace set function as I have same problem with not having right permissions on /images and /images/cache folder contents after uploading file. After changing set function OC is not loading. Page is just blank. either shop page and admin page. do you think it is provider problem? If so, do you have any idea what adjustments they must make in order to make this page to display correctly and load images.
FYI: some servers do not have problems with not having permissions 0755 or 0777. Like my virtual test server MAMP.
johnnybravo wrote:Hi Daniel,
I did like you said to replace set function as I have same problem with not having right permissions on /images and /images/cache folder contents after uploading file. After changing set function OC is not loading. Page is just blank. either shop page and admin page. do you think it is provider problem? If so, do you have any idea what adjustments they must make in order to make this page to display correctly and load images.
FYI: some servers do not have problems with not having permissions 0755 or 0777. Like my virtual test server MAMP.
this is nothing to do with your problem!
this post was a bout the main cache directory not the image cache directory!
Could it be your php is in safe mode?
Please post some where else. this is nothing to do with your problem.
OpenCart®
Project Owner & Developer.
Who is online
Users browsing this forum: No registered users and 13 guests