Guest Posted October 13, 2007 Share Posted October 13, 2007 I noticed someone posted a problem to you about Category Count back in Jan 05'. I happen to be having the same problem. I downloaded the file package from OsCommerce Solution.com. :blink: I keep getting an error. I've tried installing it more than once. If you could help me I would really appreciate it. Your solution you gave the person looking for help did not help. It involved the general.php file, I've listed it below. http://www.oscommerce.com/forums/index.php?showtopic=129173 I have a current standard download of OsCommerce. :blush: Here's the error I get: Fatal error: Call to undefined function: tep_count_products_in_category() in /home/tntridec/public_html/tntride.info/admin/cat_count.php on line 58 Thanks in advance, -Travis TNTRide Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 13, 2007 Share Posted October 13, 2007 It involved the general.php file There are two: one in the catalog section and one in the admin. The error states specificly that it cannot find the function so it looks like you added it to the wrong general.php file (the one in catalog instead of admin). Quote Link to comment Share on other sites More sharing options...
Guest Posted October 13, 2007 Share Posted October 13, 2007 There are two: one in the catalog section and one in the admin. The error states specificly that it cannot find the function so it looks like you added it to the wrong general.php file (the one in catalog instead of admin). No it was in admin unfortunately. :blush: Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 13, 2007 Share Posted October 13, 2007 No it was in admin unfortunately. :blush: That is very, very strange. Does the page cat_count.php not have a line that says: require('includes/application_top.php'); Otherwise specifically add require_once('includes/functions/general.php'); or add the function to the the page cat_count.php itself (you only need it on that page anyway). Quote Link to comment Share on other sites More sharing options...
Guest Posted October 13, 2007 Share Posted October 13, 2007 That is very, very strange. Does the page cat_count.php not have a line that says: require('includes/application_top.php'); Otherwise specifically add require_once('includes/functions/general.php'); or add the function to the the page cat_count.php itself (you only need it on that page anyway). How would it read if I added it? I'm a newb to php. I sit in confusion all the time, if I don't have programmers that can help me. :blink: Sorry, -Travis Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted October 13, 2007 Share Posted October 13, 2007 How would it read if I added it? I'm a newb to php. I sit in confusion all the time, if I don't have programmers that can help me. :blink: Well, it would be nice if you read a book on PHP. That would stop the confusion and a lot of frustration. If I would add that I would copy the function to the file at the end. But before the php end tag of course: ?> so: function tep_cat_count() { code of the function } // last curly brace of the function ?> Quote Link to comment Share on other sites More sharing options...
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.