Guest Posted January 10, 2005 Posted January 10, 2005 i just installed oscommerce and tried to visit the About Us page, it gave this error msg: Fatal error: Cannot redeclare tep_db_connect() (previously declared in /usr/home/perweb/domains/perweborder.com/public_html/includes/functions/database.php:13) in /usr/home/perweb/domains/perweborder.com/public_html/includes/functions/database.php on line 13
Jack_mcs Posted January 10, 2005 Posted January 10, 2005 The about us page is not a standard page so a mistake might have been made when you added it. The above sort of error can occur if you accidentally copied catalog/about_us.php to catalog/includes/languages/english/about_us.php. You may want to check that. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Simmy Posted January 10, 2005 Posted January 10, 2005 as the error is referring to the same line, I suspect that the file database.php has been included twice. includes/application_top.php is the file which refers to database.php and should be the only one! Post the first 20 lines of the about page. that may help track the prob down!
cdickson Posted January 18, 2005 Posted January 18, 2005 I'm experiencing the same problem right now trying to implement the file aboutus.php. I found that I had copied aboutus.php to the catalog/includes/languages/english/ subdirectory, but when I delete the file from that subdirectory I get the error message: Warning: main(includes/languages/english/aboutus.php): failed to open stream: No such file or directory in /home/breadworks/www/www/aboutus.php on line 15 Warning: main(includes/languages/english/aboutus.php): failed to open stream: No such file or directory in /home/breadworks/www/www/aboutus.php on line 15 Fatal error: main(): Failed opening required 'includes/languages/english/aboutus.php' (include_path='.:/usr/local/lib/php') in /home/breadworks/www/www/aboutus.php on line 15 Line 15 reads: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUTUS); Did you ever figure out what was wrong? cdickson
ozcsys Posted January 18, 2005 Posted January 18, 2005 I'm experiencing the same problem right now trying to implement the file aboutus.php. I found that I had copied aboutus.php to the catalog/includes/languages/english/ subdirectory, but when I delete the file from that subdirectory I get the error message: Line 15 reads: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUTUS); Did you ever figure out what was wrong? <{POST_SNAPBACK}> You need to have two versions of your aboutus.php file. One in your catalog and one in your catalog/includes/languages/english/ They are however not the same file. You should look at the instructions in the knowledge base for adding a page to see what the proper steps are and see what you are missing the directions can be found HERE The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
cdickson Posted January 18, 2005 Posted January 18, 2005 Richard... thank you, thank you, THANK YOU! :thumbsup: The information to add the aboutus.php page in the contribution didn't explain this, and I appreciate your prompt response and direction. cdickson
ozcsys Posted January 18, 2005 Posted January 18, 2005 Richard... thank you, thank you, THANK YOU! :thumbsup: The information to add the aboutus.php page in the contribution didn't explain this, and I appreciate your prompt response and direction. <{POST_SNAPBACK}> Adding pages are pretty simple if you follow the steps in the knowledge base there is really no need to use a confribution. One thing to keep in mind about contributions, they are written by people of varying skill. It is always a good idea to check the support thread for a contribution to see what if any problems there are with it and even if it works at all before installing it on your store. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.