Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi there

I've just installed this contribution but am getting this error when clicking on Attributes Sets in the admin.

 

 

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

 

A quick search say I have an incorrect file in my languages folder, but everything seems fine.

 

Any ideas?

 

I do have the product_listing_columns contribution installed as well.

 

thnaks in advance

Posted
A quick search say I have an incorrect file in my languages folder, but everything seems fine.

 

Check again. I've never seen this error happen for any other reason.

 

Double-check the files in the contributions, and make sure the corresponding language files for all are NOT code files.

Contributions

 

Discount Coupon Codes

Donations

Posted
Check again. I've never seen this error happen for any other reason.

 

Double-check the files in the contributions, and make sure the corresponding language files for all are NOT code files.

 

I'm getting the same fatal error, and it happens when I click on a product review. I didn't add any product contribution other than the "down for maintenance" contribution and used that only once, then turned it off. I doubt that contribution had any impact on this.

 

Advice anyone?

Posted
I'm getting the same fatal error, and it happens when I click on a product review. I didn't add any product contribution other than the "down for maintenance" contribution and used that only once, then turned it off. I doubt that contribution had any impact on this.

 

Advice anyone?

 

 

For more info, the text of the error I get is:

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

 

 

How do I find where it is "redeclaring" that connection? How do I fix this? I'm new to PHP.

 

Thanks...

Posted

 

OK, I read that, then what I did was go to the site again, on the home page. Then I clicked on the product review that I wanted to read and the fatal error comes up when going to the product_reviews_info.php page.

 

What I now see is in that file, there is this clause: require('includes/application_top.php'); at the top. Should I remove that line of code? Isn't this a page that is only called from another page that would already have that require statement in it? But, if I do that, then won't that leave me with a weird looking page when I get to the product_reviews_info.php page?

 

Thanks for the help...if you can point me in the right direction as to what to do, that would be great!

Posted

I nailed it!

 

Maybe this will help others.

 

What I did was:

 

downloaded the catalog -> product_reviews_info.php

downloaded the catalog -> includes -> languages -> english -> product_reviews_info.php files

 

Ran a file compare and guess what....the two files were IDENTICAL. Oops...I found the correct version for the includes -> languages -> english version, uploaded it, and voila, problem solved.

 

I guess it's a common thing, we get mixed up between the files sometimes when uploading.

Posted

Thanks for the replies..however I still have problems

 

I have noticed that if I remove the products_attributes_sets.php file in the admin/includes/english folder I do not get the error.

 

But I need this file for the contribution to function correctly right?

 

What else could be conflicting with this file?

 

thanks

Posted

Thanks..

 

I might just be a bit slow..but shouldn't uploaded files go here:

/catalog/admin/includes/languages/english/products_attributes_sets.php

/catalog/admin/includes/languages/english/products_attributes_sets_edit.php

/catalog/admin/products_attributes_sets.php

/catalog/admin/products_attributes_sets_edit.php

 

This seems to be what is causing my problem..if I remove the files from /catalog/admin/includes/languages/english/ it seems to function ok.

 

Correct.

 

Please reread the posts. They explain why this is happening.

Posted
This seems to be what is causing my problem..if I remove the files from /catalog/admin/includes/languages/english/ it seems to function ok.

 

Yes. Reread this post:

 

I nailed it!

 

Maybe this will help others.

 

What I did was:

 

downloaded the catalog -> product_reviews_info.php

downloaded the catalog -> includes -> languages -> english -> product_reviews_info.php files

 

Ran a file compare and guess what....the two files were IDENTICAL. Oops...I found the correct version for the includes -> languages -> english version, uploaded it, and voila, problem solved.

 

I guess it's a common thing, we get mixed up between the files sometimes when uploading.

Contributions

 

Discount Coupon Codes

Donations

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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