Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category_Fields: fatal error in admin/includes/functions/database.php


foaad

Recommended Posts

Since I had the site setup by someone else I tried to make changes to the files manually and uploaded the files. I can see the "Category Fields" under the catalog administration. However, as soon as I click on the link, the response is the following:

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

Line 13 on database.php shows:

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

and to be honest with you all, I do not where to begin finding the solution.

Any help would be greatly appreciated.

Foaad

Link to comment
Share on other sites

To add some more to the issue; the catalog which it was accessible before when I try to see and check a products gives me the following error now:

"1146 - Table 'XYZ_com.products_to_products_extra_fields' doesn't exist

 

SELECT * FROM products_to_products_extra_fields WHERE products_id=2439

 

[TEP STOP]"

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...