blnukem Posted June 30, 2004 Posted June 30, 2004 Hi All I just applied theCategory Descriptions contribution for osCommerce 2.2 and I now I get Fatal error when I go to Categories > Categories / Products > Edit The error: Fatal error: Call to undefined function: tep_get_category_heading_title() in /usr/local/etc/httpd/htdocs/dobiesoft/catalog/admin/categories.php on line 441 I cant seem to figure it out here is the categories.php Thanks In Advance! Blnukem <_< Quote
Guest Posted June 30, 2004 Posted June 30, 2004 Hi, Did you define these? 6. LANGUAGE FILES CHANGES Locate your default language under admin/includes/languages and edit the file 'categories.php'. Add two lines after the line that defines define('TEXT_DISPLAY_NUMBER_OF_ZONES', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> zones)'); Add these lines: define('TEXT_EDIT_CATEGORIES_HEADING_TITLE', 'Category Heading Title:'); define('TEXT_EDIT_CATEGORIES_DESCRIPTION', 'Category Description:'); Quote
241 Posted June 30, 2004 Posted June 30, 2004 (edited) The error states that it is a call to an undefined function. Check catalog/includes/functions/general.php to see if the function tep_get_category_heading_title exists. Edited June 30, 2004 by 241 Quote No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
blnukem Posted June 30, 2004 Author Posted June 30, 2004 define('TEXT_EDIT_CATEGORIES_HEADING_TITLE', 'Category Heading Title:'); define('TEXT_EDIT_CATEGORIES_DESCRIPTION', 'Category Description:'); Does exsist in the 'categories.php'. The function tep_get_category_heading_title DOES NOT exist in catalog/includes/functions/general.php The install all makes no reference to tep_get_category_heading_title in catalog/includes/functions/general.php Quote
rekhis Posted July 7, 2004 Posted July 7, 2004 I am also thinking of installing this contribution and saw some (later) updates are not complete. In the same contribution, look for "Category Descriptions for the BTS" by Paul Mathot and it seems to have all the files. I will try installing from that and let you know, if I am successful. Rgds ...Manjeet Quote
mtwo1 Posted July 8, 2004 Posted July 8, 2004 I installed mine by following the ReadMe posted on: 29 Jun 2004 - Update for MS2 and using the files on Categories Description MS2 1.5. I had no problems following the installation but now I can't insert new categories or sub categories on my site. When I click the New Category button, my site displays the form for a new category. But when you click the Preview button and then the Insert button, the new category you just typed is not listed. I also checked the database and found no new record for the category. It seems like this mod is missing a few. Does anyone have this mod workin on their site right? Quote
rekhis Posted July 14, 2004 Posted July 14, 2004 I finally got it working ! I used the version 1.5 which has all files, but I used the readme file of v1.6 which has instructions to modify index.php. Quote
guanche Posted July 25, 2004 Posted July 25, 2004 I have installed Category Descriptions 1.5 but I am getting this nasty error: 1054 - Unknown column 'cd.categories_heading_title' in 'field list' select cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image from categories c, categories_description cd where c.categories_id = '21' and cd.categories_id = '21' and cd.language_id = '1' [TEP STOP] Also, when I connect to the admin tool I am not seeing the "Allow Category Descriptions." as discussed in teh Readme. Anyone have a clue how to solve this? Joe Quote
jackpb Posted August 20, 2004 Posted August 20, 2004 I had the orginal error and resolved it with this version of catalog_descriptions.php. <?php //---------------------------------------------------------------------------// // // Code: categories_description // Author: Brian Lowe <[email protected]> // Date: June 2002 // // Contains code snippets for the categories_description contribution to // osCommerce. //---------------------------------------------------------------------------// // Code: categories_description MS2 1.5 // Editor: Lord Illicious <[email protected]> // Date: July 2003 // //---------------------------------------------------------------------------// //---------------------------------------------------------------------------// // Get a category heading_title or description // These should probably be in admin/includes/functions/general.php, but since // this is a contribution and not part of the base code, they are here instead //---------------------------------------------------------------------------// function tep_get_category_heading_title($category_id, $language_id) { $category_query = tep_db_query("select categories_heading_title from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $category_id . "' and language_id = '" . $language_id . "'"); $category = tep_db_fetch_array($category_query); return $category['categories_heading_title']; } function tep_get_category_description($category_id, $language_id) { $category_query = tep_db_query("select categories_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $category_id . "' and language_id = '" . $language_id . "'"); $category = tep_db_fetch_array($category_query); return $category['categories_description']; } ?> Remember to kill all space after the final ?> or else You'll get errors from that. Good luck & god bless! Thank you John Doe!!!!!!!!!!!!!! Quote
millyramsey Posted August 21, 2004 Posted August 21, 2004 I'm getting a parse error with this contrib. I have posted the details of my problem here: http://www.oscommerce.com/forums/index.php?showtopic=42577&st=20 Thank you! Quote
Guest Posted September 2, 2004 Posted September 2, 2004 Hi all, I used the Category Descriptions contribution for osCommerce 2.2 Author: Brian Lowe <[email protected]> Date: September 2002 (version 1.1) July 2002 (version 1.0) Contribution Version: 1.1 osCommerce version: 2.2 ============================================================================== Editor: Lord Illicious <[email protected]> Date: July 2003 (version 1.1) July 2003 (version 1.5 MS2) Contribution Version: 1.5 MS2 osCommerce version: 2.2 Milestone 2 I can see and add a product description in the admin but the descriptions are not showing in the catalog. Any suggestions on how to fix this? Thanks. Quote
millyramsey Posted September 9, 2004 Posted September 9, 2004 I have repackaged this contrib, including the php scripting mod and my own mod in order to be able to use WYSIWYG for the category description! It's a complete package with slightly reformatted, more user-friendly instructions. I've presented both the WYSIWYG mod and the php scripting mod as OPTIONAL, and included instructions for installation with or without one of these mods. This is a NON-BTS version. Download the latest version, it's all there! Get the contrib here Quote
millyramsey Posted September 9, 2004 Posted September 9, 2004 Reg-DCP, Are you talking about product descriptions, or category descriptions? You may want to start over and re-install. The categories.php file is full of code and very sensitive and you have to be sooo careful. Also, make sure you altered all the files as instructed in the readme, including index.php Quote
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.
Note: Your post will require moderator approval before it will be visible.