OSCRookie Posted November 27, 2004 Posted November 27, 2004 I hope someone can look at this for me. It's been a long day and my eyes and brain are tired. I know this is bad but what am i not seeing here? :blush: This code: <?php /* $Id: column_left.php,v 1.15 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 */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } require(DIR_WS_BOXES . 'information.php'); ?> Throws this error: Parse error: parse error in /home/httpd/vhosts/xxxxxxxxxxxxxxx.com/httpdocs/catalog/includes/column_right.php on line 31 I apologize for the inconvenience :'(
♥Vger Posted November 27, 2004 Posted November 27, 2004 Well, as the error is on line 31, why did you just post the first 20? Guess this is why It's been a long day and my eyes and brain are tired Best thing to do with this is to just download and unzip a fresh copy of osCommerce, and then upload an unchanged column_right.php file. Vger p.s. Take backups BEFORE changing files
OSCRookie Posted November 27, 2004 Author Posted November 27, 2004 Well, as the error is on line 31, why did you just post the first 20? Guess this is why Best thing to do with this is to just download and unzip a fresh copy of osCommerce, and then upload an unchanged column_right.php file. Vger p.s. Take backups BEFORE changing files <{POST_SNAPBACK}> I know I should have created a backup - I usually do and that's the first thing I thought when I saw the error :( Can anyone spot the problem in there? It'd help me out because I'm missing it. :(
Guest Posted November 27, 2004 Posted November 27, 2004 I hope someone can look at this for me. It's been a long day and my eyes and brain are tired. I know this is bad but what am i not seeing here? :blush: This code: <?php /* $Id: column_left.php,v 1.15 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 */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } require(DIR_WS_BOXES . 'information.php'); ?> Throws this error: Parse error: parse error in /home/httpd/vhosts/xxxxxxxxxxxxxxx.com/httpdocs/catalog/includes/column_right.php on line 31 I apologize for the inconvenience :'( <{POST_SNAPBACK}> Seems to me that you are looking for a problem in column_right in the column_left file. The error message refers to column_right but the code you posted says it is column_left. Am I missing something? Wouldn't be the first time today.
OSCRookie Posted November 27, 2004 Author Posted November 27, 2004 Seems to me that you are looking for a problem in column_right in the column_left file. The error message refers to column_right but the code you posted says it is column_left. Am I missing something? Wouldn't be the first time today. <{POST_SNAPBACK}> Hehe nope, not missing anything - i swapped sides :)
OSCRookie Posted November 27, 2004 Author Posted November 27, 2004 Hehe nope, not missing anything - i swapped sides :) <{POST_SNAPBACK}> OMG - talk about your long day! It was the wrong file! problem still exists tho! :rolleyes: <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ 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 = '" . (int)$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'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'specials.php'); require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); ?> I'l have to look this one over now LOLOL! How dumb!
OSCRookie Posted November 27, 2004 Author Posted November 27, 2004 Guys I'm stumped - Does anyone have any insight? I'm really confused here :blink: Thanks a bunch!
OSCRookie Posted November 27, 2004 Author Posted November 27, 2004 Does anyone by chance have a copy of version 1.17 kickin around? Perhaps even the column_right.php from v1.17? That would be ideal. The newest version seems to be formatted differently. What changed?
Jack_mcs Posted November 27, 2004 Posted November 27, 2004 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 = '" . (int)$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'); You are missing the closing brackets. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted November 27, 2004 Posted November 27, 2004 Does anyone by chance have a copy of version 1.17 kickin around? Perhaps even the column_right.php from v1.17? That would be ideal. The newest version seems to be formatted differently. What changed? <{POST_SNAPBACK}> I'm no expert, but try adding a } after: include(DIR_WS_BOXES . 'best_sellers.php');
OSCRookie Posted November 27, 2004 Author Posted November 27, 2004 I'm no expert, but try adding a } after: include(DIR_WS_BOXES . 'best_sellers.php'); <{POST_SNAPBACK}> all good! added a couple closing brackets, that when pointed out were very obvious :-" Thanks a bunch folks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.