Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please, I am desprate! could you just have a look


ginxy33

Recommended Posts

Posted

I am getting this error, doesn't seem to matter what I do. Has anyone else had this problem and knows what I did wrong? I am so fustrated I am about to just give up and walk away...

 

help.jpg

Posted

I'm not sure but the error refers to line 60 of the cache.php file. If you want to compare your file to the stock oscommerce cache.php file I have included the code for that area:

 

// try to open file
if ($fp = @fopen($filename, 'r')) {
// read in serialized data
  $szdata = fread($fp, filesize($filename));
  fclose($fp);
// unserialze the data
  $var = unserialize($szdata);

  $success = true;
}

return $success;
 }

 

Line 60 is the line that reads: $szdata = fread($fp, filesize($filename));

 

There is also a setting in teh admin panel where you can turn cache usage off or on.

Posted
I am getting this error, doesn't seem to matter what I do. Has anyone else had this problem and knows what I did wrong? I am so fustrated I am about to just give up and walk away...

 

help.jpg

 

 

When you are calling to get a file from your cache you need to pass an arg(file name) If that is empty which happens with some contrib then you get this.

 

Put a condition check that if the arg is Not NULL then only those lines get executed.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

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

×
×
  • Create New...