richaldridge Posted March 16, 2004 Share Posted March 16, 2004 Hi all, I am getting this error on each page on my site. Fatal error: Call to a member function on a non-object in /correctpathname/store/includes/column_right.php on line 17 The file it questions looks like this: <?php /* $Id: column_right.php,v 1.18 2003/11/17 17:34:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [URL=http://www.oscommerce.com]http://www.oscommerce.com[/URL] Copyright ? 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($_GET['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if ($osC_Customer->isLoggedOn()) include(DIR_WS_BOXES . 'order_history.php'); if (isset($_GET['products_id'])) { if ($osC_Customer->isLoggedOn()) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$osC_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($_GET['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'); } 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'); } ?> Any ideas? Cheers, Richard Cheers, Richard Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.