Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot redeclare tep_db_connect()


stevenrwoolley

Recommended Posts

Posted

I installed the headers tag collaboration and everything was working great. I was able to edit the header information in my admin section , but today when I go to click on my header tag in the admin this error comes up. I?m not sure what it means and what could have changed from last night until this morning. I did update category?s at the catalog section of my store and filled in headers at the category menu.

If you have any suggestions please let me know.

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /hsphere/local/home/steven/onlinetransmissionparts.com/admin/includes/functions/database.php:13) in /hsphere/local/home/steven/onlinetransmissionparts.com/admin/includes/functions/database.php on line 13

 

 

5 osCommerce, Open Source E-Commerce Solutions

6 http://www.oscommerce.com

7

8 Copyright ? 2003 osCommerce

9

10 Released under the GNU General Public License

11 */

12

13 function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {

14 global $$link;

15

16 if (USE_PCONNECT == 'true') {

17 $$link = mysql_pconnect($server, $username, $password);

18 } else {

19 $$link = mysql_connect($server, $username, $password);

Posted

Okay, so as I understand it (facing this problem today as well), I won't get this error unless I have uploaded the wrong files to the languages/english folder. I refreshed that folder and it was no help. Any further ideas? I only get this error on my new upload. I have it working in one folder before root. I moved the store to root and now I'm getting the error, but only on the right column. I'm open to ideas.

 

Thanks,

 

Tina

Posted

Steven:

 

No, I have figured it out yet. I'm about to dump my install and try again.

 

Tina

Archived

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

×
×
  • Create New...