Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with initial setup??


frankpkp

Recommended Posts

Posted

Why might I be getting this error?

 

0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from categories where parent_id = '" . $current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } ?>

 

Notice: Use of undefined constant FONT_STYLE_TOP_BAR - assumed 'FONT_STYLE_TOP_BAR' in c:apachehtdocscatalogdefault.php on line 53

FONT_STYLE_TOP_BAR

 

 

Notice: Use of undefined constant FONT_STYLE_HEADING - assumed 'FONT_STYLE_HEADING' in c:apachehtdocscatalogdefault.php on line 64

FONT_STYLE_HEADING

 

 

 

Notice: Use of undefined constant FONT_STYLE_SUB_BAR - assumed 'FONT_STYLE_SUB_BAR' in c:apachehtdocscatalogdefault.php on line 75

FONT_STYLE_SUB_BAR

 

 

 

 

 

Notice: Use of undefined constant FONT_STYLE_TOP_BAR - assumed 'FONT_STYLE_TOP_BAR' in c:apachehtdocscatalogdefault.php on line 127

FONT_STYLE_TOP_BAR

 

PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW ); asort($define_list); $column_list = array(); reset($define_list); while (list($column, $value) = each($define_list)) { if ($value) $column_list[] = $column; } $select_column_list = ''; for ($col=0; $col

Notice: Use of undefined constant FONT_STYLE_HEADING - assumed 'FONT_STYLE_HEADING' in c:apachehtdocscatalogdefault.php on line 249

FONT_STYLE_HEADING 1) { echo ' ' . FONT_STYLE_MAIN . "n"; echo ' ' . TEXT_SHOW . "n"; echo ' ' . "n"; if ($HTTP_GET_VARS['manufacturers_id']) { $arguments = 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] ; } else { $arguments = 'cPath=' . $cPath ; } $arguments .= '&sort=' . $HTTP_GET_VARS['sort']; $option_url = tep_href_link(FILENAME_DEFAULT, $arguments, 'NONSSL'); if (!$HTTP_GET_VARS['filter_id']) { echo ' All' . "n"; } else { echo 'All' . "n"; } echo '---------------' . "n"; while ($filterlist_values = tep_db_fetch_array($filterlist)) { $option_url = tep_href_link(FILENAME_DEFAULT, $arguments . '&filter_id=' . $filterlist_values['id'], 'NONSSL'); if ($HTTP_GET_VARS['filter_id'] && $HTTP_GET_VARS['filter_id'] == $filterlist_values['id']) { echo '' . $filterlist_values['name'] . ' ' . "n" ; } else { echo '' . $filterlist_values['name'] . ' ' . "n" ; } } echo '' . "n"; echo ' ' . "n"; } } // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if ($HTTP_GET_VARS['manufacturers_id']) { $image = tep_db_query("select manufacturers_image from manufacturers where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from categories where categories_id = '" . $current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?>

 

 

 

 

Notice: Use of undefined constant FONT_STYLE_TOP_BAR - assumed 'FONT_STYLE_TOP_BAR' in c:apachehtdocscatalogdefault.php on line 320

FONT_STYLE_TOP_BAR

 

 

Notice: Use of undefined constant FONT_STYLE_HEADING - assumed 'FONT_STYLE_HEADING' in c:apachehtdocscatalogdefault.php on line 327

FONT_STYLE_HEADING

 

 

 

Notice: Use of undefined constant FONT_STYLE_SUB_BAR - assumed 'FONT_STYLE_SUB_BAR' in c:apachehtdocscatalogdefault.php on line 338

FONT_STYLE_SUB_BAR

 

 

Notice: Use of undefined constant FONT_STYLE_MAIN - assumed 'FONT_STYLE_MAIN' in c:apachehtdocscatalogdefault.php on line 344

FONT_STYLE_MAIN

 

 

I am running php4.2, mySQl on a windows 2000 os with apache.

 

Any help would be appreciated - I am trying to startup a store for my wifes small business.

 

Thank you - Frank

Posted

If this is a fresh installation that you have not modified, then it looks like you might have uploaded the .php files as binary.

 

If that's the case, you should probably delete your entire installation and do it again, making certain you upload the script files as text.

 

 

Ed

Posted

Wrong answer ;-)

 

These are notices - no error messages.

 

Adjust the error_reporting setting in the php.ini.

 

Here's what I use:

 

error_reporting = E_ALL & ~E_NOTICE

 

That means: Show all Errors but no notices.

 

That solves it.

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Posted

Ok, made the change to the ini file, stopped apache and restarted. I did comment out the "show all errors" line

- here's my output:

 

0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from categories where parent_id = '" . $current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } ?>

FONT_STYLE_TOP_BAR

 

FONT_STYLE_HEADING

 

 

FONT_STYLE_SUB_BAR

 

 

 

 

FONT_STYLE_TOP_BAR

 

PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW ); asort($define_list); $column_list = array(); reset($define_list); while (list($column, $value) = each($define_list)) { if ($value) $column_list[] = $column; } $select_column_list = ''; for ($col=0; $col FONT_STYLE_HEADING 1) { echo ' ' . FONT_STYLE_MAIN . "n"; echo ' ' . TEXT_SHOW . "n"; echo ' ' . "n"; if ($HTTP_GET_VARS['manufacturers_id']) { $arguments = 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] ; } else { $arguments = 'cPath=' . $cPath ; } $arguments .= '&sort=' . $HTTP_GET_VARS['sort']; $option_url = tep_href_link(FILENAME_DEFAULT, $arguments, 'NONSSL'); if (!$HTTP_GET_VARS['filter_id']) { echo ' All' . "n"; } else { echo 'All' . "n"; } echo '---------------' . "n"; while ($filterlist_values = tep_db_fetch_array($filterlist)) { $option_url = tep_href_link(FILENAME_DEFAULT, $arguments . '&filter_id=' . $filterlist_values['id'], 'NONSSL'); if ($HTTP_GET_VARS['filter_id'] && $HTTP_GET_VARS['filter_id'] == $filterlist_values['id']) { echo '' . $filterlist_values['name'] . ' ' . "n" ; } else { echo '' . $filterlist_values['name'] . ' ' . "n" ; } } echo '' . "n"; echo ' ' . "n"; } } // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if ($HTTP_GET_VARS['manufacturers_id']) { $image = tep_db_query("select manufacturers_image from manufacturers where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from categories where categories_id = '" . $current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?>

 

 

 

FONT_STYLE_TOP_BAR

 

FONT_STYLE_HEADING

 

 

FONT_STYLE_SUB_BAR

 

FONT_STYLE_MAIN

 

It changed from the first, but not drastically????

 

thanks again for help!!!

Posted

This is really weird.

 

Looks like apache is spitting out parts of the sources.

 

Please carefully check the httpd.conf and the configure.php.

 

I'm stumped. Never seen this before.

 

I will sleep a bit and maybe find a solution.

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...