3bgeneral Posted May 31, 2005 Posted May 31, 2005 I was making some changes when I received this fatal error: Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/gentlyus/public_html/includes/functions/database.php:13) in /home/gentlyus/public_html/includes/functions/database.php on line 13 Can anyone explain to me how to fix this? Thank you, Bev
Dada1 Posted May 31, 2005 Posted May 31, 2005 can you post the code? Line 13 & 14 should read as follows: function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; Have you install any contribution and possible done anything to alter this file?
Winterchild Posted May 31, 2005 Posted May 31, 2005 Also read this Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
3bgeneral Posted May 31, 2005 Author Posted May 31, 2005 can you post the code? Line 13 & 14 should read as follows: function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { ? ?global $$link; Have you install any contribution and possible done anything to alter this file? <{POST_SNAPBACK}> Here is the code: Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); No I haven;t installed any contrbs. Thanks for your help Bev
Dada1 Posted May 31, 2005 Posted May 31, 2005 Is that the entire file? I sure hope not? What kind of changes were you doing that you stating in your first post?
3bgeneral Posted May 31, 2005 Author Posted May 31, 2005 Is that the entire file? I sure hope not? What kind of changes were you doing that you stating in your first post? <{POST_SNAPBACK}> no that is not the whole code. Did you want all of it?? I was trying to add a new page to the info box and also change the name of another page. Bev
3bgeneral Posted May 31, 2005 Author Posted May 31, 2005 no that is not the whole code. Did you want all of it?? I was trying to add a new page to the info box and also change the name of another page. Bev <{POST_SNAPBACK}> I keep making things worse. Now it says Warning: main(includes/boxes/information.php): failed to open stream: No such file or directory in /home/gentlyus/public_html/includes/column_left.php on line 24 Fatal error: main(): Failed opening required 'includes/boxes/information.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gentlyus/public_html/includes/column_left.php on line 24 I don't know what to do.
Dada1 Posted May 31, 2005 Posted May 31, 2005 Maybe you need to use the contribution for what your trying to do.
3bgeneral Posted May 31, 2005 Author Posted May 31, 2005 I keep making things worse. Now it says Warning: main(includes/boxes/information.php): failed to open stream: No such file or directory in /home/gentlyus/public_html/includes/column_left.php on line 24 Fatal error: main(): Failed opening required 'includes/boxes/information.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gentlyus/public_html/includes/column_left.php on line 24 I don't know what to do. <{POST_SNAPBACK}> A contribution for editing files?
3bgeneral Posted May 31, 2005 Author Posted May 31, 2005 Ok I managed to get that fixed, now I have a parse error Parse error: parse error, unexpected ';' in /home/gentlyus/public_html/affiliates.php on line 34 Any help is appreciated. Thanks
Guest Posted June 11, 2005 Posted June 11, 2005 Ok I managed to get that fixed, now I have a parse errorParse error: parse error, unexpected ';' in /home/gentlyus/public_html/affiliates.php on line 34 Any help is appreciated. Thanks <{POST_SNAPBACK}> What did you do to get rid of the Fatal Eroor on line 13 in database.php?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.