Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error


3bgeneral

Recommended Posts

Posted

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

Posted

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?

Posted
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?

 

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

Posted

Is that the entire file? I sure hope not? What kind of changes were you doing that you stating in your first post?

Posted
Is that the entire file? I sure hope not? What kind of changes were you doing that you stating in your first post?

 

 

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

Posted
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

 

 

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.

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

 

A contribution for editing files?

Posted

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

  • 2 weeks later...
Posted
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

 

What did you do to get rid of the Fatal Eroor on line 13 in database.php?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...