chrometweaks.org

Where do I enter a iPage promo code?

Click Here To View All Answers...


My question is Where do I enter a iPage promo code? Thanks in advance for any comment. My other question... I'm trying to install usps methods 2.6 and after I follow the instructions and upload the files I get this error message when trying to edit the usps module:.

Fatal error: Call to undefined function: tep_array_shift() in /home/thegeek/public_html/main/admin/includes/classes/table_block.php on line 31.

I don't really know enough php to fix this by myself. i've just started with php because of oscommerce and i'm learning as I go. so if anyone can help please do so!.

I've searched the forums for the past 3 days about this problem and have found many people that have posted similar error messages, but no one seems to post any solutions. what's the use of a support forum if no one helps the inexperienced?.

Here are some things you should know... i've already signed up for the api and i'm at the production server already. without installing usps methods I have options for express, priority and parcel post.. but I need to ship via priority, media, international airmail and surface. please help me! this is driving me insane and blind!.

Also, after i've uploaded the usps methods files, I lose the status column in my admin, there are no green or red buttons to change the status. but there is IMAGE_MODULE_INSTALL and IMAGE_MODULE_REMOVE next to the edit/info box on the right when I click on the row of a shipping module. this is also true for the rest of the admin iPage site lacking the green/red buttons..

Please help and please answer... anyone.. please!!!!.

Thanks,.

Aasha..

Comments (88)

There are tons of iPage promo deals available. Good way to save cash on iPage now. I suggest you to register for their email list so you can get emails of their most recent online promotional codes. They typically mail once a week or so..

Comment #1

Thanks for responding.. here's my table_block.php file:.

<?php.

/*.

 $Id: table_block.php,v 1.2 2002/11/22 18:45:46 dgw_ Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2002 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 = '<table border="'$this->table_border'" width="'$this->table_width'" cellspacing="'$this->table_cellspacing'" cellpadding="'$this->table_cellpadding'"';.

     if ($this->table_parameters != '') $tableBox_string .= ' '$this->table_parameters;.

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

     $form_set = false;.

     if ($contents['form']) {.

       echo $contents['form']"\n";.

       $form_set = true;.

       tep_array_shift($contents);.

     }.

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

       $tableBox_string .= '  <tr';.

       if ($this->table_row_parameters != '') $tableBox_string .= ' '$this->table_row_parameters;.

       if ($contents[$i]['params']) $tableBox_string .= ' '$contents[$i]['params'];.

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

       if (is_array($contents[$i][0])) {.

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

           if ($contents[$i][$x]['text']) {.

             $tableBox_string .= '    <td';.

             if ($contents[$i][$x]['align'] != '') $tableBox_string .= ' align="'$contents[$i][$x]['align']'"';.

             if ($contents[$i][$x]['params']) {.

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

             } elseif ($this->table_data_parameters != '') {.

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

             }.

             $tableBox_string .= '>';.

             if ($contents[$i][$x]['form']) $tableBox_string .= $contents[$i][$x]['form'];.

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

             if ($contents[$i][$x]['form']) $tableBox_string .= '</form>';.

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

           }.

         }.

       } else {.

         $tableBox_string .= '    <td';.

         if ($contents[$i]['align'] != '') $tableBox_string .= ' align="'$contents[$i]['align']'"';.

         if ($contents[$i]['params']) {.

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

         } elseif ($this->table_data_parameters != '') {.

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

         }.

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

       }.

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

       if ($contents[$i]['form']) $tableBox_string .= '</form>'"\n";.

     }.

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

     return $tableBox_string;.

   }.

 }.

?>..

Comment #2

Have you tried changing "tep_array_shift" to just "array_shift"?.

Looks like your copy of that file is pretty old, here's what I have:.

 $Id: table_block.php,v 1.8 2003/06/20 15:51:18 hpdl Exp $.

This post has been edited by.

Ayn.

: 06 February 2004, 18:02..

Comment #3

In addition to the file you requested, I want to post that I am new to php so what you explained was very confusing to me. if you can, please talk in lamens terms instead of 'master php wizard' terms. I AM STOOPID! but thank you so much for helping!..

Comment #4

Wow! you replied when I was explaining how stupid I am... but hey!!! your solution worked... I changed it to just array_shift and it works.. thanks a ton!..

Comment #5

Wait... now I get tihs error when I try to change any of the configuration setting in my admin and if I go to categories/products and other pages too I get the an error too:.

Configuration:.

Fatal error: Call to undefined function: tep_array_merge() in /home/thegeek/public_html/main/admin/configuration.php on line 93.

Categories/products:.

Fatal error: Call to undefined function: tep_array_merge() in /home/thegeek/public_html/main/admin/categories.php on line 685.

Customers:.

Fatal error: Call to undefined function: tep_array_merge() in /home/thegeek/public_html/main/admin/customers.php on line 461.

Orders:.

Fatal error: Call to undefined function: tep_array_merge() in /home/thegeek/public_html/main/admin/orders.php on line 332.

HELP!!!!!!!!!!!!1..

Comment #6

Ok.. it seems fine now.. I don't know what happened..

Comment #7

The one for tep_array_merge is array_merge fixed it for me line 707 in categories.php.

Thats was from the xmlUPS .02 module I just tried plus I found out the xmlUPS module needs php with with-curl=share,/usr (might not need the usr dir for some linux distro).

That was a line 590 error..

Comment #8

I'm trying to install usps methods 2.6 and after I follow the instructions and upload the files I get this error message when trying to edit the usps module:.

Fatal error: Call to undefined function: tep_array_shift() in /home/thegeek/public_html/main/admin/includes/classes/table_block.php on line 31.

I don't really know enough php to fix this by myself. i've just started with php because of oscommerce and i'm learning as I go. so if anyone can help please do so!.

I've searched the forums for the past 3 days about this problem and have found many people that have posted similar error messages, but no one seems to post any solutions. what's the use of a support forum if no one helps the inexperienced?.

Here are some things you should know... i've already signed up for the api and i'm at the production server already. without installing usps methods I have options for express, priority and parcel post.. but I need to ship via priority, media, international airmail and surface. please help me! this is driving me insane and blind!.

Also, after i've uploaded the usps methods files, I lose the status column in my admin, there are no green or red buttons to change the status. but there is IMAGE_MODULE_INSTALL and IMAGE_MODULE_REMOVE next to the edit/info box on the right when I click on the row of a shipping module. this is also true for the rest of the admin iPage site lacking the green/red buttons..

Please help and please answer... anyone.. please!!!!.

Thanks,.

Aasha..

Comment #9

I just downloaded the zip for the USPS 2.6 mod and /home/ayn/DOMAINS/pearljeweler.com/www/admin/includes/classes/table_block.php is not part of it. So it's not a problem with USPS 2.6 mod..

In my table_block.php, I have array_shift($contents) instead of tep_array_shift(), if you do a `find-name \*.php | xargs grep tep_array_shift`, you will see that that function is not defined anywhere. I have no idea where you got your table_block.php from. I checked the TEP cvs and 2.2MS2 and they both use array_shift, a php internal function..

So it might help if you post a copy of your table_block.php.

Andrew..

Comment #10


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