Skip to:
Content
Pages
Categories
Search
Top
Bottom

Non-numeric value and header errors


  • jrcd92
    Participant

    @jrcd92

    Hi there,

    I’m using Buddypress with Jupiter theme, and am getting a couple of errors both on the top of my dashboard, and also whenever I try to preview a page or post (I can’t see the preview unless I go back to the dashboard and try again).

    They’re a variation on a theme, and it’s generally one or more of the below:

    Warning: A non-numeric value encountered in /srv/users/serverpilot/apps/inj/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-functions.php on line 207

    Warning: Cannot modify header information – headers already sent by (output started at /srv/users/serverpilot/apps/inj/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-functions.php:207) in /srv/users/serverpilot/apps/inj/public/wp-admin/post.php on line 197

    Warning: Cannot modify header information – headers already sent by (output started at /srv/users/serverpilot/apps/inj/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-functions.php:207) in /srv/users/serverpilot/apps/inj/public/wp-includes/pluggable.php on line 1210

    Any ideas on a fix?

    Thanks in advance,

    Jack

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

  • r-a-y
    Keymaster

    @r-a-y

    Can you try adding the following code snippet to your theme’s functions.php?

    add_action( 'wp', function() {
    	bp_delete_option( '_bp_record_blogs_offset' );
    } );

    Visit your homepage once. Then remove the snippet and see if you keep getting the notices.


    jrcd92
    Participant

    @jrcd92

    Yeah I’ve had a go – that doesn’t seem to have fixed it. I’m now getting the below (couldn’t get the start as it was covered by the dashboard sidebar…

    ue encountered in /srv/users/serverpilot/apps/inj/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-functions.php on line 207

    Warning: Cannot modify header information – headers already sent by (output started at /srv/users/serverpilot/apps/inj/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-functions.php:207) in /srv/users/serverpilot/apps/inj/public/wp-includes/option.php on line 837

    Warning: Cannot modify header information – headers already sent by (output started at /srv/users/serverpilot/apps/inj/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-functions.php:207) in /srv/users/serverpilot/apps/inj/public/wp-includes/option.php on line 838


    r-a-y
    Keymaster

    @r-a-y

    Did you follow my instructions by visiting your homepage after applying the snippet?

    Does this notice only show up in the admin dashboard?


    jrcd92
    Participant

    @jrcd92

    Hi!

    I did, yeah. It only shows up on admin dashboard and also when submitting something (e.g. publishing a post, previewing a page, activating a plugin), at which point I generally have to go head to /wp-admin and navigate back to where I was.


    r-a-y
    Keymaster

    @r-a-y

    Can you ensure that line 207 in bp-blogs/bp-blogs-functions.php matches the following?
    https://buddypress.trac.wordpress.org/browser/tags/2.9.1/src/bp-blogs/bp-blogs-functions.php#L207

    If it doesn’t, can you let me know what line 207 is on your version of BuddyPress?


    jrcd92
    Participant

    @jrcd92

    Hi r-a-y,

    It does – this is the section of code there.

    // See if we need to do this again
    if ( is_multisite() && empty( $r[‘blog_ids’] ) ) {
    $sql[‘offset’] = $wpdb->prepare( ” OFFSET %d”, $r[‘limit’] + $r[‘offset’] );

    Still no luck!

    Thanks again,

    Jack


    danielfox123
    Participant

    @danielfox123

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar