Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error: Cannot redeclare tep_db_connect()


seodave

Recommended Posts

Posted

I was messing around with osCommerce trying to get rid of a default image (since it wasn't showing up) and wound up with this message:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/MYHOST/public_html/includes/functions/database.php:13) in /home/MYHOST/public_html/includes/functions/database.php on line 13

 

I was in this file when this happened:

/home/MYHOST/public_html//includes/functions/index.php and I was trying to get rid of the following line:

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

I tried just getting rid of the <?php ---- ?> part, but that's when it all went haywire. I had simply cut the text so I replaced it, but still the problem wouldn't go away. Any clues on what I can do to restore my site since right now it's only showing up as a blank page with the fatal error text listed above. Any help is appreciated.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...