Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error on registration page

  • Avatar of Wendy Cockcroft
    Wendy Cockcroft
    Member

    @wendy-cockcroft

    This is the message I get on the registration page at http://www.snazzymob.com.

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-content/themes/Snazzy/functions.php:7) in /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-includes/pluggable.php on line 866

    Why is this happening?

    Just tried to log in:

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-content/themes/Snazzy/functions.php:3) in /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-login.php on line 349

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-content/themes/Snazzy/functions.php:3) in /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-login.php on line 361

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-content/themes/Snazzy/functions.php:3) in /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-includes/pluggable.php on line 669

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-content/themes/Snazzy/functions.php:3) in /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-includes/pluggable.php on line 670

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-content/themes/Snazzy/functions.php:3) in /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-includes/pluggable.php on line 671

    Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-content/themes/Snazzy/functions.php:3) in /hermes/bosweb/web031/b310/ipg.snazzymobcom/wp-includes/pluggable.php on line 866

    What is wrong?

    [EDIT - Do not post large blocks of code here - wrecks layout and code is incomplete. I have moved what I have been able to retrieve to http://pastebin.com/1b66HuPN --- mercime]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Avatar of Wendy Cockcroft
    Wendy Cockcroft
    Member

    @wendy-cockcroft

    A little help, please? I followed all the instructions, now I can’t even log in!

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    Please note what I posted above re not posting large blocks of code here.

    The problem is with your Snazzy theme. Rename snazzy theme folder in server via FTP/cPanel/FileManager, etc. from wp-content/themes/snazzy to wp-content/themes/snazzy-xxx to gain access to your wp-admin

    Avatar of Wendy Cockcroft
    Wendy Cockcroft
    Member

    @wendy-cockcroft

    Thanks, Mercime. After that, what can I do to fix whatever is causing the problems? So far I’ve found BuddyPress to be a profoundly frustrating experience because the instructions for customizing the theme are too vague to follow correctly.

    All I want to do is add a header banner that doesn’t repeat and make sure the registration page works as intended. How can I do that? When I followed the instructions given me, I ended up with a mess.

    I’ve had to revert to the default for now. Is it really that hard to a) add a new header image at 401 x 80px and set it to *not* repeat?

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Wendy BuddyPress customization isn’t for beginners you do need a degree of dev experience definitely a basic understanding of PHP / CSS/ and markup.

    In reference to the header I thought that was sorted out in the other thread? In which case it oughtn’t to be raised again as it’s a bit misleading, if however it is still an issue post back on the other thread.

    I noted that your child custom themes functions file had the BP enqueue function along with it’s wrapper function:

    `<?php
    if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {}
    endif;
    ?>
    `

    That doesn’t look right, I would remove that unless the child theme actually handles loading styles somewhere else as this will prevent BP loading any styles – which may be the intention, mercime may be able to confirm that this is correct.

    As for the headers sent error this may be due to having white space in the file after php tags are closed, that is after the final ‘?>’ you might have an actual carriage return which acts as actual parsed data if that’s so it needs to be backspaced out.

    Avatar of Wendy Cockcroft
    Wendy Cockcroft
    Member

    @wendy-cockcroft

    Thanks, Hugo, but this is what the problem is; I want to do a thing I never have a problem with anywhere except with BuddyPress and it’s a simple thing I want to do.

    Since I understood precisely ZERO amount of your post I can’t do anything with that information. This is the problem with BuddyPress: if you’re not a coder, you’re screwed.

    Is it not possible at all to give me instructions I can understand or provide me with code I can copy and paste into the appropriate files? The advice I took was from this website. I followed them to the letter. I copied and pasted the code. The website is a disaster.

    What I need is either clear instructions that I understand and can immediately implement or code that I can copy and paste. I also need to be told *where* the code needs to go and whether or not anything else needs to be in that particular file. I’m a noob. I know that. But I’m a noob that wants to learn and I can’t learn when I’m a) confused and b) frustrated.

    I have either received a) half of the instructions I needed to do this or b) the wrong instructions from the beginning.

    What I need is all the instructions, and they need to be correct, or I’ll have to look for another solution because BuddyPress is not the one for me or the website I’m working on.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    == What I need is all the instructions, and they need to be correct, or I’ll have to look for another solution because BuddyPress is not the one for me or the website I’m working on. ==

    @wendy-cockcroft we are all volunteers here trying to help others. We understand if you want to look for another solution which requires less technical know-how or something which does not require you to have the willingness to learn new skills. Check out WP Symposium or Mingle plugins.

    Avatar of Wendy Cockcroft
    Wendy Cockcroft
    Member

    @wendy-cockcroft

    Mercime, I’ve got the willingness to learn new skills but I need to receive clear instructions. To date, I’ve had instructions that have not worked when I put them into practice. It doesn’t help when I’m receiving them in terms that I don’t understand. If you want to lock out noobs, please say so and I’ll go elsewhere.

    I’m not asking for much. Again, all I want is to be able to insert a logo of my choice at the dimensions I specify without it repeating. I’d also like to make my child theme work as expected without either locking me out or preventing new registrations.

    To date, the instructions I’ve received here on the forum have not facilitated that. When I thought the problem was resolved I marked the thread resolved. A day or so later, I got header errors and couldn’t get into the site until you (correctly) told me that my child theme was the problem and I’d have to rename it. Which I’ve done. And I’m grateful to be able to get back in. Thank you.

    Now I need to know if it’s possible at all to make a BuddyPress child theme that works properly with a header image of my choice or am I stuck with the massive dimensions specified by the default theme?

    If so, please tell me, in terms I understand, how to do it.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    I did cover the image header question in the other thread – no I didn’t copy the code in to the thread as – in all honesty – stating “copy this ‘named’ function” ought to be sufficient to get started with.

    I’ll now copy the function I referenced originally – you need to copy this into your child theme functions file, this function will alert BP not to run it’s original version and allows you to manipulate the rulesets that are created for custom headers.

    `
    function bp_dtheme_header_style() {
    global $post;

    $header_image = ”;

    if ( is_singular() && current_theme_supports( ‘post-thumbnails’ ) && has_post_thumbnail( $post->ID ) ) {
    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘post-thumbnail’ );

    // $src, $width, $height
    if ( !empty( $image ) && $image[1] >= HEADER_IMAGE_WIDTH )
    $header_image = $image[0];

    } else {
    $header_image = get_header_image();
    }
    ?>

    #header { background-image: url(); }

    #header h1, #header #desc { display: none; }

    #header h1 a, #desc { color:#; }

    <?php
    }
    `

    Now in the other thread I explained how to adjust the image dimensions by setting the define(‘HEADER_IMAGE_WIDTH’, 400) that will be displayed on the dashboard settings page and that represent the sizes the image will size and crop to, so you should still have that aspect in place.

    If you leave the BP default layout unchanged then the header element width is likely wider than your background image ( the header width is stated in the stylesheet, the background image is set from the embedded styles in the code above) and that background image will repeat – but we went over that on the other thread, with the code above you can now add the required properties to prevent that.

    Now code does need to be copied carefully and any stray code that may be causing issues might still affect things. Headers already sent errors have a number of reasons and are not necessarily easy for us to diagnose, I explained one possible cause but only you can determine if that is a reason.

    On this issue of instruction; as I have said and now mercime this is a volunteer support forum, we are not obliged to provide absolute instruction we attempt to help and guide, also when one is a web dev professional there will be a level of expertise expected in general terms regarding coding experience. You are attempting to customise buddypress past what it offers in the default so you must expect certain aspects of doing that to be less than utterly idiot proof and there are aspects of BP that many of us struggle with.

    Avatar of Wendy Cockcroft
    Wendy Cockcroft
    Member

    @wendy-cockcroft

    Thanks again, Hugo.

    Okay, I copied and pasted the code you gave me into the functions.php file and got the header errors again with and without
    `<?php
    if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {}
    endif;
    ?>`

    Since this isn’t going to get resolved I’m going to junk BuddyPress and look for an alternative. It’s too difficult to work with. Sorry for wasting your time.

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.