StormIT Posted March 5, 2007 Share Posted March 5, 2007 Help! I've just uploaded STS v4.4 and am getting the above message when I go to the site... online 78 it has the following: // 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...
rockyreasoner Posted March 20, 2007 Share Posted March 20, 2007 I am having the exact same problem. I have replaced my copy of "html_output.php" with a fresh version and it still gives me the same error. Link to comment Share on other sites More sharing options...
bkellum Posted March 20, 2007 Share Posted March 20, 2007 I am having the exact same problem. I have replaced my copy of "html_output.php" with a fresh version and it still gives me the same error. These are documented bug fixes in the STSv4 forum: Bug fix 1 of 2 can be found at: http://www.oscommerce.com/forums/index.php?s=&...t&p=1023674 At the very end of application_top.php, it should 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; // set which precautions should be checked define('WARN_INSTALL_EXISTENCE', 'true'); define('WARN_CONFIG_WRITEABLE', 'true'); define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true'); define('WARN_SESSION_AUTO_START', 'true'); define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'); ?> Bug fix 2 of 2 can be found at: http://www.oscommerce.com/forums/index.php?s=&...t&p=1037770 Templates are not being recognized by STS. Open the includes/modules/sts/sts_default.php file. Find: if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart")) { return ''; // We don't use template for these scripts $check_file = STS_TEMPLATE_DIR .$scriptbasename . ".html"; if (file_exists($check_file)) return $check_file; } Replace with (you will remove the bracket): if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart")) return ''; // We don't use template for these scripts $check_file = STS_TEMPLATE_DIR .$scriptbasename . ".html"; if (file_exists($check_file)) return $check_file; If you leave the brackets "as is", then you will experience templates not being recognized by STS. By using the two bug fixes above, it will correct your problem that you posted about. Hope this has helped, 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...
rockyreasoner Posted March 21, 2007 Share Posted March 21, 2007 By using the two bug fixes above, it will correct your problem that you posted about.Hope this has helped, I tried to use these two bug fixes, but now I am receiving this error: Fatal error: Cannot redeclare class messagestack in /home/gtanecjx/public_html/osc/includes/classes/message_stack.php on line 20 Link to comment Share on other sites More sharing options...
bkellum Posted March 21, 2007 Share Posted March 21, 2007 I tried to use these two bug fixes, but now I am receiving this error: Fatal error: Cannot redeclare class messagestack in /home/gtanecjx/public_html/osc/includes/classes/message_stack.php on line 20 Check your code fixes...you have the message stack code inserted twice. It should be exactly as mentioned above. 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.