celebman1, on 13 May 2011, 17:17, said:
Thank you for your advice, I have been playing around and have got the optins type showing fine in the admin area but when i go to the product page in the live store i get the following error
Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/users/uks28349/html/xxxxx-xxxx.co.uk/includes/boxes/categories.php:12)
Any ideas on how to solve this?
Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/users/uks28349/html/xxxxx-xxxx.co.uk/includes/boxes/categories.php:12)
Any ideas on how to solve this?
Hi everyone,
Stepping in for a second, to tell ya'll I am no longer an osCommerce user (and thus no longer actively developing contributions for osCommerce)
Sorry everyone, but the osCommerce code was getting too messy, old (using deprecated HTTP_*_VARS 'n stuff), and difficult to keep up to date (especially when using multiple 'conflicting' contributions).
To be fair, I haven't really checked out the new release (>= 2.3), but noticed the deprecated HTTP_VARS are still implemented...
I won't promote any other Open source shopping Cart software, but I am converting to another package.
Now, to properly reply to your question, Celebman1:
I have searched for that function (tep_show_category), even in the latest release (with which I had nothing to do), but that function is not used, nor set by the Option Types v2 Contribution...
Any chance it's caused by another conrtibution??? (Maybe something involving Left/Right column)
I'll explain what I do to track back this error while I go:
First, to explain the error:
It says: I know a function (named "tep_show_category", which you told me about in the file "includes/boxes/categories.php"), and now you're trying to tell me about "tep_show_category" again!
So, I searched ALL FILES for "tep_show_category":
- 3 hits in 1 file (surprise surprise, found in: "includes/boxes/categories.php")
So, the original code does not have 2 functions called "tep_show_category" that could be called at the same time.
This can mean 2 things:
1) You've added a new function somewhere, called "tep_show_category" (for a contribution).
2) The function "tep_show_category" is called twice, because the page "includes/boxes/categories.php" is called twice.
So, I searched ALL FILES for "categories.php":
- Couple of hits, in a couple of files...
We can ignore the files in "admin/" (that's not where the error is), and we can ignore anything in "languages/"
The only thing I end up with, is include(DIR_WS_BOXES . 'categories.php'); in "includes/column_left.php"
That is of course the correct location for this file (and the function "tep_show_category") to be called.
I advise to search ALL YOUR FILES for "tep_show_category", and then "categories.php" (use a descent editor, like Notepad++), and see if if anything's different from what I found above.
If you're really stumped, better email me than post on the forum.
Your problem is too specific to be helpful for anybody...
Regards.






Find content
Male
