This is a discussion on Featured Products installation error - HELP please within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi. I am trying to install the Featured Products contribution (Featured_Products_v1.5.8) http://www.oscommerce.com/community/...tured+products ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi. I am trying to install the Featured Products contribution (Featured_Products_v1.5.8) http://www.oscommerce.com/community/...tured+products I am doing this on my XAMPP local test server therefore this error is not remotely visible so I have attached a screen grab to this message. Conversion to BTS is my problem. I can get it working on the front page and the Admin section is working correctly however if you click on the front page Featured Product title link it opens up with an error. If you click on the featured product its details do open up correctly. It is only the Featured Product title link that is failing to work correctly. I have used the products_new.php as my guide to try to stick with BTS format however this correctly displays the top and left column but doesn't display the right column or the footer. There is also an error message showing in the main content area. Warning: main(templates/fallback/content/CONTENT_FEATURED_PRODUCTS.tpl.php) [function.main]: failed to open stream: No such file or directory in D:\xampp\xampp\htdocs\max23\templates\snstoys\main _page.tpl.php on line 185 Fatal error: main() [function.require]: Failed opening required 'templates/fallback/content/CONTENT_FEATURED_PRODUCTS.tpl.php' (include_path='.;D:\xampp\xampp\php\pear\') in D:\xampp\xampp\htdocs\max23\templates\snstoys\main _page.tpl.php on line 185 This refers to this line (185) in my template: require (bts_select ('content')); // BTSv1.5 ------------------------------ This is my root featured_products.php file <?php require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FEATURED_PRODUCTS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FEATURED_PRODUCTS)); $content = CONTENT_FEATURED_PRODUCTS; include (bts_select('main', $content_template)); // BTSv1.5 require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> ------------------------------- And this is my content template file featured_products.tpl.php <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><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_image(DIR_WS_IMAGES . 'table_background_products_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php $featured_products_array = array(); $featured_products_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id left join " . TABLE_FEATURED . " f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by p.products_date_added DESC, pd.products_name"; $featured_products_split = new splitPageResults($featured_products_query_raw, MAX_DISPLAY_FEATURED_PRODUCTS); if (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRO DUCTS); ?> </td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <tr> <td> <!-- Featured Products Main Page Box --> <table bgcolor="ffffff" border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if ($featured_products_split->number_of_rows > 0) { // BOF Separate Price Per Customer // global variable (session): $sppc_customers_group_id -> local variable $customer_group_id if(!tep_session_is_registered('sppc_customer_group _id')) { $customer_group_id = '0'; } else { $customer_group_id = $sppc_customer_group_id; } $featured_products_query = tep_db_query($featured_products_split->sql_query); $no_of_featured_products = tep_db_num_rows($featured_products_query); while ($featured_products = tep_db_fetch_array($featured_products_query)) { $featured_products[] = $_featured_products; $list_of_prdct_ids[] = $_featured_products['products_id']; } $select_list_of_prdct_ids = "products_id = '".$list_of_prdct_ids[0]."' "; if ($no_of_featured_products > 1) { for ($n = 1 ; $n < count($list_of_prdct_ids) ; $n++) { $select_list_of_prdct_ids .= "or products_id = '".$list_of_prdct_ids[$n]."' "; } } // get all customers_group_prices for products with the particular customer_group_id // however not necessary for customer_group_id if ($customer_group_id != '0') { $pg_query = tep_db_query("select pg.products_id, customers_group_price as price from " . TABLE_PRODUCTS_GROUPS . " pg where (".$select_list_of_prdct_ids.") and pg.customers_group_id = '".$customer_group_id."'"); while ($pg_array = tep_db_fetch_array($pg_query)) { $new_prices[] = array ('products_id' => $pg_array['products_id'], 'products_price' => $pg_array['price'], 'specials_new_products_price' => ''); } for ($x = 0; $x < $no_of_products_new; $x++) { // replace products prices with those from customers_group table // originally they would be obtained with an extra query for every new product: // if ($new_price = tep_get_products_special_price($products_new['products_id'])) { if(!empty($new_prices)) { for ($i = 0; $i < count($new_prices); $i++) { if( $products_new[$x]['products_id'] == $new_prices[$i]['products_id'] ) { $products_new[$x]['products_price'] = $new_prices[$i]['products_price']; } } } // end if(!empty($new_prices) } // end for ($x = 0; $x < $no_of_products_new; $x++) } // end if ($customer_group_id != '0') // an extra query is needed for all the specials $specials_query = tep_db_query("select s.products_id, specials_new_products_price from " . TABLE_SPECIALS . " s where (".$select_list_of_prdct_ids.") and status = '1' and s.customers_group_id = '" .$customer_group_id. "'"); while ($specials_array = tep_db_fetch_array($specials_query)) { $new_prices[] = array ('products_id' => $specials_array['products_id'], 'products_price' => '', 'specials_new_products_price' => $specials_array['specials_new_products_price']); } // replace specials_new_products_price with those those for the customers_group_id for ($x = 0; $x < $no_of_products_new; $x++) { if(!empty($new_prices)) { for ($i = 0; $i < count($new_prices); $i++) { if( $products_new[$x]['products_id'] == $new_prices[$i]['products_id'] ) { $products_new[$x]['specials_new_products_price'] = $new_prices[$i]['specials_new_products_price']; } } } // end if(!empty($new_prices) // } // end for ($x = 0; $x < $no_of_products_new; $x++) if (tep_not_null($products_new[$x]['specials_new_products_price'])) { $products_price = '<s>' . $currencies->display_price($products_new[$x]['products_price'], tep_get_tax_rate($products_new[$x]['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($products_new[$x]['specials_new_products_price'], tep_get_tax_rate($products_new[$x]['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($products_new[$x]['products_price'], tep_get_tax_rate($products_new[$x]['products_tax_class_id'])); } ?> <tr> <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '"><b><u>' . $featured_products['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($featured_products['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $featured_products['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td> <td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_FEATURED_PRODUCTS, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td> </tr> <tr> <td colspüan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php // EOF Separate Pricing Per Customer } // end for ($x = 0; $x < $products_new_split->number_of_rows; $x++) } else { ?> <tr> <td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> </table></td> </tr> <?php if (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRO DUCTS); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table></td> </tr> <?php } ?> </table> I have also copied this file into the fallback content folder. Where is this going wrong ??? I am now at a loss as to what I should try next? Any advise gratefully received please. ![]() |
|
#2
| ||||
| ||||
| You have to convert it to BTS format. Look at any other page in the /catalog dir, like informatiion.php and you will see how it is supposed to be structured . Remove the content from the featured_products.php, add the BTS code. Then put the content in a file called featured_products.tpl.php in your template's content directory (most likely, fallback/content). There are steps to follow here: http://oscdox.com/index.php?op=modlo...sDocumentation
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#3
| |||
| |||
| Michael, Thanks for the prompt answer however I am still getting the same problem even though I have followed the istructions line by line several times over. This is the original code. ----------------------------------------------------------------------- <?php /* $Id: featured_products.php,v 1.5.8 2003/06/09 22:35:33 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FEATURED_PRODUCTS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FEATURED_PRODUCTS)); ?> <!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> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </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="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- 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="0"> <tr> <td><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_image(DIR_WS_IMAGES . 'table_background_products_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php ///// To random featured products // list($usec, $sec) = explode(' ', microtime()); // srand( (float) $sec + ((float) $usec * 100000) ); // $mtm= rand(); ////// $featured_products_array = array(); $featured_products_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id left join " . TABLE_FEATURED . " f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by p.products_date_added DESC, pd.products_name"; // to random// $featured_products_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id left join " . TABLE_FEATURED . " f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by rand($mtm)"; $featured_products_split = new splitPageResults($featured_products_query_raw, MAX_DISPLAY_FEATURED_PRODUCTS); if (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRO DUCTS); ?> </td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <tr> <td> <!-- Featured Products Main Page Box --> <table bgcolor="ffffff" border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if ($featured_products_split->number_of_rows > 0) { $featured_products_query = tep_db_query($featured_products_split->sql_query); while ($featured_products = tep_db_fetch_array($featured_products_query)) { if ($new_price = tep_get_products_special_price($featured_products['products_id'])) { $products_price = '<s>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])); } ?> <tr> <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '"><b><u>' . $featured_products['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($featured_products['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $featured_products['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td> <td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_FEATURED_PRODUCTS, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td> </tr> <tr> <td colspüan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } } else { ?> <tr> <td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> </table> </td> </tr> <?php if (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRO DUCTS); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> </td> </tr> <?php } ?> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </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'); ?> -------------------------------------------------------------- Having followed the instructions from http://oscdox.com/index.php?op=modlo...sDocumentation I am left with the following: <!-- body_text //--> to <!-- body_text_eof //--> text removed to new file 'featured_products.tpl.php' in fallback contents folder. The new featured_products.php file looks like below: --------------------------------------------------------------- <?php /* $Id: featured_products.php,v 1.5.8 2003/06/09 22:35:33 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FEATURED_PRODUCTS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FEATURED_PRODUCTS)); $content = CONTENT_FEATURED_PRODUCTS; include (bts_select('main', $content_template)); // BTSv1.5 require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> ------------------------------------------------------------------ I am still getting these errors: Warning: main(templates/fallback/content/CONTENT_FEATURED_PRODUCTS.tpl.php) [function.main]: failed to open stream: No such file or directory in D:\xampp\xampp\htdocs\max23\templates\snstoys\main _page.tpl.php on line 185 Fatal error: main() [function.require]: Failed opening required 'templates/fallback/content/CONTENT_FEATURED_PRODUCTS.tpl.php' (include_path='.;D:\xampp\xampp\php\pear\') in D:\xampp\xampp\htdocs\max23\templates\snstoys\main _page.tpl.php on line 185 ... So where have I gone wrong ??? Confused. |
|
#4
| |||
| |||
| OK. I have figured it out. Not sure if it's the correct way to do it but it seems to be working. I changed $content = CONTENT_FEATURED_PRODUCTS; To read just... $content = FEATURED_PRODUCTS; in the featured_products.php file. Thanks. |
|
#5
| |||
| |||
| This doesn't make sense. On my test home server everything is fine. I have just uploaded my site to an external server and the Featured Products section is not working - no error message - nothing. Yet the exact same site is working correctly locally !!! The entire right column refuses to show and no featured products are being displayed. In fact the centre column is completely blank. http://max23.sensorytoys.co.uk/featured_products.php Any reason why ??? I'm running Apache/2.2.3 (Win32) PHP/4.4.4 |
|
#6
| |||
| |||
| Still stuck - any body come across this problem before - someone please respond. can somebody advise something useful to try. I have attepted this three times now. each time my local copy works and each time my uploaded copy fails. I have been right through the code very carefully and cannot see why this is happening. http://max23.sensorytoys.co.uk/ Just click on featured products in information box to see what I mean. |
|
#7
| ||||
| ||||
| Check your php error logs as the output just stops in the html source code...
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#8
| |||
| |||
| The error log reports the following: [Mon Oct 30 20:09:24 2006] [error] [client 84.64.107.225] PHP Warning: main(templates/fallback/content/FEATURED_PRODUCTS.tpl.php) [<a>function.main</a>]: failed to open stream: No such file or directory in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/ [Mon Oct 30 20:09:24 2006] [error] [client 84.64.107.225] PHP Warning: main(templates/fallback/content/FEATURED_PRODUCTS.tpl.php) [<a>function.main</a>]: failed to open stream: No such file or directory in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/ [Mon Oct 30 20:09:24 2006] [error] [client 84.64.107.225] PHP Warning: main(templates/fallback/content/FEATURED_PRODUCTS.tpl.php) [<a>function.main</a>]: failed to open stream: No such file or directory in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/ [Mon Oct 30 20:09:24 2006] [error] [client 84.64.107.225] PHP Fatal error: main() [<a>function.require</a>]: Failed opening required 'templates/fallback/content/FEATURED_PRODUCTS.tpl.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/ [Mon Oct 30 20:09:32 2006] [error] [client 84.64.107.225] PHP Warning: main(templates/fallback/content/FEATURED_PRODUCTS.tpl.php) [<a>function.main</a>]: failed to open stream: No such file or directory in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/featu...3a22a1018ed48b [Mon Oct 30 20:09:32 2006] [error] [client 84.64.107.225] PHP Warning: main(templates/fallback/content/FEATURED_PRODUCTS.tpl.php) [<a>function.main</a>]: failed to open stream: No such file or directory in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/featu...3a22a1018ed48b [Mon Oct 30 20:09:32 2006] [error] [client 84.64.107.225] PHP Warning: main(templates/fallback/content/FEATURED_PRODUCTS.tpl.php) [<a>function.main</a>]: failed to open stream: No such file or directory in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/featu...3a22a1018ed48b [Mon Oct 30 20:09:32 2006] [error] [client 84.64.107.225] PHP Fatal error: main() [<a>function.require</a>]: Failed opening required 'templates/fallback/content/FEATURED_PRODUCTS.tpl.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/sensorytoys.co.uk/subdomains/max23/httpdocs/templates/snstoys/main_page.tpl.php on line 185, referer: http://max23.sensorytoys.co.uk/featu...3a22a1018ed48b Line 185 refers to: require (bts_select ('content')); // BTSv1.5 Is there something obvious in there I'm not seeing ? |
|
#9
| ||||
| ||||
| You need to define FEATURED_PRODUCTS in the content section of /includes/filenames.php so it knows what the file name is...
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#10
| ||||
| ||||
| I'm super interested in installing this mod, so please keep us posted on how it works out for you! Is it kinda working now? Do you have a link to share by any chance? Thanks! Dubious |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anyone have FEATURED PRODUCTS installed? | FlipC | osCMax v2 Customization/Mods | 0 | 09-27-2006 07:41 PM |
| Featured Products HELP Please. | lil-raskals | osCommerce 2.2 Modification Help | 0 | 10-07-2004 05:51 AM |
| Featured Products | Stu | osCMax v1.7 Discussion | 3 | 09-13-2004 06:42 PM |
| cieto featured products in MS2-MAX1.5 | Anonymous | osCMax v1.7 Discussion | 1 | 04-02-2004 10:29 AM |
| Featured Products contribution | janus | osCommerce 2.2 Modification Help | 0 | 10-08-2003 09:36 AM |