PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

Thanks so much, Raven! I'll try and let u know as soon as possible! Wink
View user's profile Send private message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

Ok. "Enable GZip Compression" is set to NO. I'll follow the other advice...
View user's profile Send private message
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 .
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Morpheus,

The file name is .htaccess (note the DOT) not htaccess. You need to rename the file on your server.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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,
Only registered users can see links on this board!
Get registered or login to the forums!
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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
morpheus_75
Involved
Involved


Joined: Oct 07, 2003
Posts: 302

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Or a more flexible host such as Raven Web Hosting!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

If you are still having these issues, try adding this as the first line in your .htaccess file
Options +FollowSymlinks
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum