Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
paradice
New Member
New Member


Joined: Aug 06, 2004
Posts: 9

PostPosted: Mon Aug 09, 2004 7:44 pm Reply with quote

I've installed Sentinel 2 and works pretty well! BUT... when I try to go to FORUM ADMINISTRATION through my admin panel, I get the following page. Yes I know the open_basedir is a problem, but without moving servers (October 1st), I can't fix it. If this is the problem, then that's okay.

Code:


 Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2

Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/includes/sessions.php on line 255

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/includes/sessions.php on line 256

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/modules/Forums/admin/index.php on line 620

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/modules/Forums/admin/index.php on line 621



Line 2 of of my mainfile php is the one required during installation:
Code:
 include("includes/sentinel.php");



None of the other admin sections have a problem. Soooo.... I'm quite lost. I'm more than happy to set up access, but would prefer NOT to publish the domain *grin*.. Any ideas? Is there something I need to turn off until the new server comes in October? Or can I get around this? Everything else in the admin menu seems to work fine so I'm not being killed by this.

I am using chatserv's mainfile.php for the base file.

Thanks for any help and suggestions. I love Sentinel and what it's doing for my site!
 
View user's profile Send private message
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Mon Aug 09, 2004 8:20 pm Reply with quote

It's partly due to the fact that forum admin is run from modules/Forums/admin instead of admin/modules/forums.php .

Question: Do you have "Force NukeURL" turned on? If so try turning it off and see if that let's you in. When coding that part of the code I had to make a special exclusion in the coding to allow the forum admin to be called but on some servers it may still be an issue.

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
paradice
PostPosted: Mon Aug 09, 2004 8:31 pm Reply with quote

Yes, I did have Force NukeURL on... turned it off. Logged out. Closed browser. Reopened browser and logged back in. Check that turning off ForceNukeURL stuck, and it did (is still off). Tried Forum Admin and got the exact same message as before.

More ideas? THANKS for any you may have!
 
BobMarion
PostPosted: Mon Aug 09, 2004 8:37 pm Reply with quote

That brings us to:
Code:
// Load required scripts

if ($forum_admin == 1) {
    require_once("../../../config.php");
    require_once("../../../db/db.php");
    $lang_dir = "../../../";
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    $lang_dir = "../../";
} else {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
}


in includes/sentinel.php . It would appear yoru server is mis-reading the directory locations. It's acting as if the ../../../ is putting it above the /html directory. Try the following by changing the above to the below:
Code:
// Load required scripts

if ($forum_admin == 1) {
    require_once("/config.php");
    require_once("/db/db.php");
    $lang_dir = "/";
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    $lang_dir = "../../";
} else {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
}
 
paradice
PostPosted: Mon Aug 09, 2004 8:52 pm Reply with quote

Well... SOME progress, but not complete. (Some's better than none! Smile )

Now I get:
Code:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2


Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2

Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/includes/sentinel.php on line 28

Fatal error: Failed opening required '/config.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site162/fst/var/www/html/includes/sentinel.php on line 28
 
BobMarion
PostPosted: Mon Aug 09, 2004 8:57 pm Reply with quote

Try going from:
Code:
// Load required scripts

if ($forum_admin == 1) {
    require_once("/config.php");
    require_once("/db/db.php");
    $lang_dir = "/";
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    $lang_dir = "../../";
} else {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
}


To:
Code:
// Load required scripts

if ($forum_admin == 1) {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    $lang_dir = "../../";
} else {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
}
 
paradice
PostPosted: Mon Aug 09, 2004 9:06 pm Reply with quote

Well... I had hopes! Shocked Now the response is:

Code:


Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2

Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2

Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/includes/sentinel.php on line 28

Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/includes/sentinel.php on line 28

Fatal error: Failed opening required 'config.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site162/fst/var/www/html/includes/sentinel.php on line 28


Almost the same, but not the same. Neutral
 
BobMarion
PostPosted: Mon Aug 09, 2004 9:07 pm Reply with quote

Okay, we're going to give it a full path this time. Go from:
Code:
// Load required scripts

if ($forum_admin == 1) {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    $lang_dir = "../../";
} else {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
}


To:
Code:
// Load required scripts

if ($forum_admin == 1) {
    require_once("/home/virtual/site162/fst/var/www/html/config.php");
    require_once("/home/virtual/site162/fst/var/www/html/db/db.php");
    $lang_dir = "/home/virtual/site162/fst/var/www/html/";
} elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    $lang_dir = "../../";
} else {
    require_once("config.php");
    require_once("db/db.php");
    $lang_dir = "";
}
 
paradice
PostPosted: Mon Aug 09, 2004 9:16 pm Reply with quote

Bang Head
Code:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2


Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site162/fst/var/www/html/mainfile.php on line 2

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/includes/sessions.php on line 255

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/includes/sessions.php on line 256

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/modules/Forums/admin/index.php on line 620

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site162/fst/var/www/html/mainfile.php:2) in /home/virtual/site162/fst/var/www/html/modules/Forums/admin/index.php on line 621


It simply doesn't like me. It's personal. I can tell. Neutral
 
BobMarion
PostPosted: Mon Aug 09, 2004 9:27 pm Reply with quote

Is the config.php file in yoru sites root directory? or is it in another directory by chance?
 
paradice
PostPosted: Mon Aug 09, 2004 9:39 pm Reply with quote

/var/www/html/config.php

That's where everything is based.


On FTP login, I do get an "alias" at /home/admin - which has leading off of it mainwebsite_cgi and mainwebsite_html

mainwebsite_html becomes /var/www/html when you ftp in
 
paradice
PostPosted: Tue Aug 10, 2004 11:24 pm Reply with quote

hopeful :nudge: to spark more ideas?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©