Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to a member function on a non-object


jennki

Recommended Posts

Posted

HI,

 

I'm testing my site on webase, I just found a fatal error as below:

 

Fatal error: Call to a member function on a non-object

in /home/xxxxxx.com/catalog/includes/functions/html_output.php on line 78

 

When I open the file html_output.php on line 78, here's the code

 


73 // The HTML image wrapper function
74   function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
75	
76	// START STS v4.4:
77	  global $sts; 
78		  $sts->image($src); // Take image from template folder if exists.
79	// END STS v4.4
80	
81    if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
82      return false;
83   }

 

Could anyone tell me what I've gone wrong? How could I correct it.

 

I could not get access to the website now whenever I type in the website name.

 

Thanks in advance.

Archived

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

×
×
  • Create New...