Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A problem related to Cache (Warning: fread(): Length parameter must be greater than 0)


ganxh

Recommended Posts

Posted

I just set the cache properties according to the manul (oscommerce-2.2ms2-051112.pdf). I got the following message:

 

Warning: fread(): Length parameter must be greater than 0. in /homepages/12/d94451588/htdocs/osc511/catalog/includes/functions/cache.php on line 60

 

I would greatly appreciate your help.

 

Thanks,

 

Gan

Posted

is likely your cache path isn't properly set. Goto your osc admin->configuration->cache set the cache directory to a valid path in the server.

Posted
is likely your cache path isn't properly set. Goto your osc admin->configuration->cache set the cache directory to a valid path in the server.

 

Thanks for your help.

 

The path looks right. I changed the code in /catalog/includes/functions/cache.php, and it worked.

 

Find the line:

 

$szdata = fread($fp, filesize($filename));

 

change to:

 

@$szdata = fread($fp, filesize($filename));

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...