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(tm)
Author Message
sasan4u
New Member
New Member



Joined: Sep 10, 2004
Posts: 21

PostPosted: Sat Sep 18, 2004 3:41 am Reply with quote

I read [ Only registered users can see links on this board! Get registered or login! ]

I creat file 1.htaccess with
Code:
PHP_FLAG output_buffering On

and upload in same place mainfile.php is located. but I have this error yet

Warning: Cannot modify header information - headers already sent by (output started at /home/webdasc/public_html/config.php:119) in /home/webdasc/public_html/admin/modules/sentinel.php on line 961

I add
Code:
ini_set("output_buffering","1");


to mainfile.php this way
Code:
<?php

ini_set("output_buffering","1");
include("includes/sentinel.php");


but i have same error ,plz help
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sat Sep 18, 2004 5:45 am Reply with quote

You could try this:
php_value "output_buffering" "32000"
in the htaccess instead of:
php_flag output_buffering on

IF that doesn't work you might try adding this to the header.php
include("themes/$ThemeSel/theme.php");
ob_start(); // add this line
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";


and this in footer.php
echo "</body>\n"
."</html>";
ob_end_flush(); // Add This line as shown
die();

This will probably work the best if you can't make output buffer changes to htaccess.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
sasan4u







PostPosted: Sat Sep 18, 2004 7:05 am Reply with quote

thanks of your guide
I test with htaccess file this way

php_value "output_buffering" "32000"
PHP_FLAG output_buffering On

and this way

PHP_FLAG output_buffering On
php_value "output_buffering" "32000"

but i have same error

also I add
ob_start();

between 2 lines of header.php
include("themes/$ThemeSel/theme.php");

echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";

& add
ob_end_flush();
between lines of footer.php

echo "</body>\n"
."</html>";

die();

but i have same error ,plz help me
I test sentinel on nuke7.5
 
sixonetonoffun







PostPosted: Sat Sep 18, 2004 10:24 am Reply with quote

Try one or the other not both and see if that works.
 
sasan4u







PostPosted: Sat Sep 18, 2004 3:00 pm Reply with quote

I test with htaccess file when not answer
I try with header & footer code

also I test with singel line code in htaccess file 3 times

PHP_FLAG output_buffering On


php_value "output_buffering" "32000"


PHP_FLAG output_buffering On
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Sep 18, 2004 3:21 pm Reply with quote

sasan4u wrote:
I creat file 1.htaccess with

The file has to be named .htaccess not 1.htaccess. Was that just a typo?
 
View user's profile Send private message
sasan4u







PostPosted: Sat Sep 18, 2004 11:40 pm Reply with quote

.htaccess has blank line in end & start & Set permissions to 666
when I rename 1.htaccess file to .htaccess in public html folder with one of 3 line code , I have this error :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [ Only registered users can see links on this board! Get registered or login! ] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.31 Server at [ Only registered users can see links on this board! Get registered or login! ] Port 80
 
Raven







PostPosted: Sun Sep 19, 2004 12:16 am Reply with quote

That's a whole different story and you should have told us that before Rolling Eyes

Anyway, Try adding this as your first statement to your .htaccess file. Only add one at a time, not both.

AllowOverride Options
or
AllowOverride All

If it allows that and doesn't return a 500 error, then add the
PHP_FLAG output_buffering On
line after that.
 
sasan4u







PostPosted: Sun Sep 19, 2004 1:08 am Reply with quote

dear raven
when I delete .htaccess file I have not 500 error Bang Head
I send you a pm
 
Raven







PostPosted: Sun Sep 19, 2004 9:52 am Reply with quote

Before I look further, have you tried what I suggested in my last post?

AllowOverride Options
PHP_FLAG output_buffering On

or

AllowOverride All
PHP_FLAG output_buffering On
 
sasan4u







PostPosted: Sun Sep 19, 2004 12:14 pm Reply with quote

I test with
AllowOverride Options
PHP_FLAG output_buffering On

&

AllowOverride All
PHP_FLAG output_buffering On

but I have error 500 in 2 times
 
Raven







PostPosted: Sun Sep 19, 2004 1:22 pm Reply with quote

Please check with your host and find out if they allow .htaccess overrides. Not all hosts do although most do. Let's resolve the obvious before we try to resolve the rest.
 
sasan4u







PostPosted: Mon Sep 20, 2004 12:07 am Reply with quote

In my host is empty .htaccess files in ever folders
I delete these ?
 
Raven







PostPosted: Mon Sep 20, 2004 4:21 am Reply with quote

No. They don't hurt anything. Have you asked your host if they allow .htaccess overrides?
 
sasan4u







PostPosted: Mon Sep 27, 2004 7:08 am Reply with quote

thank of your guide I test with another host with httaccess file

PHP_FLAG output_buffering On

this solve my problem but when I on Admin HTTP Auth
(before I set login & pass) I go to admin.php can`t not show login pop window
this mode try to open pop up again and refresh page but can`t not show login pop window & I have a blank page

when I set httpadmin filed in nsnst_cofig tabel to 0 ,I can login god admin
I want trun on Admin HTTP Auth for protect my site but I have problem
 
Raven







PostPosted: Mon Sep 27, 2004 7:15 am Reply with quote

It is possible that your host is running PHP as CGI instead of an Apache module. Even so, you should not be getting a blank page. Refer to this post and try this method to see if that helps.
[ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

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 ©