Jump to content

admin not working - cannot find files or directories


Guest tbrides

Recommended Posts

Guest tbrides

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

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.

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