Guest Posted January 1, 2006 Share Posted January 1, 2006 Hi all, and happy new year! (Memo to self: store admin while drunk is never a good idea!) However, i kind of achieved what I wanted but lost my articles capability. Let me start at the beginning... I had a clean install and everything was cool. I had articles entered and life was good. I then wanted to change the graphic look of the site and so used the oscommercegraphics black casino theme seen here.That's all fine and everything was cool - and I kept and re-named all the original files - but now the articles manager is nowhere to be seen... If I try and add it to the left column, the page only loads as far as the new code and then reports the error: Fatal error: Call to undefined function: tep_has_topic_subtopics() in /home/fatmcgav/public_html/ID/includes/boxes/articles.php on line 41 If I add to the right column - well, the right column doesn't exist at all... The entire code of the right column looks like... #################################################### <?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 */ // Why won't my damned articles manager work?! require(DIR_WS_BOXES . 'articles.php'); // end of my damned articles manager 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'); } 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'); } 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'); } ?> #################################################### But nothing appears - there's no error message from the right column but then there's no right column at all. The articles manager in english.php looks like; // Article Manager define('BOX_HEADING_ARTICLES', 'Articles'); define('BOX_ALL_ARTICLES', 'All Articles'); define('BOX_NEW_ARTICLES', 'New Articles'); define('TEXT_DISPLAY_NUMBER_OF_ARTICLES', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> articles)'); define('TEXT_DISPLAY_NUMBER_OF_ARTICLES_NEW', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> new articles)'); define('TABLE_HEADING_AUTHOR', 'Author'); define('TABLE_HEADING_ABSTRACT', 'Abstract'); define('BOX_HEADING_AUTHORS', 'Articles by Author'); define('NAVBAR_TITLE_DEFAULT', 'Articles'); and I'm plumb out of ideas. Can anyone help? Link to comment Share on other sites More sharing options...
ozEworks Posted January 2, 2006 Share Posted January 2, 2006 Fatal error: Call to undefined function: tep_has_topic_subtopics() in /home/fatmcgav/public_html/ID/includes/boxes/articles.php on line 41 You did not add a function. Check your steps. Look for somewhere wher eyou had to edit functions/general.php or something like that. Forget the other errors until you fix that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.