Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with checkout_payment.php


fizisition

Recommended Posts

I installed a new version of oscommerce and then installed the authorize.net version 1.7b contribution. I am getting an error that looks like this when going to the payment choice page:

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/beanbagb/public_html/shop/includes/header.php:231) in /home/beanbagb/public_html/shop/includes/boxes/categories.php on line 13

 

can someone guide me in the right direction to fixing this problem?

 

thanks in advance

Link to comment
Share on other sites

I installed a new version of oscommerce and then installed the authorize.net version 1.7b contribution. I am getting an error that looks like this when going to the payment choice page:

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/beanbagb/public_html/shop/includes/header.php:231) in /home/beanbagb/public_html/shop/includes/boxes/categories.php on line 13

 

can someone guide me in the right direction to fixing this problem?

 

thanks in advance

If you look at the fatal error you will find that tep_show_category() has been defined at header.php and in categories.php on line 13.You need to comment one of the two.

Probably while placing some contrib you might have added the function.

 

I suggest you to check in a vanilla version where that code should be and block the other one.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

If you look at the fatal error you will find that tep_show_category() has been defined at header.php and in categories.php on line 13.You need to comment one of the two.

Probably while placing some contrib you might have added the function.

 

I suggest you to check in a vanilla version where that code should be and block the other one.

 

Satish

 

i have these lines on both line 13 of the categories.php and line 231 of the header.php page:

 

function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

In the original version of OSC it does not appear in the header.php page, but if I comment it out, I get parse errors.... from where it referrs back to that variable later on in the page..... I think it is because the layout is slightly different in my version.... any ideas?

Link to comment
Share on other sites

i have these lines on both line 13 of the categories.php and line 231 of the header.php page:

 

function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

In the original version of OSC it does not appear in the header.php page, but if I comment it out, I get parse errors.... from where it referrs back to that variable later on in the page..... I think it is because the layout is slightly different in my version.... any ideas?

If the layout has changed the best way is to block at both files and paste the code in application_top.php at the bottom most.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 6 months later...
If the layout has changed the best way is to block at both files and paste the code in application_top.php at the bottom most.

Satish

I ran into this problem too. "Fatal error: Cannot redeclare tep_show_category() (previously declared in" Problem solved.

Change all lines with "tep_show_category" to "tep_show_categories"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...