Shutdown007 Posted March 5, 2007 Share Posted March 5, 2007 Can anyone please help me with this: I've started to go through my lastest website via OSC and I get this error: Fatal error: Call to a member function on a non-object in /homepages/34/d186790959/htdocs/sweetappreciations/catalog/includes/functions/html_output.php on line 78 I get it when I login -- select MY ACCOUNT (Accounts.php) MY ACCOUNT INFORMATION Then I select email notifications-- view or change etc.... which puts me at: PRODUCT NOTIFICATIONS(account_notifications.php) Once you hit continue it gives the above error.... Thanks Patrick Link to comment Share on other sites More sharing options...
djmonkey1 Posted March 5, 2007 Share Posted March 5, 2007 Can anyone please help me with this: I've started to go through my lastest website via OSC and I get this error: Fatal error: Call to a member function on a non-object in /homepages/34/d186790959/htdocs/sweetappreciations/catalog/includes/functions/html_output.php on line 78 I get it when I login -- select MY ACCOUNT (Accounts.php) MY ACCOUNT INFORMATION Then I select email notifications-- view or change etc.... which puts me at: PRODUCT NOTIFICATIONS(account_notifications.php) Once you hit continue it gives the above error.... Thanks Patrick What's on line 78 of catalog/includes/functions/html_output.php? Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread. Link to comment Share on other sites More sharing options...
Shutdown007 Posted March 5, 2007 Author Share Posted March 5, 2007 Sorry see below: $sts->image($src); // Take image from template folder if exists. I hope this is enough...I can cut more out Patrick What's on line 78 of catalog/includes/functions/html_output.php? Link to comment Share on other sites More sharing options...
Shutdown007 Posted March 5, 2007 Author Share Posted March 5, 2007 Here's more if this will help: //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; Sorry see below: $sts->image($src); // Take image from template folder if exists. I hope this is enough...I can cut more out Patrick Link to comment Share on other sites More sharing options...
djmonkey1 Posted March 5, 2007 Share Posted March 5, 2007 Here's more if this will help: //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; Try this and see if it clears the error: Change // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 to // START STS v4.4: //global $sts; //$sts->image($src); // Take image from template folder if exists. // END STS v4.4 Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread. Link to comment Share on other sites More sharing options...
Shutdown007 Posted March 5, 2007 Author Share Posted March 5, 2007 DJMONKEY, It worked.....I really appreciate your help.... Patrick Try this and see if it clears the error: Change // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 to // START STS v4.4: //global $sts; //$sts->image($src); // Take image from template folder if exists. // END STS v4.4 Link to comment Share on other sites More sharing options...
raffnix84 Posted April 17, 2007 Share Posted April 17, 2007 DJMONKEY, It worked.....I really appreciate your help.... Patrick I have this Problem too, but this is not the solution. <_< this function, as the comment say, take the image from the template dir instead of the catalog/images/ dir if you comment this out, you simply deactivate this feature an the Error. :blink: The problem is in the account_edit.php line 162: $messageStack->add_session('account', SUCCESS_ACCOUNT_UPDATED, 'success'); STS have here problems with the add_session() function. Thats what i found out. Does anyone have an idea about how to solve this problem??? Link to comment Share on other sites More sharing options...
raffnix84 Posted April 17, 2007 Share Posted April 17, 2007 UPDATE! i got it. :lol: The problem is simply that STS have no instance at the time when the messagestack tries to put the image in there. Because of this the function image() could not be found. How to Fix: Search in catalog/includes/application_top.php // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; Add below // START STS 4.1 require (DIR_WS_CLASSES.'sts.php'); $sts= new sts(); $sts->start_capture(); // END STS 4.1 Thats it!!! :thumbsup: Now it have to look like this: // START STS 4.1 require (DIR_WS_CLASSES.'sts.php'); $sts= new sts(); $sts->start_capture(); // END STS 4.1 // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; Link to comment Share on other sites More sharing options...
OverThere Posted May 18, 2007 Share Posted May 18, 2007 Thanks! I have just received this error today, 1 month after the solution was posted :D. Link to comment Share on other sites More sharing options...
bkellum Posted May 26, 2007 Share Posted May 26, 2007 UPDATE! i got it. :lol: The problem is simply that STS have no instance at the time when the messagestack tries to put the image in there. Because of this the function image() could not be found. How to Fix: Search in catalog/includes/application_top.php // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; Add below // START STS 4.1 require (DIR_WS_CLASSES.'sts.php'); $sts= new sts(); $sts->start_capture(); // END STS 4.1 Thats it!!! :thumbsup: Now it have to look like this: // START STS 4.1 require (DIR_WS_CLASSES.'sts.php'); $sts= new sts(); $sts->start_capture(); // END STS 4.1 // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; Actually you did not complete the STS installation that includes changes to the application_top.php file already. It should look like the following: // START STS 4.5 require (DIR_WS_CLASSES.'sts.php'); $sts= new sts(); $sts->start_capture(); // END STS // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.