Guest Posted August 28, 2006 Share Posted August 28, 2006 I get this message when I click a product: Warning: main(includes/html_title.php): failed to open stream: No such file or directory in /home/moret2/public_html/catalog/product_info.php on line 24 Warning: main(includes/html_title.php): failed to open stream: No such file or directory in /home/moret2/public_html/catalog/product_info.php on line 24 Fatal error: main(): Failed opening required 'includes/html_title.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moret2/public_html/catalog/product_info.php on line 24 Could someone help me out and tell me what is going wrong with this? Link to comment Share on other sites More sharing options...
mtechama Posted August 28, 2006 Share Posted August 28, 2006 I get this message when I click a product: Warning: main(includes/html_title.php): failed to open stream: No such file or directory in /home/moret2/public_html/catalog/product_info.php on line 24 Warning: main(includes/html_title.php): failed to open stream: No such file or directory in /home/moret2/public_html/catalog/product_info.php on line 24 Fatal error: main(): Failed opening required 'includes/html_title.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/moret2/public_html/catalog/product_info.php on line 24 Could someone help me out and tell me what is going wrong with this? could you post that line here please? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2006 Share Posted August 28, 2006 I have nothing except wordpad and notepad to look at this so here is the beginning of the PHP file so you?ll probably find it better then me <?php /* $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); ?> <!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; ?>"> <?php require(DIR_WS_INCLUDES . 'html_title.php'); ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="3" style="height:100%;"> <tr> <td valign="top" style="background-image:url(/store/images/column-left-bot-bg.gif);background-repeat:repeat-y;padding:0px;" width=155> <table border="0" cellspacing="0" cellpadding="0" width=155> <tr><td> <?php echo tep_image(DIR_WS_IMAGES . 'column-left-top.gif', ''); ?> </td></tr> <tr style="background-image:url(/store/images/column-left-bg.gif);background-repeat:repeat-y;"><td align=left> <table border="0" cellspacing="0" cellpadding="2" width=90%> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table> </td></tr> Link to comment Share on other sites More sharing options...
mtechama Posted August 28, 2006 Share Posted August 28, 2006 on line 24 change this: <?php require(DIR_WS_INCLUDES . 'html_title.php'); ?> to this: <title><?php echo TITLE; ?></title> Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2006 Share Posted August 28, 2006 ok I changed it but now I get this error message 1054 - Unknown column 'p.products_image_med' in 'field list' select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from products p, products_description pd where p.products_status = '1' and p.products_id = '193' and pd.products_id = p.products_id and pd.language_id = '1' Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2006 Share Posted August 28, 2006 by the way is there a way to re-install oscommerce without loosing all the products etc? I think there is a problem with my product_info.php file. I forgot to make a backup of the whole oscommerce folder but I did make one for the database. I don't feel like entering all 200 products and descriptions again. Link to comment Share on other sites More sharing options...
mtechama Posted August 28, 2006 Share Posted August 28, 2006 by the way is there a way to re-install oscommerce without loosing all the products etc? I think there is a problem with my product_info.php file. I forgot to make a backup of the whole oscommerce folder but I did make one for the database. I don't feel like entering all 200 products and descriptions again. yes you need to do a backup of your Database (First thing) if you do back it up to your HHD and then uninstall the store from there server and re-upload a fresh copy of the store to the server Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 28, 2006 Share Posted August 28, 2006 ok so I flushed oscommerce and re-installed it and reloaded the database. Now all that seem to be missing is the pictures. Is there a place where I can copy them so that everything will be back to normal? Link to comment Share on other sites More sharing options...
mtechama Posted August 28, 2006 Share Posted August 28, 2006 ok so I flushed oscommerce and re-installed it and reloaded the database. Now all that seem to be missing is the pictures. Is there a place where I can copy them so that everything will be back to normal? ok you need to re-upload the images to the server Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 29, 2006 Share Posted August 29, 2006 where are the images stored in oscommerce? Link to comment Share on other sites More sharing options...
mtechama Posted August 29, 2006 Share Posted August 29, 2006 where are the images stored in oscommerce? your images should be store at: (catalog)/images Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.