Author |
Message |
sasan4u
New Member


Joined: Sep 10, 2004
Posts: 21
|
Posted:
Sat Sep 18, 2004 3:41 am |
|
I read http://www.ravenphpscripts.com/faq-2-Nuke+.html-+Troubleshooting#17
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 |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sat Sep 18, 2004 5:45 am |
|
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 |
|
|
 |
sasan4u

|
Posted:
Sat Sep 18, 2004 7:05 am |
|
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

|
Posted:
Sat Sep 18, 2004 10:24 am |
|
Try one or the other not both and see if that works. |
|
|
|
 |
sasan4u

|
Posted:
Sat Sep 18, 2004 3:00 pm |
|
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
|
Posted:
Sat Sep 18, 2004 3:21 pm |
|
sasan4u wrote: | I creat file 1.htaccess with |
The file has to be named .htaccess not 1.htaccess. Was that just a typo? |
|
|
|
 |
sasan4u

|
Posted:
Sat Sep 18, 2004 11:40 pm |
|
.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, webmaster@webdas.com 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 www.webdas.com Port 80 |
|
|
|
 |
Raven

|
Posted:
Sun Sep 19, 2004 12:16 am |
|
That's a whole different story and you should have told us that before
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

|
Posted:
Sun Sep 19, 2004 1:08 am |
|
dear raven
when I delete .htaccess file I have not 500 error
I send you a pm |
|
|
|
 |
Raven

|
Posted:
Sun Sep 19, 2004 9:52 am |
|
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

|
Posted:
Sun Sep 19, 2004 12:14 pm |
|
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

|
Posted:
Sun Sep 19, 2004 1:22 pm |
|
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

|
Posted:
Mon Sep 20, 2004 12:07 am |
|
In my host is empty .htaccess files in ever folders
I delete these ? |
|
|
|
 |
Raven

|
Posted:
Mon Sep 20, 2004 4:21 am |
|
No. They don't hurt anything. Have you asked your host if they allow .htaccess overrides? |
|
|
|
 |
sasan4u

|
Posted:
Mon Sep 27, 2004 7:08 am |
|
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

|
Posted:
Mon Sep 27, 2004 7:15 am |
|
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.
http://www.ravenphpscripts.com/postt2950.html |
|
|
|
 |
|