Guest tbrides Posted January 11, 2007 Share Posted January 11, 2007 hi, recently our admin panel has stopped working. here are the error messages: Warning: main(/domains/OURWEBSITE/public_html/classes/db.inc.php) [function.main]: failed to open stream: No such file or directory in /home/OURWEBSITE/domains/OURWEBSITE/public_html/admin/includes/auth.inc.php on line 60 Warning: main() [function.include]: Failed opening '/domains/OURWEBSITEe/public_html/classes/db.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/OURWEBSITE/domains/OURWEBSITE/public_html/admin/includes/auth.inc.php on line 60 Warning: main(/domains/OURWEBSITE/public_html/admin/includes/navigation.inc.php) [function.main]: failed to open stream: No such file or directory in /home/OURWEBSITE/domains/OURWEBSITE/public_html/admin/includes/header.inc.php on line 57 Warning: main() [function.include]: Failed opening '/domains/OURWEBSITE/public_html/admin/includes/navigation.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/OURWEBSITE/domains/OURWEBSITE/public_html/admin/includes/header.inc.php on line 57 I've traced the error to lines that include $GLOBALS['rootDir'] e.g. <?php include($GLOBALS['rootDir']."/admin/includes/navigation.inc.php"); ?> Has this got to do with Global Variables? Should I remove $GLOBALS['rootDir'] or do I get our host to turn on Globals? I've just looked at phpinfo and register globals is on? The site was transfered from another host... would that be the cause of our problem? ----====UPDATE===--- It's ok I got it working I added /home/OURWEBSITE/ in front of /domains/OURWEBSITE/public_html/ in includes/global.inc.php I added Quote Link to comment Share on other sites More sharing options...
roban Posted January 11, 2007 Share Posted January 11, 2007 Perhaps a path problem in your includes/globals.inc file specifically: $glob['rootDir'] = ''; Can you post the contents please. 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.