Need php oscommerce help

Discussion in 'PHP' started by Subesh, Jun 29, 2008.

  1. #1
    After I installed this plugin http://addons.oscommerce.com/info/1642
    I get the following error at
    http://9wear.com/product_info.php?products_id=31

    Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/subesh/public_html/9wear/includes/header.php:195) in /home/subesh/public_html/9wear/includes/boxes/categories.php on line 59

    I followed all the installation instructions and everything but still there's some kind of error. Hoping that the gurus at digitalpoint can help me. Thanks and awaiting your response.

    Edit: I put the original source includes/header.php and it works but the design is messed up and the the includes/header.php that came with the template has the design but does not work. If someone could mingle with these two and make them work so my current design will work with the original source files, I will pay them a few bucks. This is probably easy stuff for you gurus.
     
    Subesh, Jun 29, 2008 IP
  2. php-lover

    php-lover Active Member

    Messages:
    261
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #2
    There's a function name tep_show_category() is already declared in this file header.php:

    /home/subesh/public_html/9wear/includes/header.php

    and it's redeclare the same function name tep_show_category() in categories.php:

    /home/subesh/public_html/9wear/includes/boxes/categories.php

    Try this if its work for you:
    Browse this file bath /home/subesh/public_html/9wear/includes/boxes/categories.php and look at the line 59 and put a comment or delete this function tep_show_category(). After that, save your categories.php file and test your code to see if it's work.

    cheers
     
    php-lover, Jun 29, 2008 IP
  3. mrphp

    mrphp Well-Known Member

    Messages:
    682
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Need assistance? check your pm.
     
    mrphp, Jul 1, 2008 IP