Author |
Message |
paradice
New Member


Joined: Aug 06, 2004
Posts: 9
|
Posted:
Mon Aug 09, 2004 7:44 pm |
|
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! |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Mon Aug 09, 2004 8:20 pm |
|
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! |
|
|
 |
paradice

|
Posted:
Mon Aug 09, 2004 8:31 pm |
|
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

|
Posted:
Mon Aug 09, 2004 8:37 pm |
|
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

|
Posted:
Mon Aug 09, 2004 8:52 pm |
|
Well... SOME progress, but not complete. (Some's better than none! )
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

|
Posted:
Mon Aug 09, 2004 8:57 pm |
|
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

|
Posted:
Mon Aug 09, 2004 9:06 pm |
|
Well... I had hopes! 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.  |
|
|
|
 |
BobMarion

|
Posted:
Mon Aug 09, 2004 9:07 pm |
|
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

|
Posted:
Mon Aug 09, 2004 9:16 pm |
|
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.  |
|
|
|
 |
BobMarion

|
Posted:
Mon Aug 09, 2004 9:27 pm |
|
Is the config.php file in yoru sites root directory? or is it in another directory by chance? |
|
|
|
 |
paradice

|
Posted:
Mon Aug 09, 2004 9:39 pm |
|
/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

|
Posted:
Tue Aug 10, 2004 11:24 pm |
|
hopeful :nudge: to spark more ideas? |
|
|
|
 |
|