chrometweaks.org

Is iPage the right service for this?

Click Here To View All Answers...


My first question is Is iPage the right service for this? Hoping for any comment. My other question... Hi all,.

My live iPage site has gone haywire all of a sudden! Everything has been working very well until I looked at the iPage site today. Now, if you click on one of the category links, you get a page full of php instead of my products! Please help me fix this...I have no idea what caused it or how to fix. The only thing that I've done recently was to add meta tags to the index page header. I removed what I added and it did not fix the problem. Please help me to get my iPage site up and running again!.

Here's my site:.

My site..

Comments (88)

Yup, but you might want to make sure and wait for someone else to confirm this as I am unsure of myself. Better yet, why don't you contact the iPage guys because they can answer you better...

Comment #1

Here's the only part I made a change to...everything that I added, I have deleted and here's what's left of that line..

<! header //><!p require(DIR_WS_INCLUDES'header.php');><! header_eof //>.

There's a lot more to the index.php of course, but this is the only line (right at the beginning) that I made a change to...

Comment #2

Nobody is going to be able to tell from just that line. Obviously there is a bigger problem. You will need to post your whole code...

Comment #3

I don't know what this is for.

<!p require(DIR_WS_INCLUDES'header.php');>.

Or what you were trying to do, but if you want to include a PHP script, I would change it to.

<?php require(DIR_WS_INCLUDES'header.php'); ?>..

Comment #4

That script was already there before I added meta tags. As I mentioned, the only change I made was to that line and I deleted everything that I added..

Here's my whole index.php.

<! header //><!p require(DIR_WS_INCLUDES'header.php');><! header_eof //><! body //><table cellspacing="3" cellpadding="3" width="100%" border="0"><tbody><tr><td valign="top"><table cellspacing="0" cellpadding="2" border="0"><! left_navigation //><!p require(DIR_WS_INCLUDES'column_left.php');><! left_navigation_eof //><tbody></tbody></table></td><! body_text //><!p.

 if ($category_depth == 'nested') {.

   $category_query = tep_db_query("select cd.categories_name, c.categories_image from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.categories_id = '"(int)$current_category_id"' and cd.categories_id = '"(int)$current_category_id"' and cd.language_id = '"(int)$languages_id"'");.

   $category = tep_db_fetch_array($category_query);.

><td valign="top" width="100%"><table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td><table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td class="pageHeading"><!p echo $category['categories_name']></td><td class="pageHeading" align="right"><!p echo tep_image(DIR_WS_IMAGES$category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);></td></tr></tbody></table></td></tr><tr><td><!p echo tep_draw_separator('pixel_trans.gif', '100%', '10');></td></tr><tr><td><table cellspacing="0" cellpadding="2" width="100%" border="0"><tbody><tr><td><table cellspacing="0" cellpadding="2" width="100%" border="0"><tbody><tr><!p.

   if (isset($cPath) && strpos('_', $cPath)) {.

// check to see if there are deeper categories within the current category.

     $category_links = array_reverse($cPath_array);.

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

       $categories_query = tep_db_query("select count(*) as total from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$category_links[$i]"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"'");.

       $categories = tep_db_fetch_array($categories_query);.

       if ($categories['total'] < 1) {.

         // do nothing, go through the loop.

       } else {.

         $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$category_links[$i]"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' order by sort_order, cd.categories_name");.

         break; // we've found the deepest category the customer is in.

       }.

     }.

   } else {.

     $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$current_category_id"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' order by sort_order, cd.categories_name");.

   }.

   $number_of_categories = tep_db_num_rows($categories_query);.

   $rows = 0;.

   while ($categories = tep_db_fetch_array($categories_query)) {.

     $rows++;.

     $cPath_new = tep_get_path($categories['categories_id']);.

     $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW)'%';.

     echo '                <td align="center" class="smallText" width="'$width'" valign="top"><a href="'tep_href_link(FILENAME_DEFAULT, $cPath_new)'">'tep_image(DIR_WS_IMAGES$categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)'<br>'$categories['categories_name']'</a></td>'"\n";.

     if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {.

       echo '              </tr>'"\n";.

       echo '              <tr>'"\n";.

     }.

   }.

