[Plugin: PHPFreeChat] Error when saving settings
-
Warning: Cannot modify header information – headers already sent by (output started at blablabla\wp-admin\includes\plugin.php:1146) in blablabla\www\wp-includes\pluggable.php on line 865
-
This is a common wordpress error where some extra line or space is sent between header information.
I havent been able to track it down as of yet with everyone but 3 of the people who had it, it was an extra line at the end of phpfreechat.php, while 4 of those others removing that extra line didnt matter.
However in comparison, 30 people using it don’t have that error at all, so I am at a loss in trying to debug it.
I’m sure it has to do with how i’m using the new 2.8 register_settings.
– Phil (Frumph)
Hello,
I have the exact same error. But the chat works with the default settings. The error happens only when clicking to save the changes. I checked for the extra line at the end of phpfreechat.php and there isn’t any.
So I installed a brand new WP 2.8.4 on another domain thinking to clear any other possibilities of conflicts and same error occurs when trying to save setings for phpfreechat.
Line 1146 in plugin.php reads:
echo “<input type=’hidden’ name=’option_page’ value='” . esc_attr($option_group) . “‘ />”;… and line 865 of pluggable.php reads:
header(“Location: $location”);
Again this is a brand new installation of WP with default settings and no other plugins at all.
Any help would be greatly appreciated.. 🙂
-mexfx
I don’t get the error with my theme, have you tried with a default theme or different theme? than we can narrow it down to either the wp-config.php or your theme. (no idea why theme would have anything to do with it /shrug)
Yes, the new WP installation has nothing else than the default theme. I wanted to narrow the possibilities by installing WP clean with default settings and no other plugins.
I tested both default themes: WordPress Classic 1.5 by Dave Shea and WordPress Default 1.6 by Michael Heilemann. I get the error on both. This is strange because you and others don’t get the error. Is your WP build 2.8.4 too?
Thank you..
One of them is, the other one is rare- svn build, neither of them do it, .. maybe it’s how I setup my php.ini ? not sure, I still havent been able to find that bug.
I have this problem too with 2.8.4 and can’t seem to track down the problem. :/
I can’t figure it out, but I found out that even though the error occurs when saving the settings for phpfreechat, if you go back to the chat page and type the /rehash command, the chat will show the new settings… so it looks like the settings are saved.. /shrug. Oh well, as long as the chat works I’ll wait for the bug fix.
It *does* save the settings, but somewhere along the lines double-headers are being sent.
So if anyone else has any idea’s on how to track that down =)
I have the same warning as described before. There is also other annoying problem.. When opening the chat page, it starts chat and also show all sub pages in menu.
What i try to describe is that there is pages with hierarchy and all them are shown, when chat is selected.
Sounds like the menu CSS you’re using for your menubar might require a little adjusting CSS wise if that’s how it’s working.
Give me a link to your site so I can check it out?
Sorry Frumph but cannot do that. It’s protected intranet site only for few members.
I am quite a new with all this and only what i found was
@import url(img/dropdown.css) in stylesheet.cssOne other thing there is.. how can you clear all chat history?
The code I made for clearing the text cache and the mysql cache is made, however the plugin is no longer available on the wordpress repository.
If you wish to clear the text cache just delete it from the plugins/phpfreechat/data/private/logs/ and /cache directories, if you want to clear the mysql cache, delete the database since you do not have those commands.
You can request further assistance with having those commands made for you at http://phpfreechat.net/
This error is plaguing me on a couple different installs. It makes it impossible for me to edit both comments and pages on the site, get the error after attempting to send (save/update).
I’m not a programmer so debugging isn’t really something I can get very far with on this issue. 🙁 Stuck, hoping for a fix with the next upgrade. Not even something Matt M. can help with this weekend at WordCamp. 😉
I can delete and then rewrite a new comment or page – work around
The Current version you are using is using ozh’s way of doing an admin screen.
The new version of WordPress PHPFreeChat that I have on my server here I reverted to the old style of doing an admin options screen (which doesnt have that header bug).
Unfortunately due to a disagreement with the theme repository guys I have decided to remove WordPress PHPFreeChat from the repository.
I’ll have it available on my personal blog later tonight soon as the testers come back with an a-ok on it.
– Phil (Frumph)
The topic ‘[Plugin: PHPFreeChat] Error when saving settings’ is closed to new replies.