Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

iltec

Members
  • Content count

    7
  • Joined

  • Last visited

Profile Information

  • Real Name
    Sarah
  • Gender
    Female
  1. I've just installed oscThumb. When I go to turn it on I get this error message: Fatal error: Class 'tableBox' not found in W:\www\mystore\includes\classes\message_stack.php on line 20 When I hit my refresh button it goes back to my admin page and shows that it is turned on. I've tried to change several parameters and sometimes it goes back to that error message and sometimes it doesn't. I don't think this add-on is working at all even though it shows it is on because I don't see any changes to any of my pictures. I would really appreciate any suggestions you might have because I have no idea what to do here. Thank you in advance. Here is the file for message_stack.php: <?php /* $Id: message_stack.php 1740 2007-12-20 14:57:13Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License Example usage: $messageStack = new messageStack(); $messageStack->add('general', 'Error: Error 1', 'error'); $messageStack->add('general', 'Error: Error 2', 'warning'); if ($messageStack->size('general') > 0) echo $messageStack->output('general'); */ class messageStack extends tableBox { // class constructor function messageStack() { global $messageToStack; $this->messages = array(); if (tep_session_is_registered('messageToStack')) { for ($i=0, $n=sizeof($messageToStack); $i<$n; $i++) { $this->add($messageToStack[$i]['class'], $messageToStack[$i]['text'], $messageToStack[$i]['type']); } tep_session_unregister('messageToStack'); } } // class methods function add($class, $message, $type = 'error') { if ($type == 'error') { $this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'error.gif', ICON_ERROR) . ' ' . $message); } elseif ($type == 'warning') { $this->messages[] = array('params' => 'class="messageStackWarning"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'warning.gif', ICON_WARNING) . ' ' . $message); } elseif ($type == 'success') { $this->messages[] = array('params' => 'class="messageStackSuccess"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'success.gif', ICON_SUCCESS) . ' ' . $message); } else { $this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => $message); } } function add_session($class, $message, $type = 'error') { global $messageToStack; if (!tep_session_is_registered('messageToStack')) { tep_session_register('messageToStack'); $messageToStack = array(); } $messageToStack[] = array('class' => $class, 'text' => $message, 'type' => $type); } function reset() { $this->messages = array(); } function output($class) { $this->table_data_parameters = 'class="messageBox"'; $output = array(); for ($i=0, $n=sizeof($this->messages); $i<$n; $i++) { if ($this->messages[$i]['class'] == $class) { $output[] = $this->messages[$i]; } } return $this->tableBox($output); } function size($class) { $count = 0; for ($i=0, $n=sizeof($this->messages); $i<$n; $i++) { if ($this->messages[$i]['class'] == $class) { $count++; } } return $count; } } ?>
  2. That did the trick. I guess I didn't read the install instructions close enough :) Thank you so much for your help.
  3. Also, I have this error when I try to see my store: Warning: require(includes/classes/sts.php) [function.require]: failed to open stream: No such file or directory in ......//includes/application_top.php on line 501 Fatal error: require() [function.require]: Failed opening required 'includes/classes/sts.php' (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in .../includes/application_top.php on line 501 Before I installed the sts this error was not there and I could see my store just fine.
  4. I am having this same problem. I have a fresh install of v.2.2rc2a. I uploaded all of the files from RC2 which includes: catalog\admin\modules.php catalog\admin\includes\boxes\modules.php catalog\admin\includes\languages\english.php (plus all other languages you may have in your setup) catalog\admin\includes\languages\english\modules.php (plus all other languages you may have in your setup) catalog\includes\application_bottom.php catalog\includes\application_top.php catalog\includes\column_left.php catalog\includes\column_right.php catalog\includes\footer.php catalog\includes\header.php catalog\includes\classes\boxes.php catalog\includes\functions\html_output.php As each file was uploaded it overwrote another file. I checked off each one as I did it. They were all there. I've tried reinstalling several times but it still won't work. The install button is there for the STS Modules but when I press the button nothing happens. Any ideas?
×