Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error


Recommended Posts

I looked but didn't see this...

 

I am looking at the following error:

Fatal error: main() [function.require]: Failed opening required 'includes/boxes/information.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/yordany/public_html/os/admin/includes/column_left.php on line 21

 

which involves this line of code:

require(DIR_WS_BOXES . 'information.php');

 

All the code for that page:

 

<?php

/*

$Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_BOXES . 'configuration.php');

require(DIR_WS_BOXES . 'catalog.php');

require(DIR_WS_BOXES . 'modules.php');

require(DIR_WS_BOXES . 'customers.php');

require(DIR_WS_BOXES . 'taxes.php');

require(DIR_WS_BOXES . 'localization.php');

require(DIR_WS_BOXES . 'reports.php');

require(DIR_WS_BOXES . 'tools.php');

require(DIR_WS_BOXES . 'information.php');

?>

 

Could someone see why I am getting that error..?

 

Thanks

Link to comment
Share on other sites

PS: the information.php was overridden and is in the root catalog directory. If that is wrong, please let me know.

 

I looked but didn't see this...

 

I am looking at the following error:

Fatal error: main() [function.require]: Failed opening required 'includes/boxes/information.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/yordany/public_html/os/admin/includes/column_left.php on line 21

 

which involves this line of code:

require(DIR_WS_BOXES . 'information.php');

 

All the code for that page:

 

<?php

/*

$Id: column_left.php,v 1.15 2002/01/11 05:03:25 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_BOXES . 'configuration.php');

require(DIR_WS_BOXES . 'catalog.php');

require(DIR_WS_BOXES . 'modules.php');

require(DIR_WS_BOXES . 'customers.php');

require(DIR_WS_BOXES . 'taxes.php');

require(DIR_WS_BOXES . 'localization.php');

require(DIR_WS_BOXES . 'reports.php');

require(DIR_WS_BOXES . 'tools.php');

require(DIR_WS_BOXES . 'information.php');

?>

 

Could someone see why I am getting that error..?

 

Thanks

Link to comment
Share on other sites

Believe it or not I fixed that and now have the following error:

 

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

 

Any suggestions?

 

 

 

 

PS: the information.php was overridden and is in the root catalog directory. If that is wrong, please let me know.
Link to comment
Share on other sites

This is the code line 13 from the database.php:

 

function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {

 

 

Believe it or not I fixed that and now have the following error:

 

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

 

Any suggestions?

Link to comment
Share on other sites

Believe it or not I fixed that and now have the following error:

 

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

 

Any suggestions?

this may happen if you misplace files like the osc root files into the language folder (they have the same filenames).

 

The other issue, for the box files they should go in the catalog\includes\boxes folder.

Link to comment
Share on other sites

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