ace21187 Posted January 21, 2007 Share Posted January 21, 2007 Hey guys, When I set “use cache” to "true" in the admin section of my store. I receive the following error when I visit my home page. Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/classie9/public_html/catalog/includes/functions/cache.php on line 60 Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/classie9/public_html/catalog/includes/functions/cache.php on line 60 I followed all the instructions in the OsCommerce Documentation to set up cache and my files show up under Admin>>Tools>>Cache Control. My cache directory is located at /catalog/cache Anyone have any ideas why I am receiving the error? Thanks, Dan Link to comment Share on other sites More sharing options...
mtechama Posted January 21, 2007 Share Posted January 21, 2007 I keep mine false I never used cache... Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
ace21187 Posted January 21, 2007 Author Share Posted January 21, 2007 Anyone know what's wrong? Thanks, Dan Link to comment Share on other sites More sharing options...
ace21187 Posted January 22, 2007 Author Share Posted January 22, 2007 Anyone know what's wrong? Thanks, Dan I'm really stuck guys.... :( Dan Link to comment Share on other sites More sharing options...
Brian_C Posted February 13, 2007 Share Posted February 13, 2007 I'm really stuck guys.... :( Dan Open the .cache files and put a couple spaces, save and reupload. That stopped that error for me, but then my Cat & Mfg boxes disappeared and the cache files are not being written. Brian Christensen Link to comment Share on other sites More sharing options...
farberama Posted July 27, 2007 Share Posted July 27, 2007 I'm having the exact same problem. Were you ever able to solve it? Thanks! Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2007 Share Posted August 26, 2007 Anyone solve this? I am setting up my 2nd store (glutton for punishment) and have the same error. Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2007 Share Posted August 26, 2007 Found this fix after doing another search on the forums. It works well so a BIG thanks to ANTOMINO. Posted by: Antonimo Aug 4 2006, 06:42 AM I hope my experience will help... I had a near perfect installation today, however I set up the cache as per the instructions in the "documentation.pdf" QUOTE Through an FTP program, create a subfolder named "cache" in the "catalog" folder and set the chmod permissions to 777. Then go to Configuration/Cache. Click on "Use Cache" and set to "true". Click on Cache Directory and set the absolute directory path to the "cache" folder. I further created three empty files: QUOTE ...upload via FTP, three blank files into your cache directory called: categories_box-english.cache manufacturers_box-english.cache also_purchased-english.cache Then, I received the error, QUOTE Warning: fread(): Length parameter must be greater than 0. in /home/**/**/**/catalog/includes/functions/cache.php on line 60 As soon as I deleted the three empty files, the error disappeared and the files were created automatically in the cache folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.