Guest Posted May 25, 2003 Share Posted May 25, 2003 hi there, i have installed the Info Box Display v1.0 on my site. everything whent ok untill the first run. i keep getting on the left side ?f my shop " Parse error: parse error, unexpected $ in /home/www/htdocs/pc-4-you.de/shop/includes/column_left.php on line 33 " and on the right side of my shop i keep getting " Parse error: parse error, unexpected T_ELSE in /home/www/htdocs/pc-4-you.de/shop/includes/column_right.php on line 31 " since the installation of thies constribution is not very long i have tried to install it again.. now i have tried it 3 times. could someone have a look please @ http://www.pc-4-you.de/shop/default.php and give me a hint of what is wrong. the Version i have installed is osCommerce 2.2-MS1. i thank everybody for future help. kindest regards Quote Link to comment Share on other sites More sharing options...
Guest Posted May 28, 2003 Share Posted May 28, 2003 look in the referenced files on the mentioned lines for unnecessary, for lack of a better word, punctuatuion marks such as an extra comma, or semi-colon, etc and for an unnecessary else Quote Link to comment Share on other sites More sharing options...
Guest Posted May 29, 2003 Share Posted May 29, 2003 got rid of them error mesages :!: column_left.php <?php /* $Id: column_left.php,v 1.14 2003/02/10 22:30:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ if (BOXES_MANUFACTURERS == 'Yes') { if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'catagories.php'); } } if (BOXES_MANUFACTURERS == 'Yes') { if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } } if (BOXES_WHATS_NEW == 'Yes') { require(DIR_WS_BOXES . 'whats_new.php'); } if (BOXES_SEARCH == 'Yes') { require(DIR_WS_BOXES . 'search.php'); } if (BOXES_INFORMATION == 'Yes') { require(DIR_WS_BOXES . 'information.php'); } ?> and column_right.php <?php /* $Id: column_right.php,v 1.16 2003/02/10 22:30:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ if (BOXES_SHOPPING_CART == 'Yes') { require(DIR_WS_BOXES . 'shopping_cart.php'); } if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } if (BOXES_REVIEWS == 'Yes') { require(DIR_WS_BOXES . 'reviews.php'); } if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> column_left.php works fine!!! the only thing i cant get to work is to switch off & on the BOXES_LANGUAGES, BOXES_CURRENCIES, BOXES_PRODUCT_NOTIFICATIONS these i have to comment out manually like /*include(DIR_WS_BOXES . 'currencies.php');*/ in the install manual it said column_right.php, but it's a bit trickier, since there are already a bunch of checks on whether to display an info box or not. Just be careful, making sure you only replace the single "require(...)" line, and not anything beyond it (unless it's a USE_CACHE thing again) all the "require(...)" lines have been replaced, and there are no USE_CACHE thing`s Regards TBegerow thanx for future help !!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.