Author |
Message |
morpheus_75
Involved


Joined: Oct 07, 2003
Posts: 302
|
Posted:
Mon Nov 03, 2003 4:05 am |
|
A user told me that when he enters the forum he gets the following error at the beginning of the page and just under the logo:
------------------------------------------------------------
Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\webs\whatisthematrixit\header.php:32) in D:\Inetpub\webs\whatisthematrixit\includes\sessions.php on line 251
Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\webs\whatisthematrixit\header.php:32) in D:\Inetpub\webs\whatisthematrixit\includes\sessions.php on line 252
------------------------------------------------------------
He uses a browser Mozilla Firebird... anyone knows why? Can this be avoided? |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Nov 03, 2003 5:18 am |
|
This is usually because you either have gzip compression set to on/yes in your forum configuration and/or you do not have output_buffering set to on in your php.ini/.htaccess file. Start by making sure gzip is turned off in Forum Configuration. If that does not resolve it then try setting output_buffering to on. Search the forum for output_buffering for more information. |
|
|
|
 |
morpheus_75

|
Posted:
Mon Nov 03, 2003 5:32 am |
|
Thanks so much, Raven! I'll try and let u know as soon as possible!  |
|
|
|
 |
morpheus_75

|
Posted:
Mon Nov 03, 2003 5:34 am |
|
Ok. "Enable GZip Compression" is set to NO. I'll follow the other advice... |
|
|
|
 |
morpheus_75

|
Posted:
Mon Nov 03, 2003 5:40 am |
|
I found this:
*******
In your .htaccess file add this line
PHP_FLAG output_buffering On
or if you have access to the php.ini file
output_buffering = On
Then restart the server. Also, make sure that gzip compression is set to OFF in Forum Configuration.
********
1) How can i edit the .htaccess file?
2) Where is the php.ini file located and how can I edit it?
Thanks!  |
|
|
|
 |
Raven

|
Posted:
Mon Nov 03, 2003 5:44 am |
|
php.ini is on the host server, so unless you are hosting your own site you will not have access to it.
Create a file called .htaccess and add that line. Then ftp it to your root nuke directory (where config.php is). If you do not have an editor that can create a file named .htaccess, then name it htaccess.txt, ftp it to your site, and then use your ftp client to rename it to .htaccess . |
|
|
|
 |
morpheus_75

|
Posted:
Mon Nov 03, 2003 6:25 am |
|
I found the file u're talking about in the admin folder. Is it right? I edited this file with note pad and found "deny from all" written inside. Where shall I add the line you suggested me?  |
|
|
|
 |
Raven

|
Posted:
Mon Nov 03, 2003 6:35 am |
|
No, that is NOT right. Is that what I told you to do ? You must add that line to .htaccess and place it in your root nuke folder, the same folder where your config.php file is located. |
|
|
|
 |
morpheus_75

|
Posted:
Mon Nov 03, 2003 6:54 am |
|
Ok ok done! I'll let u know if the mentioned user will have the same problem even after this change...  |
|
|
|
 |
morpheus_75

|
Posted:
Wed Nov 05, 2003 3:17 am |
|
morpheus_75 wrote: | Ok ok done! I'll let u know if the mentioned user will have the same problem even after this change... |
Does this fix work for Opera brpwser too? And if i change to Unix hosting, shall I have these problems? tnx in advance Raven!  |
|
|
|
 |
Raven

|
Posted:
Wed Nov 05, 2003 5:09 am |
|
The fix is not for a browser, it's for the server, and should apply to all browsers. And, .htaccess only works with Apache, regardless of the OS. |
|
|
|
 |
morpheus_75

|
Posted:
Wed Nov 05, 2003 5:48 am |
|
Raven wrote: | The fix is not for a browser, it's for the server, and should apply to all browsers. And, .htaccess only works with Apache, regardless of the OS. |
So if i change to unix it's the same... |
|
|
|
 |
Raven

