mitchfunk Posted February 23, 2006 Posted February 23, 2006 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 Quote
kgt Posted February 23, 2006 Posted February 23, 2006 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. Quote Contributions Discount Coupon Codes Donations
Guest Posted February 23, 2006 Posted February 23, 2006 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? Quote
Guest Posted February 23, 2006 Posted February 23, 2006 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... Quote
kgt Posted February 23, 2006 Posted February 23, 2006 More information may be found here: http://www.google.com/search?hl=en&q=site%...G=Google+Search Quote Contributions Discount Coupon Codes Donations
Guest Posted February 23, 2006 Posted February 23, 2006 More information may be found here: http://www.google.com/search?hl=en&q=site%...G=Google+Search 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! Quote
Guest Posted February 23, 2006 Posted February 23, 2006 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. Quote
mitchfunk Posted February 27, 2006 Author Posted February 27, 2006 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 Quote
kgt Posted February 27, 2006 Posted February 27, 2006 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. Correct. Please reread the posts. They explain why this is happening. Quote Contributions Discount Coupon Codes Donations
mitchfunk Posted February 28, 2006 Author Posted February 28, 2006 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. Quote
kgt Posted February 28, 2006 Posted February 28, 2006 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. Quote Contributions Discount Coupon Codes Donations
Recommended Posts
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.