// needed for the new products module shown below.

   $new_products_category_id = $current_category_id;.

></tr></tbody></table></td></tr><tr><td><!p echo tep_draw_separator('pixel_trans.gif', '100%', '10');></td></tr><tr><td><br /><!p include(DIR_WS_MODULESFILENAME_DEFAULT_SPECIALS);></td></tr><tr><td><br /><!p include(DIR_WS_MODULESFILENAME_FEATURED);></td></tr></tbody></table></td></tr></tbody></table></td><!p.

 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {.

// create column list.

   $define_list = array('PRODUCT_LIST_MODEL'><>&lt;&gt;&lt;&gt;&lt;&gt;PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' =&gt; PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' =&gt; PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' =&gt; PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' =&gt; PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' =&gt; PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' =&gt; PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' =&gt; PRODUCT_LIST_BUY_NOW); asort($define_list); $column_list = array(); reset($define_list); while (list($key, $value) = each($define_list)) { if ($value &gt; 0) $column_list[] = $key; } $select_column_list = ''; for ($i=0, $n=sizeof($column_list); $i&lt;$n; $i++) { switch ($column_list[$i]) { case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model, '; break; case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name, '; break; case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image, '; break; case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight, '; break; } } // show the products of a specified manufacturer if (isset($HTTP_GET_VARS['manufacturers_id'])) { if (isset($HTTP_GET_VARS['filter_id']) &amp;&amp; tep_not_null($HTTP_GET_VARS['filter_id'])) { // We are asked to show only a specific category $listing_sql = &quot;select &quot;$select_column_list&quot; p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &quot;TABLE_PRODUCTS&quot; p, &quot;TABLE_PRODUCTS_DESCRIPTION&quot; pd, &quot;TABLE_MANUFACTURERS&quot; m, &quot;TABLE_PRODUCTS_TO_CATEGORIES&quot; p2c left join &quot;TABLE_SPECIALS&quot; s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '&quot;(int)$HTTP_GET_VARS['manufacturers_id']&quot;' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '&quot;(int)$languages_id&quot;' and p2c.categories_id = '&quot;(int)$HTTP_GET_VARS['filter_id']&quot;'&quot;; } else { // We show them all $listing_sql = &quot;select &quot;$select_column_list&quot; p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &quot;TABLE_PRODUCTS&quot; p, &quot;TABLE_PRODUCTS_DESCRIPTION&quot; pd, &quot;TABLE_MANUFACTURERS&quot; m left join &quot;TABLE_SPECIALS&quot; s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '&quot;(int)$languages_id&quot;' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '&quot;(int)$HTTP_GET_VARS['manufacturers_id']&quot;'&quot;; } } else { // show the products in a given categorie if (isset($HTTP_GET_VARS['filter_id']) &amp;&amp; tep_not_null($HTTP_GET_VARS['filter_id'])) { // We are asked to show only specific catgeory $listing_sql = &quot;select &quot;$select_column_list&quot; p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &quot;TABLE_PRODUCTS&quot; p, &quot;TABLE_PRODUCTS_DESCRIPTION&quot; pd, &quot;TABLE_MANUFACTURERS&quot; m, &quot;TABLE_PRODUCTS_TO_CATEGORIES&quot; p2c left join &quot;TABLE_SPECIALS&quot; s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '&quot;(int)$HTTP_GET_VARS['filter_id']&quot;' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '&quot;(int)$languages_id&quot;' and p2c.categories_id = '&quot;(int)$current_category_id&quot;'&quot;; } else { // We show them all $listing_sql = &quot;select &quot;$select_column_list&quot; p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from &quot;TABLE_PRODUCTS_DESCRIPTION&quot; pd, &quot;TABLE_PRODUCTS&quot; p left join &quot;TABLE_MANUFACTURERS&quot; m on p.manufacturers_id = m.manufacturers_id, &quot;TABLE_PRODUCTS_TO_CATEGORIES&quot; p2c left join &quot;TABLE_SPECIALS&quot; s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '&quot;(int)$languages_id&quot;' and p2c.categories_id = '&quot;(int)$current_category_id&quot;'&quot;; } } if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) &gt; sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i&lt;$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1'a'; $listing_sql .= &quot; order by pd.products_name&quot;; break; } } } else { $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1); $sort_order = substr($HTTP_GET_VARS['sort'], 1); $listing_sql .= ' order by '; switch ($column_list[$sort_col-1]) { case 'PRODUCT_LIST_MODEL': $listing_sql .= &quot;p.products_model &quot;($sort_order == 'd' ? 'desc' : '')&quot;, pd.products_name&quot;; break; case 'PRODUCT_LIST_NAME': $listing_sql .= &quot;pd.products_name &quot;($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= &quot;m.manufacturers_name &quot;($sort_order == 'd' ? 'desc' : '')&quot;, pd.products_name&quot;; break; case 'PRODUCT_LIST_QUANTITY': $listing_sql .= &quot;p.products_quantity &quot;($sort_order == 'd' ? 'desc' : '')&quot;, pd.products_name&quot;; break; case 'PRODUCT_LIST_IMAGE': $listing_sql .= &quot;pd.products_name&quot;; break; case 'PRODUCT_LIST_WEIGHT': $listing_sql .= &quot;p.products_weight &quot;($sort_order == 'd' ? 'desc' : '')&quot;, pd.products_name&quot;; break; case 'PRODUCT_LIST_PRICE': $listing_sql .= &quot;final_price &quot;($sort_order == 'd' ? 'desc' : '')&quot;, pd.products_name&quot;; break; } } ?&gt; </ /></ /></ /></><td valign="top" width="100%"><table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td><table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td class="pageHeading"><!p.

 $category_query1 = tep_db_query("select cd.categories_name, c.categories_image from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.categories_id = '"(int)$current_category_id"' and cd.categories_id = '"(int)$current_category_id"' and cd.language_id = '"(int)$languages_id"'");.

  $category1 = tep_db_fetch_array($category_query1);.

If ($category1['categories_name'] != "") {echo $category1['categories_name'];} else { echo HEADING_TITLE;}.

></td><!p.

// optional Product List Filter.

   if (PRODUCT_LIST_FILTE><>&lt;&gt;&lt;&gt;&lt;&gt;0) { if (isset($HTTP_GET_VARS['manufacturers_id'])) { $filterlist_sql = &quot;select distinct c.categories_id as id, cd.categories_name as name from &quot;TABLE_PRODUCTS&quot; p, &quot;TABLE_PRODUCTS_TO_CATEGORIES&quot; p2c, &quot;TABLE_CATEGORIES&quot; c, &quot;TABLE_CATEGORIES_DESCRIPTION&quot; cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '&quot;(int)$languages_id&quot;' and p.manufacturers_id = '&quot;(int)$HTTP_GET_VARS['manufacturers_id']&quot;' order by cd.categories_name&quot;; } else { $filterlist_sql= &quot;select distinct m.manufacturers_id as id, m.manufacturers_name as name from &quot;TABLE_PRODUCTS&quot; p, &quot;TABLE_PRODUCTS_TO_CATEGORIES&quot; p2c, &quot;TABLE_MANUFACTURERS&quot; m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '&quot;(int)$current_category_id&quot;' order by m.manufacturers_name&quot;; } $filterlist_query = tep_db_query($filterlist_sql); if (tep_db_num_rows($filterlist_query) &gt; 1) { echo ' </ /></ /></ /></><td class="main" align="center">'tep_draw_form('filter', FILENAME_DEFAULT, 'get')TEXT_SHOW' '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); $options = array(array('id' =&gt; '', 'text' =&gt; TEXT_ALL_CATEGORIES)); } else { echo tep_draw_hidden_field('cPath', $cPath); $options = array(array('id' =&gt; '', 'text' =&gt; TEXT_ALL_MANUFACTURERS)); } echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']); while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' =&gt; $filterlist['id'], 'text' =&gt; $filterlist['name']); } echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange=&quot;this.form.submit()&quot;'); echo '</form /></td><>&lt;&gt;&lt;&gt;&lt;&gt;'&quot;\n&quot;; } } // Get the right image for the top-right $image = DIR_WS_IMAGES'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query(&quot;select manufacturers_image from &quot;TABLE_MANUFACTURERS&quot; where manufacturers_id = '&quot;(int)$HTTP_GET_VARS['manufacturers_id']&quot;'&quot;); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query(&quot;select categories_image from &quot;TABLE_CATEGORIES&quot; where categories_id = '&quot;(int)$current_category_id&quot;'&quot;); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?&gt; </ /></ /></ /></></tr></tbody></table></td></tr><tr><td><!p echo tep_draw_separator('pixel_trans.gif', '100%', '10');></td></tr><tr><td><!p include(DIR_WS_MODULESFILENAME_PRODUCT_LISTING);></td></tr></tbody></table></td><!p.

 } else { // default page.

><td valign="top" width="100%"><table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td><table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td class="pageHeading"><!p echo HEADING_TITLE;></td></tr></tbody></table></td></tr><tr><td><!p echo tep_draw_separator('pixel_trans.gif', '100%', '10');></td></tr><tr><td><table cellspacing="0" cellpadding="0" width="100%" border="0"><tbody><tr><td class="main"><!p echo tep_customer_greeting();></td></tr><tr><td><!p echo tep_draw_separator('pixel_trans.gif', '100%', '10');></td></tr><tr><td class="main"><!p echo TEXT_MAIN;></td></tr><tr><td><!p echo tep_draw_separator('pixel_trans.gif', '100%', '10');></td></tr><tr><td><br /><!p include(DIR_WS_MODULESFILENAME_DEFAULT_SPECIALS);></td></tr><tr><td><br /><!p include(DIR_WS_MODULESFILENAME_FEATURED);></td></tr><!p.

   include(DIR_WS_MODULESFILENAME_UPCOMING_PRODUCTS);.

></tbody></table></td></tr></tbody></table></td><!p.

 }.

