chrometweaks.org

Where is the main iPage server network located?

Click Here To View All Answers...


First of all Where is the main iPage server network located? Thanks for any answer or 2. Another quick question... Hi,.

New to OScomerce, and have installed the latest version. I am not able to access the administration tool. I get the following error:.

Fatal error: Class messagestack: Cannot inherit from undefined class tablebox in /home/content/c/u/r/curlywillow/html/catalog/admin/includes/classes/message_stack.php on line 20.

I have tried a few things, thinking it is just a script change but not sure exactly where. Can any one help?..

Comments (128)

Good question... I dunno what is the right answer. I'll do some investigation and get back to you if I find an decent answer. You should email the people at iPage as they probably could help you..

Comment #1

Look for this code in.

/admin/includes/.

Application_top.php.

// setup our boxes.

Require(DIR_WS_CLASSES'table_block.php');.

Require(DIR_WS_CLASSES'box.php');.

// initialize the message stack for output messages.

Require(DIR_WS_CLASSES'message_stack.php');.

$messageStack = new messageStack;.

Looks to me like the class the error is on:.

Class messageStack extends tableBlock {.

Is defined in.

Require(DIR_WS_CLASSES'table_block.php');.

Class tableBlock {..

Comment #2

Where should I find these codes:.

Class messageStack extends tableBlock {.

Is defined in.

Require(DIR_WS_CLASSES'table_block.php');.

Class tableBlock {..

Comment #3

Focus on application_top.php.

Does it, or does it not have the code I posted, in that order?..

Comment #4

I do not see those three codes after:.

// setup our boxes.

Require(DIR_WS_CLASSES'table_block.php');.

Require(DIR_WS_CLASSES'box.php');.

// initialize the message stack for output messages.

Require(DIR_WS_CLASSES'message_stack.php');.

$messageStack = new messageStack;.

Here is how the code is for a few lines:.

// setup our boxes.

Require(DIR_WS_CLASSES'table_block.php');.

Require(DIR_WS_CLASSES'box.php');.

// initialize the message stack for output messages.

Require(DIR_WS_CLASSES'message_stack.php');.

$messageStack = new messageStack;.

// split-page-results.

Require(DIR_WS_CLASSES'split_page_results.php');.

// entry/item info classes.

Require(DIR_WS_CLASSES'object_info.php');.

// email classes.

Require(DIR_WS_CLASSES'mime.php');.

Require(DIR_WS_CLASSES'email.php');.

// file uploading class.

Require(DIR_WS_CLASSES'upload.php');.

// calculate category path.

If (isset($HTTP_GET_VARS['cPath'])) {.

$cPath = $HTTP_GET_VARS['cPath'];.

} else {.

$cPath = '';.

}.

This post has been edited by.

CurlyWillow1.

: 18 January 2009, 20:39..

Comment #5

Looks OK to me..

I have no clue..

This post has been edited by.

Germ.

: 18 January 2009, 20:44..

Comment #6

Check the contents of.

/admin/includes/classes/.

Table_block.php.

It should look something like this:.

<?php.

/*.

$Id: table_block.php 1745 2007-12-21 02:29:49Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Class tableBlock {.

Var $table_border = '0';.

Var $table_width = '100%';.

Var $table_cellspacing = '0';.

Var $table_cellpadding = '2';.

Var $table_parameters = '';.

Var $table_row_parameters = '';.

Var $table_data_parameters = '';.

Function tableBlock($contents) {.

$tableBox_string = '';.

$form_set = false;.

If (isset($contents['form'])) {.

$tableBox_string .= $contents['form']"\n";.

$form_set = true;.

Array_shift($contents);.

}.

$tableBox_string .= '<table border="'$this->table_border'" width="'$this->table_width'" cellspacing="'$this->table_cellspacing'" cellpadding="'$this->table_cellpadding'"';.

If (tep_not_null($this->table_parameters)) $tableBox_string .= ' '$this->table_parameters;.

$tableBox_string .= '>'"\n";.

For ($i=0, $n=sizeof($contents); $i<$n; $i++) {.

$tableBox_string .= ' <tr';.

If (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' '$this->table_row_parameters;.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' '$contents[$i]['params'];.

$tableBox_string .= '>'"\n";.

If (isset($contents[$i][0]) && is_array($contents[$i][0])) {.

For ($x=0, $y=sizeof($contents[$i]); $x<$y; $x++) {.

If (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {.

$tableBox_string .= ' <td';.

If (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="'$contents[$i][$x]['align']'"';.

If (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {.

$tableBox_string .= ' '$contents[$i][$x]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>';.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];.

$tableBox_string .= $contents[$i][$x]['text'];.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';.

$tableBox_string .= '</td>'"\n";.

}.

}.

} else {.

$tableBox_string .= ' <td';.

If (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="'$contents[$i]['align']'"';.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {.

$tableBox_string .= ' '$contents[$i]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>'$contents[$i]['text']'</td>'"\n";.

}.

$tableBox_string .= ' </tr>'"\n";.

}.

$tableBox_string .= '</table>'"\n";.

If ($form_set == true) $tableBox_string .= '</form>'"\n";.

Return $tableBox_string;.

}.

}.

?>..

Comment #7

Here is how it appears for me:.

<?php.

/*.

$Id: table_block.php 1745 2007-12-21 02:29:49Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url].

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Class tableBlock {.

Var $table_border = '0';.

Var $table_width = '100%';.

Var $table_cellspacing = '0';.

Var $table_cellpadding = '2';.

Var $table_parameters = '';.

Var $table_row_parameters = '';.

Var $table_data_parameters = '';.

Function tableBlock($contents) {.

$tableBox_string = '';.

$form_set = false;.

If (isset($contents['form'])) {.

$tableBox_string .= $contents['form']"\n";.

$form_set = true;.

Array_shift($contents);.

}.

$tableBox_string .= '<table border="'$this->table_border'" width="'$this->table_width'" cellspacing="'$this->table_cellspacing'" cellpadding="'$this->table_cellpadding'"';.

If (tep_not_null($this->table_parameters)) $tableBox_string .= ' '$this->table_parameters;.

$tableBox_string .= '>'"\n";.

For ($i=0, $n=sizeof($contents); $i<$n; $i++) {.

$tableBox_string .= ' <tr';.

If (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' '$this->table_row_parameters;.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' '$contents[$i]['params'];.

$tableBox_string .= '>'"\n";.

If (isset($contents[$i][0]) && is_array($contents[$i][0])) {.

For ($x=0, $y=sizeof($contents[$i]); $x<$y; $x++) {.

If (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {.

$tableBox_string .= ' <td';.

If (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="'$contents[$i][$x]['align']'"';.

If (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {.

$tableBox_string .= ' '$contents[$i][$x]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>';.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];.

$tableBox_string .= $contents[$i][$x]['text'];.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';.

$tableBox_string .= '</td>'"\n";.

}.

}.

} else {.

$tableBox_string .= ' <td';.

If (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="'$contents[$i]['align']'"';.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {.

$tableBox_string .= ' '$contents[$i]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>'$contents[$i]['text']'</td>'"\n";.

}.

$tableBox_string .= ' </tr>'"\n";.

}.

$tableBox_string .= '</table>'"\n";.

If ($form_set == true) $tableBox_string .= '</form>'"\n";.

Return $tableBox_string;.

}.

}.

?>..

Comment #8

OK,.

Well have deleted every thing and started over and reinstalled. Still have the same problem. Wondering if has anything to do with upgrades to the "administration tool"..

Thank for the help!..

Comment #9

The first 30 lines from /catalog/admin/includes/classes/message_stack.php:.

<?php.

/*.

$Id: message_stack.php 1740 2007-12-20 14:57:13Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url].

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');.

}.

}..

Comment #10

I think this line:.

Class messageStack extends tableBox {.

Should be:.

Class messageStack extends tableBlock {..

Comment #11

Nice catch!.

It worked I am in! Hope this helps others as well..

Thanks lots!..

Comment #12

Hi,.

New to OScomerce, and have installed the latest version. I am not able to access the administration tool. I get the following error:.

Fatal error: Class messagestack: Cannot inherit from undefined class tablebox in /home/content/c/u/r/curlywillow/html/catalog/admin/includes/classes/message_stack.php on line 20.

I have tried a few things, thinking it is just a script change but not sure exactly where. Can any one help?..

Comment #13

Make sure class for tablebox is there in Your code..

Satish..

Comment #14


This question was taken from a support group/message board and re-posted here so others can learn from it.