fantomen Posted December 10, 2002 Posted December 10, 2002 After Oscommerce 2.2 says installation successful and I click on catalog I get this message in my browser: Fatal error: Failed opening required 'includes/languages/.php' (include_path='.;c:php4pear') in C:Inetpubwwwrootcatalogincludesapplication_top.php on line 250 What is wrong? PLEASE HELP ME.
alverman Posted December 10, 2002 Posted December 10, 2002 Hi fantomen It doesn't find the right language directory. Check admin> languages settings. es.: Directory: /catalog/includes/languages/english
dreamscape Posted December 10, 2002 Posted December 10, 2002 you are running an IIS server and need to create a virtual directory so that PHP can navigate to the includes directory properly. I had the same problem and then finally after 2 weeks found the answer... I don't remember where, but it wasn't on any OSC related website... this information really needs to be added to the OSC win2K/XP installation docs for IIS servers though... it seems there are a few posts about it every week... ok more info on creating the virutal directory is here: http://www.oscommerce.com/forums/viewtopic.php...7858&highlight= The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke
fantomen Posted December 10, 2002 Author Posted December 10, 2002 Hi fantomen It doesn't find the right language directory. Check admin> languages settings. es.: Directory: /catalog/includes/languages/english Hello alverman, Thanks for your reply, but I can not find anything wrong in /catalog/includes/languages/english.php Do you have any more advice. I really need help with this. Thanks in advance fantomen
fantomen Posted December 10, 2002 Author Posted December 10, 2002 you are running an IIS server and need to create a virtual directory so that PHP can navigate to the includes directory properly. I had the same problem and then finally after 2 weeks found the answer... I don't remember where, but it wasn't on any OSC related website... this information really needs to be added to the OSC win2K/XP installation docs for IIS servers though... it seems there are a few posts about it every week... ok more info on creating the virutal directory is here: http://www.oscommerce.com/forums/viewtopic.php...&highlight= Hello dreamscape, I have tried that also and it does not work for me. Perhaps my php version is not compatible with oscommerce? I am using: PHP 4.2.3 installer [921Kb] - 6 September 2002 (CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included) MySQL version:MySQL 4.0.5-beta Windows 95/98/NT/2000/XP (18.8M) My operativsystem: MS windows 2000 professional and I us IIS5 Do you have any other solution? All ideas to solve my oscommerce error are very welcome. Thanks in advance fantomen
alverman Posted December 10, 2002 Posted December 10, 2002 Hi fantomen I have no clue about running IIS, but I do not think it is a matter of compatibility. However I did not mean english.php (file in your catalog/../../ directory) but the settings in the admin panel under languages. bye
fantomen Posted December 10, 2002 Author Posted December 10, 2002 Hi fantomenI have no clue about running IIS, but I do not think it is a matter of compatibility. However I did not mean english.php (file in your catalog/../../ directory) but the settings in the admin panel under languages. bye Hi alverman, I get the same errormessage when I try to open admin in my browser. How can I change the default setting language and where do I do that? Best Regards fantomen
alverman Posted December 10, 2002 Posted December 10, 2002 I would first check table "configuration" in my DB for the default language, mine looks like this : configuration_id | configuration_title | configuration_key | configuration_value | configuration_description | configuration_group_id | sort_order | .............................. ................................................................................ ................................................................................. ............................................ 66 Default Language DEFAULT_LANGUAGE en Default Language 6 0 and then table "languages" : languages_id | name | code | image | directory | sort_order ............................................................................ 1 english en icon.gif english 1 hope this helps!
fantomen Posted December 10, 2002 Author Posted December 10, 2002 I would first check table "configuration" in my DB for the default language, mine looks like this : configuration_id | configuration_title | configuration_key | configuration_value | configuration_description | configuration_group_id | sort_order | .............................. ................................................................................ ................................................................................. ............................................ 66 Default Language DEFAULT_LANGUAGE en Default Language 6 0 and then table "languages" : languages_id | name | code | image | directory | sort_order ............................................................................ 1 english en icon.gif english 1 hope this helps! Hello alverman, Thank you very much for trying to help me. I am looking at the table and it looks like this: DROP TABLE IF EXISTS configuration; CREATE TABLE configuration ( configuration_id int NOT NULL auto_increment, configuration_title varchar(64) NOT NULL, configuration_key varchar(64) NOT NULL, configuration_value varchar(255) NOT NULL, configuration_description varchar(255) NOT NULL, configuration_group_id int NOT NULL, sort_order int(5) NULL, last_modified datetime NULL, date_added datetime NOT NULL, use_function varchar(255) NULL, set_function varchar(255) NULL, PRIMARY KEY (configuration_id) DROP TABLE IF EXISTS languages; CREATE TABLE languages ( languages_id int NOT NULL auto_increment, name varchar(32) NOT NULL, code char(2) NOT NULL, image varchar(64), directory varchar(32), sort_order int(3), PRIMARY KEY (languages_id), KEY IDX_LANGUAGES_NAME (name) HOw do I make the changes I need to do? I downloaded a software from http://download.com.com/3000-2210-8049516....tml?tag=lst-0-1 to get controll over the database but I am new to this so I do not now how to work this. Please help me... ALL ideas are welcome....
alverman Posted December 10, 2002 Posted December 10, 2002 Wait a minute, fantomen ...... that file is "oscommerce.sql" in the install folder, wich is needed to install you database (BTW that folder should be removed after installation). If you went throu the installation process (pointing you browser to catalog/install/index.php) your DB should be in place and populated. Question: Are you working on local or remote? An hosting service that provides PHP and MySQL db, usually provides also phpMyAdmin (http://phpwizard.net/projects/phpMyAdmin/) a tool commonly used to manage a MySQL database (don't know about MyAdmin 1.2 in your link, shoul do the same). With phpMyAdmin you can then verify your db content. bye
dreamscape Posted December 10, 2002 Posted December 10, 2002 Hello dreamscape,I have tried that also and it does not work for me. Perhaps my php version is not compatible with oscommerce? I am using: PHP 4.2.3 installer [921Kb] - 6 September 2002 (CGI only, MySQL support built-in, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included) MySQL version:MySQL 4.0.5-beta Windows 95/98/NT/2000/XP (18.8M) My operativsystem: MS windows 2000 professional and I us IIS5 Do you have any other solution? All ideas to solve my oscommerce error are very welcome. Thanks in advance fantomen Are you absolutely sure that you have the catalog set up a virtual dir in the IIS manager??? the icon beside "catalog" should not look a folder and should look similar to this: http://www.dream-scape.net/images/tmp/screen_iis.gif Also I remember in configure.php having to change define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); to define('DIR_FS_DOCUMENT_ROOT', 'C:/Inetpub/wwwroot'); The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke
fantomen Posted December 10, 2002 Author Posted December 10, 2002 Wait a minute, fantomen ......that file is "oscommerce.sql" in the install folder, wich is needed to install you database (BTW that folder should be removed after installation). If you went throu the installation process (pointing you browser to catalog/install/index.php) your DB should be in place and populated. Question: Are you working on local or remote? An hosting service that provides PHP and MySQL db, usually provides also phpMyAdmin (http://phpwizard.net/projects/phpMyAdmin/) a tool commonly used to manage a MySQL database (don't know about MyAdmin 1.2 in your link, shoul do the same). With phpMyAdmin you can then verify your db content. bye Hello again alverman, Thank you for taking time to try to help me. I am trying to set up this local on my PC computer. I went to this site you recommended and I am now on this page: http://www.phpmyadmin.net/ and have all this to choose from: Welcome on the only official phpMyAdmin project webpage. Bugfixes, patches, translations, suggestions and comments are welcome! Please use the mailing lists and the forums! (3350 downloads today) PHP 4.2.3 warning: Some users of phpMyAdmin are affected by this PHP 4.2.3 bug (but please do not post help requests for phpMyAdmin on the PHP bug tracker). News:phpMyAdmin 2.3.3pl1 has been released! (2002-12-04) This version contains the messages that were omitted in some language files. - Download phpMyAdmin-2.3.3pl1-php.tar.bz2 - Download phpMyAdmin-2.3.3pl1-php.tar.gz - Download phpMyAdmin-2.3.3pl1-php.zip (.php files) - Download phpMyAdmin-2.3.3pl1-php3.tar.bz2 - Download phpMyAdmin-2.3.3pl1-php3.tar.gz - Download phpMyAdmin-2.3.3pl1-php3.zip (.php3 files) The previous version: phpMyAdmin 2.3.2 released 2002-10-08 - Download phpMyAdmin-2.3.2-php.tar.bz2 (366) - Download phpMyAdmin-2.3.2-php.tar.gz (1137) - Download phpMyAdmin-2.3.2-php.zip (2325) (.php files) - Download phpMyAdmin-2.3.2-php3.tar.bz2 (66) - Download phpMyAdmin-2.3.2-php3.tar.gz (148) - Download phpMyAdmin-2.3.2-php3.zip (422) (.php3 files) CVS version 2.3.4-dev (for beta testers: may be broken; updated every few day): - December 8 2002, 07:48:53 PM (GMT) snapshot (598) Older phpMyAdmin versions can also be downloaded at the - File Download page on Sourceforge XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX WHICH ONE SHALL I CHOOSE TO DOWNLOAD FOR MY Operativsystem? I am running MS Windows 2000 professional with IIS 5. Best Regards fantomen
Qbaze Posted December 10, 2002 Posted December 10, 2002 I resently learned that to set default language to for example english, add ?language=en behind your url. http://server/catalog/default.php?language=en /Andreas ps. I got sort of the same error as you once, but that was when I had edit the language files and forgot a ' ' somwhere in the file.... I plan to write something smart down here.....
fantomen Posted December 10, 2002 Author Posted December 10, 2002 I resently learned that to set default language to for example english, add ?language=en behind your url. </tr> </table></td> </form></tr> <?php } else { ?> <tr> <td class="main"><b><?php echo TEXT_FILE_DOES_NOT_EXIST; ?></b></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td> </tr> <?php } } else { $filename = $HTTP_GET_VARS['lngdir'] . '.php'; ?> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="smallText"><a href="<?php echo tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td> <?php $dir = dir(DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']); $left = false; if ($dir) { $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); while ($file = $dir->read()) { if (substr($file, strrpos($file, '.')) == $file_extension) { echo ' <td class="smallText"><a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $HTTP_GET_VARS['lngdir'] . '&filename=' . $file) . '">' . $file . '</a></td>' . "n"; if (!$left) { echo ' </tr>' . "n" . ' <tr>' . "n"; } $left = !$left; } } $dir->close(); } ?> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_FILE_MANAGER, 'current_path=' . DIR_FS_CATALOG_LANGUAGES . $HTTP_GET_VARS['lngdir']) . '">' . tep_image_button('button_file_manager.gif', IMAGE_FILE_MANAGER) . '</a>'; ?></td> </tr> <?php } ?> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> And this is my C:Inetpubwwwrootcatalogadminlanguages.php looks like this: <?php /* $Id: languages.php,v 1.32 2002/03/17 17:37:51 harley_vb Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com''>http://www.oscommerce.com'>http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); switch ($HTTP_GET_VARS['action']) { case 'insert': $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $code = tep_db_prepare_input($HTTP_POST_VARS['code']); $image = tep_db_prepare_input($HTTP_POST_VARS['image']); $directory = tep_db_prepare_input($HTTP_POST_VARS['directory']); $sort_order = tep_db_prepare_input($HTTP_POST_VARS['sort_order']); tep_db_query("insert into " . TABLE_LANGUAGES . " (name, code, image, directory, sort_order) values ('" . tep_db_input($name) . "', '" . tep_db_input($code) . "', '" . tep_db_input($image) . "', '" . tep_db_input($directory) . "', '" . tep_db_input($sort_order) . "')"); $insert_id = tep_db_insert_id(); // create additional categories_description records $categories_query = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id where cd.language_id = '" . $languages_id . "'"); while ($categories = tep_db_fetch_array($categories_query)) { tep_db_query("insert into " . TABLE_CATEGORIES_DESCRIPTION . " (categories_id, language_id, categories_name) values ('" . $categories['categories_id'] . "', '" . $insert_id . "', '" . tep_db_input($categories['categories_name']) . "')"); } // create additional products_description records $products_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, pd.products_url from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where pd.language_id = '" . $languages_id . "'"); while ($products = tep_db_fetch_array($products_query)) { tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_url) values ('" . $products['products_id'] . "', '" . $insert_id . "', '" . tep_db_input($products['products_name']) . "', '" . tep_db_input($products['products_description']) . "', '" . tep_db_input($products['products_url']) . "')"); } // create additional products_options records $products_options_query = tep_db_query("select products_options_id, products_options_name from " . TABLE_PRODUCTS_OPTIONS . " where language_id = '" . $languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { tep_db_query("insert into " . TABLE_PRODUCTS_OPTIONS . " (products_options_id, language_id, products_options_name) values ('" . $products_options['products_options_id'] . "', '" . $insert_id . "', '" . tep_db_input($products_options['products_options_name']) . "')"); } // create additional products_options_values records $products_options_values_query = tep_db_query("select products_options_values_id, products_options_values_name from " . TABLE_PRODUCTS_OPTIONS_VALUES . " where language_id = '" . $languages_id . "'"); while ($products_options_values = tep_db_fetch_array($products_options_values_query)) { tep_db_query("insert into " . TABLE_PRODUCTS_OPTIONS_VALUES . " (products_options_values_id, language_id, products_options_values_name) values ('" . $products_options_values['products_options_values_id'] . "', '" . $insert_id . "', '" . tep_db_input($products_options_values['products_options_values_name']) . "')"); } // create additional manufacturers_info records $manufacturers_query = tep_db_query("select m.manufacturers_id, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on m.manufacturers_id = mi.manufacturers_id where mi.languages_id = '" . $languages_id . "'"); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { tep_db_query("insert into " . TABLE_MANUFACTURERS_INFO . " (manufacturers_id, languages_id, manufacturers_url) values ('" . $manufacturers['manufacturers_id'] . "', '" . $insert_id . "', '" . tep_db_input($manufacturers['manufacturers_url']) . "')"); } // create additional orders_status records $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { tep_db_query("insert into " . TABLE_ORDERS_STATUS . " (orders_status_id, language_id, orders_status_name) values ('" . $orders_status['orders_status_id'] . "', '" . $insert_id . "', '" . tep_db_input($orders_status['orders_status_name']) . "')"); } if ($HTTP_POST_VARS['default'] == 'on') { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($code) . "' where configuration_key = 'DEFAULT_LANGUAGE'"); } tep_redirect(tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $insert_id)); break; case 'save': $lID = tep_db_prepare_input($HTTP_GET_VARS['lID']); $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $code = tep_db_prepare_input($HTTP_POST_VARS['code']); $image = tep_db_prepare_input($HTTP_POST_VARS['image']); $directory = tep_db_prepare_input($HTTP_POST_VARS['directory']); $sort_order = tep_db_prepare_input($HTTP_POST_VARS['sort_order']); tep_db_query("update " . TABLE_LANGUAGES . " set name = '" . tep_db_input($name) . "', code = '" . tep_db_input($code) . "', image = '" . tep_db_input($image) . "', directory = '" . tep_db_input($directory) . "', sort_order = '" . tep_db_input($sort_order) . "' where languages_id = '" . tep_db_input($lID) . "'"); if ($HTTP_POST_VARS['default'] == 'on') { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($code) . "' where configuration_key = 'DEFAULT_LANGUAGE'"); } tep_redirect(tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $HTTP_GET_VARS['lID'])); break; case 'deleteconfirm': $lID = tep_db_prepare_input($HTTP_GET_VARS['lID']); $lng_query = tep_db_query("select languages_id from " . TABLE_LANGUAGES . " where code = '" . DEFAULT_CURRENCY . "'"); $lng = tep_db_fetch_array($lng_query); if ($lng['languages_id'] == $lID) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '' where configuration_key = 'DEFAULT_CURRENCY'"); } tep_db_query("delete from " . TABLE_CATEGORIES_DESCRIPTION . " where language_id = '" . tep_db_input($lID) . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_DESCRIPTION . " where language_id = '" . tep_db_input($lID) . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_OPTIONS . " where language_id = '" . tep_db_input($lID) . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_OPTIONS_VALUES . " where language_id = '" . tep_db_input($lID) . "'"); tep_db_query("delete from " . TABLE_MANUFACTURERS_INFO . " where languages_id = '" . tep_db_input($lID) . "'"); tep_db_query("delete from " . TABLE_ORDERS_STATUS . " where language_id = '" . tep_db_input($lID) . "'"); tep_db_query("delete from " . TABLE_LANGUAGES . " where languages_id = '" . tep_db_input($lID) . "'"); tep_redirect(tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'])); break; case 'delete': $lID = tep_db_prepare_input($HTTP_GET_VARS['lID']); $lng_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where languages_id = '" . tep_db_input($lID) . "'"); $lng = tep_db_fetch_array($lng_query); $remove_language = true; if ($lng['code'] == DEFAULT_LANGUAGE) { $remove_language = false; $messageStack->add(ERROR_REMOVE_DEFAULT_LANGUAGE, 'error'); } break; } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_LANGUAGE_NAME; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_LANGUAGE_CODE; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td> </tr> <?php $languages_query_raw = "select languages_id, name, code, image, directory, sort_order from " . TABLE_LANGUAGES . " order by sort_order"; $languages_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $languages_query_raw, $languages_query_numrows); $languages_query = tep_db_query($languages_query_raw); while ($languages = tep_db_fetch_array($languages_query)) { if (((!$HTTP_GET_VARS['lID']) || (@$HTTP_GET_VARS['lID'] == $languages['languages_id'])) && (!$lInfo) && (substr($HTTP_GET_VARS['action'], 0, 3) != 'new')) { $lInfo = new objectInfo($languages); } if ( (is_object($lInfo)) && ($languages['languages_id'] == $lInfo->languages_id) ) { echo ' <tr class="dataTableRowSelected" onmouseover="this.style.cursor='hand'" onclick="document.location.href='' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=edit') . ''">' . "n"; } else { echo ' <tr class="dataTableRow" onmouseover="this.className='dataTableRowOver';this.style.cursor='hand'" onmouseout="this.className='dataTableRow'" onclick="document.location.href='' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $languages['languages_id']) . ''">' . "n"; } if (DEFAULT_LANGUAGE == $languages['code']) { echo ' <td class="dataTableContent"><b>' . $languages['name'] . ' (' . TEXT_DEFAULT . ')</b></td>' . "n"; } else { echo ' <td class="dataTableContent">' . $languages['name'] . '</td>' . "n"; } ?> <td class="dataTableContent"><?php echo $languages['code']; ?></td> <td class="dataTableContent" align="right"><?php if ( (is_object($lInfo)) && ($languages['languages_id'] == $lInfo->languages_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $languages['languages_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } ?> <tr> <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText" valign="top"><?php echo $languages_split->display_count($languages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_LANGUAGES); ?></td> <td class="smallText" align="right"><?php echo $languages_split->display_links($languages_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?></td> </tr> <?php if (!$HTTP_GET_VARS['action']) { ?> <tr> <td align="right" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=new') . '">' . tep_image_button('button_new_language.gif', IMAGE_NEW_LANGUAGE) . '</a>'; ?></td> </tr> <?php } ?> </table></td> </tr> </table></td> <?php $direction_options = array( array('id' => '', 'text' => TEXT_INFO_LANGUAGE_DIRECTION_DEFAULT), array('id' => 'ltr', 'text' => TEXT_INFO_LANGUAGE_DIRECTION_LEFT_TO_RIGHT), array('id' => 'rtl', 'text' => TEXT_INFO_LANGUAGE_DIRECTION_RIGHT_TO_LEFT)); $heading = array(); $contents = array(); switch ($HTTP_GET_VARS['action']) { case 'new': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_LANGUAGE . '</b>'); $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'action=insert')); $contents[] = array('text' => TEXT_INFO_INSERT_INTRO); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . tep_draw_input_field('name')); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . tep_draw_input_field('code')); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . tep_draw_input_field('image', 'icon.gif')); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . tep_draw_input_field('directory')); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order')); $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $HTTP_GET_VARS['lID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</b>'); $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=save')); $contents[] = array('text' => TEXT_INFO_EDIT_INTRO); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . tep_draw_input_field('name', $lInfo->name)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . tep_draw_input_field('code', $lInfo->code)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . tep_draw_input_field('image', $lInfo->image)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . tep_draw_input_field('directory', $lInfo->directory)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', $lInfo->sort_order)); if (DEFAULT_LANGUAGE != $lInfo->code) $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</b>'); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br><b>' . $lInfo->name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . (($remove_language) ? '<a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($lInfo)) { $heading[] = array('text' => '<b>' . $lInfo->name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $lInfo->directory) . '">' . tep_image_button('button_define.gif', IMAGE_DEFINE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . ' ' . $lInfo->name); $contents[] = array('text' => TEXT_INFO_LANGUAGE_CODE . ' ' . $lInfo->code); $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $lInfo->directory . '/images/' . $lInfo->image, $lInfo->name)); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . DIR_WS_CATALOG_LANGUAGES . '<b>' . $lInfo->directory . '</b>'); $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . ' ' . $lInfo->sort_order); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "n"; } ?> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> PLEASE HELP ME AND TELL ME WHAT TO CHANGE SO I CAN GET THIS OSCOMMERCE 2.2 SYSTEM UP AND RUNNING LOCALLY ON MY HOMECOMPUTER. and I am very happy for all answers I can get Thanks in advance. Fantomen
dreamscape Posted December 11, 2002 Posted December 11, 2002 I still suspect that your catalog dir is not set up a virtual directory in IIS manager... did you look at this image and compare it to your IIS manager??? http://www.dream-scape.net/images/tmp/screen_iis.gif the catalog folder should be listed near the top and have a different icon than a regular folder: The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke
fantomen Posted December 11, 2002 Author Posted December 11, 2002 I still suspect that your catalog dir is not set up a virtual directory in IIS manager... did you look at this image and compare it to your IIS manager??? http://www.dream-scape.net/images/tmp/screen_iis.gif the catalog folder should be listed near the top and have a different icon than a regular folder: Dear dreamscape, I have done that and it looks okej but it does not work, I still get the same fatal error message in my browser. Best Regards fantomen
Recommended Posts
Archived
This topic is now archived and is closed to further replies.