Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: fread() [function.fread]:


GeneralB

Recommended Posts

This is a double post ... sorry. First one went into General Support :-" ... figured here will help all us newbies.

 

Hello Forum,

 

Whacking away at this stuff. I am getting the below error message and can't seem to figure out how to get it off.

 

 

Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/u2/.../html/oscommerce-2.2ms2-060817/catalog/includes/functions/cache.php on line 60

 

When I go to the cache.php file and run a "find" search, I get the below.

 

// read in serialized data

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

fclose($fp);

 

I'm sure the answer is plain as day, but I'm a newbie and don't understand what to put here.

 

Please help.

 

Thanks....

Link to comment
Share on other sites

This is a double post ... sorry. First one went into General Support :-" ... figured here will help all us newbies.

 

Hello Forum,

 

Whacking away at this stuff. I am getting the below error message and can't seem to figure out how to get it off.

 

Okay Guys, I really am doing my homework here. After researching and discovering that nothing was wrong with the php coding on line 60, I took a stab at going to the Administration/Configuration/Cache Control tab and clicked each "Action" tab to the right of the window. That did it. When I refreshed my shopping cart the warning message was gone. On rethinking my previous steps, I was following the os doc that came with zip and didn't realize that I did not have to create these files: "Categories Box", "Manufacturers Box", .... I think that's what screwed things up. One for the newbie. :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...