viragovisions Posted June 29, 2007 Share Posted June 29, 2007 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 Quote Link to comment Share on other sites More sharing options...
viragovisions Posted June 29, 2007 Author Share Posted June 29, 2007 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 Quote Link to comment Share on other sites More sharing options...
viragovisions Posted June 29, 2007 Author Share Posted June 29, 2007 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. Quote Link to comment Share on other sites More sharing options...
viragovisions Posted June 29, 2007 Author Share Posted June 29, 2007 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? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 29, 2007 Share Posted June 29, 2007 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. Quote Link to comment Share on other sites More sharing options...
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.