View Single Post
12-17-2007, 12:52 PM
#1
getout is offline getout
Status: Junior Member
Join date: Sep 2005
Location:
Expertise:
Software:
 
Posts: 52
iTrader: 0 / 0%
 

getout is on a distinguished road

  Old  Call to a member function read() on a non-object..

Hi,

I am trying to make a xml-rpc client & server for the oscommerce script. but when i m trying to invoke it, it is giving me this error

Code:
PHP Fatal error:  Call to a member function read() on a non-object in C:\\Program Files\\EasyPHP 2.0b1\\www\\oscommercev3\\includes\\classes\\database.php on line 487
Line 487 of database.php is this

PHP Code:
function execute() {
      global 
$osC_Cache;

      if (isset(
$this->cache_key)) {
        if (
$osC_Cache->read($this->cache_key$this->cache_expire)) {
          
$this->cache_data $osC_Cache->cached_data;

          
$this->cache_read true;
        }
      } 
There is a file application_top.php which instantiate $osC_Cache.

when i include application_top.php in normal php functions file, it works perfectly but when i use in xmlrpc server file then it gives me above error.

Can anybody suggest me a solution??