Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8
Author Message
morpheus_75
Involved
Involved



Joined: Oct 07, 2003
Posts: 302

PostPosted: Mon Nov 03, 2003 4:05 am Reply with quote

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?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Nov 03, 2003 5:18 am Reply with quote

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.
 
View user's profile Send private message
morpheus_75







PostPosted: Mon Nov 03, 2003 5:32 am Reply with quote

Thanks so much, Raven! I'll try and let u know as soon as possible! Wink
 
morpheus_75







PostPosted: Mon Nov 03, 2003 5:34 am Reply with quote

Ok. "Enable GZip Compression" is set to NO. I'll follow the other advice...
 
morpheus_75







PostPosted: Mon Nov 03, 2003 5:40 am Reply with quote

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! Wink
 
Raven







PostPosted: Mon Nov 03, 2003 5:44 am Reply with quote

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







PostPosted: Mon Nov 03, 2003 6:25 am Reply with quote

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? Confused
 
Raven







PostPosted: Mon Nov 03, 2003 6:35 am Reply with quote

No, that is NOT right. Is that what I told you to do Laughing ? 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







PostPosted: Mon Nov 03, 2003 6:54 am Reply with quote

Crying or Very sad Ok ok done! I'll let u know if the mentioned user will have the same problem even after this change... Smile
 
morpheus_75







PostPosted: Wed Nov 05, 2003 3:17 am Reply with quote

morpheus_75 wrote:
Crying or Very sad Ok ok done! I'll let u know if the mentioned user will have the same problem even after this change... Smile


Does this fix work for Opera brpwser too? And if i change to Unix hosting, shall I have these problems? tnx in advance Raven! Wink
 
Raven







PostPosted: Wed Nov 05, 2003 5:09 am Reply with quote

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







PostPosted: Wed Nov 05, 2003 5:48 am Reply with quote

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







PostPosted: Wed Nov 05, 2003 5:54 am Reply with quote

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







PostPosted: Thu Nov 20, 2003 10:19 am Reply with quote

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







PostPosted: Thu Nov 20, 2003 10:33 am Reply with quote

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 on
Code:
<?

phpinfo();
?>
If it is on and you still have the problem then get rid of Opera.
 
Raven







PostPosted: Thu Nov 20, 2003 10:42 am Reply with quote

Morpheus,

The file name is .htaccess (note the DOT) not htaccess. You need to rename the file on your server.
 
morpheus_75







PostPosted: Thu Nov 20, 2003 4:53 pm Reply with quote

Raven wrote:
Morpheus,

The file name is .htaccess (note the DOT) not htaccess. You need to rename the file on your server.


Embarassed 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? Shocked
 
Raven







PostPosted: Thu Nov 20, 2003 5:34 pm Reply with quote

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







PostPosted: Fri Nov 21, 2003 3:37 pm Reply with quote

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







PostPosted: Fri Nov 21, 2003 4:47 pm Reply with quote

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







PostPosted: Sat Nov 22, 2003 4:59 am Reply with quote

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 on
Code:
<?

phpinfo();
?>
If it is on and you still have the problem then get rid of Opera.


Where should i run this script and how? Tnx! Wink

EDIT

output_buffering 4096 4096

This is what i get...
 
Raven







PostPosted: Sat Nov 22, 2003 11:02 am Reply with quote

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







PostPosted: Mon Nov 24, 2003 5:31 am Reply with quote

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! Sad
I need a dedicated server uff... Mad
 
Raven







PostPosted: Mon Nov 24, 2003 5:32 am Reply with quote

Or a more flexible host such as Raven Web Hosting!
 
Raven







PostPosted: Thu Nov 27, 2003 10:22 pm Reply with quote

If you are still having these issues, try adding this as the first line in your .htaccess file
Options +FollowSymlinks
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8

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 ©