|
Posted:
Wed Nov 05, 2003 5:54 am |
|
Actually, I meant the php server. So, if your host sets php up the same way under both, then those settings are required under both. |
|
|
|
 |
morpheus_75

|
Posted:
Thu Nov 20, 2003 10:19 am |
|
Code:Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\webs\whatisthematrixit\header.php:32) in D:\Inetpub\webs\whatisthematrixit\includes\sessions.php on line 251
Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\webs\whatisthematrixit\header.php:32) in D:\Inetpub\webs\whatisthematrixit\includes\sessions.php on line 252
|
Same as before. But now I am switched to linux...
WHat shall I do? |
|
|
|
 |
Raven

|
Posted:
Thu Nov 20, 2003 10:33 am |
|
Have you added the .htaccess file as I explained above to the root nuke folder? If you have, then run this script to verify that output_buffering is onIf it is on and you still have the problem then get rid of Opera. |
|
|
|
 |
Raven

|
Posted:
Thu Nov 20, 2003 10:42 am |
|
Morpheus,
The file name is .htaccess (note the DOT) not htaccess. You need to rename the file on your server. |
|
|
|
 |
morpheus_75

|
Posted:
Thu Nov 20, 2003 4:53 pm |
|
Raven wrote: | Morpheus,
The file name is .htaccess (note the DOT) not htaccess. You need to rename the file on your server. |
you're right....
BUT... after adding the dot, i got this error:
Code:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, postmaster@whatisthematrix.it 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.
|
For this reason I temporarily deleted the .htaccess file...
Any idea on this?  |
|
|
|
 |
Raven

|
Posted:
Thu Nov 20, 2003 5:34 pm |
|
First of all, make sure that you have this all spelled correctly:
PHP_FLAG output_buffering On
If that is ok, then try adding this line ahead of it
AllowOverride All
or
AllowOverride Options
If that works, then take it up with your Host. They are being too restrictive. If that doesn't work, it is still a hosting setup issue. |
|
|
|
 |
morpheus_75

|
Posted:
Fri Nov 21, 2003 3:37 pm |
|
Raven wrote: | If that doesn't work, it is still a hosting setup issue. |
Yes, u're right. I tried what u suggested, but it didn't work. What shall I do? |
|
|
|
 |
Raven

|
Posted:
Fri Nov 21, 2003 4:47 pm |
|
If you can't get your host to modify the php.ini for output buffering and if you can't use .htaccess, then your host has Apache configured incorrectly or is intentionally denying override access. This will have to be resolved by them. Otherwise change hosts. |
|
|
|
 |
morpheus_75

|
Posted:
Sat Nov 22, 2003 4:59 am |
|
Raven wrote: | Have you added the .htaccess file as I explained above to the root nuke folder? If you have, then run this script to verify that output_buffering is onIf it is on and you still have the problem then get rid of Opera. |
Where should i run this script and how? Tnx!
EDIT
output_buffering 4096 4096
This is what i get... |
|
|
|
 |
Raven

|
Posted:
Sat Nov 22, 2003 11:02 am |
|
If you are not receiving this in other browsers then it would indicate a Mozilla idiosyncrasy, imo. Maybe not, but that setting usually fixes it. I still would inquire of your host why they don't allow you to override that on a local site basis in.htaccess. Until you actually get the setting changed to On, instead of 4096, we won't know for sure. |
|
|
|
 |
morpheus_75

|
Posted:
Mon Nov 24, 2003 5:31 am |
|
Raven wrote: | Until you actually get the setting changed to On, instead of 4096, we won't know for sure. |
Unfortunately I was told I cannot modify php settings... uff!
I need a dedicated server uff...  |
|
|
|
 |
Raven

|
Posted:
Mon Nov 24, 2003 5:32 am |
|
Or a more flexible host such as Raven Web Hosting! |
|
|
|
 |
Raven

|
Posted:
Thu Nov 27, 2003 10:22 pm |
|
If you are still having these issues, try adding this as the first line in your .htaccess file
Options +FollowSymlinks |
|
|
|
 |
|