chrometweaks.org

What's the best free website iPage hosting service apart from Geocities?

Click Here To View All Answers...


Got a question... What's the best free website iPage hosting service apart from Geocities? Hoping for any answer. Second question of mine... I'm trying to install the catalog description Contribution (Category Descriptions MS2 1.4). I think that I have finished the install. (What a pain)..

I'm getting an error now that says the following when I go into admin to edit a catagory..

Fatal error: Call to undefined function: tep_get_category_heading_title() in /mnt/web_i/d36/s12/b021dcf6/www/coins/nfoscomm/catalog/admin/categories.php on line 443.

Line 443 reads.

<td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES$languages[$i]['directory']'/images/'$languages[$i]['image'], $languages[$i]['name'])'&nbsp;'tep_draw_input_field('categories_heading_title['$languages[$i]['id']']', (($categories_name[$languages[$i]['id']]) ? stripslashes($categories_name[$languages[$i]['id']]) : tep_get_category_heading_title($cInfo->categories_id, $languages[$i]['id']))); ?></td>.

The file catagories_description:.

<?php.

/*.

Catagories description modification.

JPB 8/10/04.

*/.

Tep_get_category_heading_title;.

Tep_get_category_description;.

?>.

Any ideas?.

This post has been edited by.

Jackpb.

: 15 August 2004, 23:30..

Comments (79)

That's a good question. I'm not sure what is the answer to that question. I'll do some poking around and get back to you if I discover an decent answer. You should email the people at iPage as they probably could give you help..

Comment #1

Did the contrib include this function tep_get_category_heading_title() and ask you to place it somewhere..........usually general.php ?

Comment #2

It is in catalog description. What is the correct format of that command? This is what the file looks like now..

<?php.

/*.

Catagories description modification.

JPB 8/10/04.

*/.

Tep_get_category_heading_title;.

Tep_get_category_description;.

?>.

>thanks for your help<..

Comment #3

They should have parameters - go through the installation instructions again...

Comment #4

All the instructions say is:.

4. NEW FILE: admin/includes/functions/categories_description.php.

The categories_description.php file contains two service routines:.

Tep_get_category_heading_title.

Tep_get_category_description.

It should be installed in the admin/includes/functions directory..

I'm not sure what to do. The instructions for this contribution is not the greatest for someone who doesn't know PHP well..

Thanks for your help!..

Comment #5

The instructions are telling you to upload the file included in the contrib that is named categories_description.php into your admind/includes/functions directory..

The part about the service routines are for your information only and you do not need to do anything with it. Just upload the provided file to the specified directory..

The latest versions of this contrib don't have all the files and only include the readme, I'm really not sure why. categories_description_MS2_1.5 has it..

Let us know how it goes, I'm hitting a parse error and could use some help...

Comment #6

The file I was missing was.

<?php.

////.

//.

// Code: categories_description.

// Author: Brian Lowe <>.

// 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'];.

}.

?>.

Thanks John Doe!.

This post has been edited by.

Jackpb.

: 20 August 2004, 23:24..

Comment #7

I have the categories_description.php in my admin/includes/functions as the readme instructs, and I have everything installed, including the catalog side and the big insert part (and little ones). But I get a parse error when I try to access my admin categories page (the parse error comes from a line in the big insert)..

I have posted about this here:.

Http://forums.oscommerce.com/index.php?showtopic=42577&st;=20..

Comment #8

I'm trying to install the catalog description Contribution (Category Descriptions MS2 1.4). I think that I have finished the install. (What a pain)..

I'm getting an error now that says the following when I go into admin to edit a catagory..

Fatal error: Call to undefined function: tep_get_category_heading_title() in /mnt/web_i/d36/s12/b021dcf6/www/coins/nfoscomm/catalog/admin/categories.php on line 443.

Line 443 reads.

<td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES$languages[$i]['directory']'/images/'$languages[$i]['image'], $languages[$i]['name'])'&nbsp;'tep_draw_input_field('categories_heading_title['$languages[$i]['id']']', (($categories_name[$languages[$i]['id']]) ? stripslashes($categories_name[$languages[$i]['id']]) : tep_get_category_heading_title($cInfo->categories_id, $languages[$i]['id']))); ?></td>.

The file catagories_description:.

<?php.

/*.

Catagories description modification.

JPB 8/10/04.

*/.

Tep_get_category_heading_title;.

Tep_get_category_description;.

?>.

Any ideas?.

This post has been edited by.

Jackpb.

: 15 August 2004, 23:30..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.