><! body_text_eof //><td valign="top"><table cellspacing="0" cellpadding="2" border="0"><! right_navigation //><!p require(DIR_WS_INCLUDES'column_right.php');><! right_navigation_eof //><tbody></tbody></table></td></tr></tbody></table><! body_eof //><! footer //><!p require(DIR_WS_INCLUDES'footer.php');><! footer_eof //><br />.

Thanks for the help...I do appreciate it...

Comment #5

WOW!!!.

You got some major problems with your code. What editor are you using?.

Most of your stuff is commented out or is listed with out the <?php thus causing code to appear as straight text in a table. I would highly suggest getting yourself a good editor that color codes your code and start there. You will have some serious editting to do..

You are missing code that should normally be in the index.php file. Second, you are missing your starting <?php line. Third you are missing the comment header that is typically at the top of each oscommerce related file, telling the version of the file and giving basic copyright info. Fourth, looks like you commented out a lot of stuff while you were editing the iPage site and thus commented out to much..

Take my advice and get yourself a good editor. Also, if your index.php file is otherwise a standard install besides that one contribution you added, you may be better off reinstalling your backup (you did make one of course...). If not download a copy of osc from the iPage site and extract the index.php file and upload it to your site. At least while you work on bringing the other one back up if you really want to...

Comment #6

Your best bet is to restore from a backup (ummm, do you have a backup prior to modification)? else to get it back up while you wrestle trying to figure out what went on, just copy a generic index.php file to the site, and slowly, and I mean slowly, add the things back in there, one at a time until it works, else when it breaks then you know what you did to break it...

Comment #7

Hi all,.

My live iPage site has gone haywire all of a sudden! Everything has been working very well until I looked at the iPage site today. Now, if you click on one of the category links, you get a page full of php instead of my products! Please help me fix this...I have no idea what caused it or how to fix. The only thing that I've done recently was to add meta tags to the index page header. I removed what I added and it did not fix the problem. Please help me to get my iPage site up and running again!.

Here's my site:.

My site..

Comment #8

Looks like your tags are screwed up somehow. You would have to post your index.php file to determine where. Most likely you are missing a <?php and it is reading everything as text on the page...

Comment #9


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