| Author |
Message |
ash_k_89
Nuke Soldier


Joined: Aug 18, 2004
Posts: 11
|
Posted:
Sat Aug 21, 2004 5:14 am |
  |
After i instaled NukeSentinel i keep getting this error when i try and get into the forums admin page. Is there any way around this?
| Quote: |
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/ofpoptimized.com/httpdocs/mainfile.php on line 1184
|
line 1184 is
| Quote: |
| include("includes/sentinel.php"); |
Thanks for any help |
_________________ Ash
Ofpoptimized.com |
|
   |
 |
MrFluffy
Captain


Joined: Aug 06, 2003
Posts: 411
Location: Berlin
|
Posted:
Sat Aug 21, 2004 6:17 am |
  |
Strange, because includes/ is not above the directory level of mainfile.php...
Did you try to move the include to line 2, as it is recommended in the installation notes? |
_________________ cu, MrFluffy
conrads-berlin.de
nuke-platinum.de |
|
        |
 |
madman
Support Mod


Joined: Feb 15, 2004
Posts: 806
|
Posted:
Sat Aug 21, 2004 8:56 am |
  |
File inclusion failed because of this:
| Code: |
| Warning: open_basedir restriction in effect. |
This is a description about open_basedir restriction from PHP doc:
| Quote: |
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.
When a script tries to open a file with, for example, fopen or gzopen, the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.
The special value . indicates that the directory in which the script is stored will be used as base-directory.
Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.
The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/"
Note: Support for multiple directories was added in 3.0.7.
The default is to allow all files to be opened. |
You'll have to contacting your host provider for allowable PHP directories, disabling safe-mode, or any restrictions that affects to current PHP settings. |
_________________ I'm  |
|
      |
 |
arnoldkrg
Major


Joined: Aug 03, 2003
Posts: 936
Location: United Kingdom
|
Posted:
Sat Aug 21, 2004 9:41 am |
  |
Did you put an .htaccess file in the wrong place? |
_________________
 |
|
     |
 |
ash_k_89
Nuke Soldier


Joined: Aug 18, 2004
Posts: 11
|
Posted:
Sat Aug 21, 2004 10:42 am |
  |
