@mercime @hnla @modemlooper Sorry I meant to post this in Creating and Extending. Could one of you move it there please? Thank you!
Sorry I forgot to mention I have tested it to work from WP 3.2.1 BP 1.5.1 through WP 3.5.1 BP 1.7 beta1 As long as your within this range it should work for you! Thanks!
@bphelp moved to Creating and Extending Forum per request
Hi @bphelp,
first I want to thank you for your plugin
.
I have one problem with it and I think it belongs to my theme and my not existing php-skills
. Perhaps you can help me? I was searching for a solution the last two days, but without success. So I will try my luck here.
I tried to activate the plugin over wordpress and in a second step I copied the needed code to my child themes functions.php, but I always get the following error:
Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/themes/theme/design.php:2) in …/wp-includes/pluggable.php on line 876
I found some solutions for such errors, but nothing works for me.
Many thanks in advance
Greetings
@halfdan87 Sounds like you may have introduced some white-space when you copied the code. Make sure there is no white-space lines before or after the opening and closing PHP tags.
Good morning @bphelp,
thanks four your reply
. I checked if there is some white-space (you mean in the design.php am I right?). Here is the code of the design.php – I think the problem is, that the design.php starts with the following code:
<!doctype html>
<?php global $theLayout, $theHeader, $themePath, $theFooter, $body_color, $header_color, $footer_color;?>
<!–[if lt IE 7 ]> <html lang=”en” class=”no-js ie6″> <![endif]–>
<!–[if IE 7 ]> <html lang=”en” class=”no-js ie7″> <![endif]–>
<!–[if IE 8 ]> <html lang=”en” class=”no-js ie8″> <![endif]–>
<!–[if IE 9 ]> <html lang=”en” class=”no-js ie9″> <![endif]–>
<!–[if (gt IE 9)|!(IE)]><!–> <html class=”no-js” <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<?php get_header(‘default’);?>
</head>
Do you think that’s the problem? If yes, do I have an chance to get a workaround with this?
Thank you
@halfdan87 I think your issue would be better suited by starting a new thread. I am fairly new at this myself and being that your issue seems to be more of a custom theme issue than to do with the plugin then it isn’t appropriate for this thread. In general I just think you would get more help by opening your own thread to see if more experienced folk can help sort your issue.
I updated this so if your using an older version download, upload, and activate it. It fixes a bug but I don’t feel my skills or the plugin is polished enough yet to submit it to the WP Repo. Still works decent though.
https://github.com/bphelp/private_community_for_bp