| MrFluffy wrote: |
| Did you try to move the include to line 2, as it is recommended in the installation notes? |
When i tried moving it to line 2 it just makes more errors saying
| Quote: |
Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/ofpoptimized.com/httpdocs/config.php:120) in /home/httpd/vhosts/ofpoptimized.com/httpdocs/admin/modules/forums.php on line 38
|
Is there any other way to fix it or this error?
The site works fine with no errors when i remove the include line but nukesentilel doesnt work when i do. I have had similar errors before and fixed them using "output buffering"? by changing
| Code: |
$phpver = phpversion();
if ($phpver >= '4.0.4pl1' && strstr(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {
|
to
| Code: |
$phpver = phpversion();
if ($phpver >= '4.0.4pl1')
{
ob_start('ob_gzhandler');
}else if (42 > '4.0') {
|
and adding the following line to a .htaccess file in the root
| Code: |
| PHP_FLAG output_buffering on |
|
_________________ Ash
Ofpoptimized.com |
|
   |
 |
maxout
Corporal


Joined: Aug 16, 2004
Posts: 64
|
Posted:
Sat Aug 21, 2004 2:44 pm |
  |
After installation once when I try to load admin config I got this error:
Fatal error: Call to undefined function: abget_configs() in /home/webpagec/public_html/admin/modules/sentinel.php on line 29
line 29 :
$abconfig = abget_configs();
What that error means ?
In admin CP name under NukeSentinel icon I have :
_AB_NUKESENTINEL
is that normal? ?
thank you .. |
|
|
   |
 |
Darrell3831
Captain


Joined: Jan 05, 2004
Posts: 425
|
Posted:
Sat Aug 21, 2004 2:56 pm |
  |
Hi Maxout,
This folder is for questions about Nuke. There is actually a folder here for questions about Sentinel.
Your error stems from forgeting to add a line to your mainfile.php.
This is the first question answered in the Sentinel FAQ documentation. Add this as the second line in your mainfile.php.
| Code: |
| include("includes/sentinel.php"); |
That will clear up the error for you.
Darrell |
_________________ http://www.psy-center.com |
|
    |
 |
maxout
Corporal


Joined: Aug 16, 2004
Posts: 64
|
Posted:
Sat Aug 21, 2004 4:40 pm |
  |
Sorry that my mistake. Please move this to right forum.
Thyank you so much for help .. you was right I did mistake and I add that line to myheader.php |
|
|
   |
 |
ash_k_89
Nuke Soldier


Joined: Aug 18, 2004
Posts: 11
|
Posted:
Sun Aug 22, 2004 5:20 am |
  |
any1 got a anser mi problem? |
_________________ Ash
Ofpoptimized.com |
|
   |
 |
Darrell3831
Captain


Joined: Jan 05, 2004
Posts: 425
|
Posted:
Sun Aug 22, 2004 7:31 am |
  |
ash_k_89,
What did you choose line 1189 to put that include file? Are you running version 2.01 of Sentinel right now?
What version of Nuke?
Is your server Unix or Windows?
You said after installing Sentinel that you could not reach your forum admin page anymore. But you never said rather or not Sentinel worked in your first message.
Does Sentinel work?
Darrell |
_________________ http://www.psy-center.com |
|
    |
 |
Darrell3831
Captain


Joined: Jan 05, 2004
Posts: 425
|
Posted:
Sun Aug 22, 2004 8:22 am |
  |
ash_k_89,
Here's some more information that may be relevant to your installation.
| Quote: |
· How do i remove the Cannot Add Header Information error message?
If you have access to php.ini set:
output_buffering = On
else copy the following into a file:
PHP_FLAG output_buffering On
save it as .htaccess and upload to the same place mainfile.php is located.
Or add the following line to mainfile.php right after the file credits:
ini_set("output_buffering","1"); |
Darrell |
_________________ http://www.psy-center.com |
|
    |
 |
ash_k_89
Nuke Soldier


Joined: Aug 18, 2004
Posts: 11
|
Posted:
Sun Aug 22, 2004 1:00 pm |
  |
i am running sentinel 2.0.1 and nuke 7.1 i am using a linux red hat server (zeptohost.com)
I already have dont the buffering thing because i got the errors before and that seemed to fix it but it isnt working this time?
Sentinel works fine i just cant get into the forum admin
My site is www.ofpoptimized.com you will get the errors if you go onto the forums.
If i remove the "include" line from mainfile.php it works fine but sentinel doesnt work atall
thanx
ash |
_________________ Ash
Ofpoptimized.com |
|
   |
 |
Darrell3831
Captain


Joined: Jan 05, 2004
Posts: 425
|
Posted:
Sun Aug 22, 2004 3:01 pm |
  |
Hi ash_k_89,
You have your forum set for registered members only so I was not able to reproduce the error you mentioned.
If your sure you have it installed right, and that it's working correctly. (i.e. You done some tests and sentinel is blocking hack attempts) Then I have one last suggestion.
I noticed your site seems to have a lot of something, be it javascript or flash. If it's java script that may be interfering with Sentinel.
Switch to a plane jane theme and try it again.
If you can access your forum with a plain theme then it's an adverse effect of the current theme your running.
If that's the case you'd have to track down which piece of javascript is interfering with Sentinel.
Let us know what you find out.
Good Luck,
Darrell |
_________________ http://www.psy-center.com |
|
    |
 |
ash_k_89
Nuke Soldier


Joined: Aug 18, 2004
Posts: 11
|
Posted:
Mon Aug 23, 2004 2:03 am |
  |
OK thanx for your help i have fixed the problem, i noticed in the readme file for sentinel that there was a line to put in my javascript.php file in includes and this seems to have fixed the problem.
Thanx for all ur help |
_________________ Ash
Ofpoptimized.com |
|
   |
 |
Darrell3831
Captain


Joined: Jan 05, 2004
Posts: 425
|
Posted:
Mon Aug 23, 2004 5:24 am |
  |
|
    |
 |
|
|