Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @staxracing

    Participant

    @danbp and for everyone with the same problem, I just found the solution.
    When I first encountered the problem, I did a lot of googling and everybody kept mentioning that you don’t have to close <php> tags in the functions.php and to not leave empty lines there. If you don’t follow that, the problem I described can occur.
    Well, searched through my functions.php hunderd of times, but no luck. It still is like it’s supposed to be.

    I just checked my bp-custom.php file, and there it is.
    Changed

    <?php
    // hacks and mods will go here
    
     /* Avatar Size */
    
    define ( 'BP_AVATAR_THUMB_WIDTH', 50 );
    define ( 'BP_AVATAR_THUMB_HEIGHT', 50 );
    define ( 'BP_AVATAR_FULL_WIDTH', 200 );
    define ( 'BP_AVATAR_FULL_HEIGHT', 200 );
    ?>

    to

    <?php
    // hacks and mods will go here
    
     /* Avatar Size */
    
    define ( 'BP_AVATAR_THUMB_WIDTH', 50 );
    define ( 'BP_AVATAR_THUMB_HEIGHT', 50 );
    define ( 'BP_AVATAR_FULL_WIDTH', 200 );
    define ( 'BP_AVATAR_FULL_HEIGHT', 200 );

    and the problem disappeared. I just forgot that I did some editing in bp-custom.php

    @staxracing

    Participant

    @danbp, thank you for your answer. I am still new to BP and WP in general, so please bear with me.

    Reproducing the issue: Well, as I wrote before, if I want to crop / flip / mirror an image through WP’s image editor on the backend, I get the message above. Tested it with Firefox, Opera, Chrome and on different machines.

    PHP version is 5.6, no idea what you want to know about the server in specific (I reffer you to my 2nd sentence 😉 )

    Again, thanks for your patience

    @staxracing

    Participant

    @danbp, you’re right insofar as that I want to edit an image in the wp-admin area.
    However, as I said, as soon as I disable buddypress, the problem disappears. Hence why I thought it might be an issue with buddypress.

    @staxracing

    Participant

    Anyone?

    @staxracing

    Participant

    Nevermind, got it working.
    For anyone having the same problem, use

    function jptweak_remove_share() {
    	if ( is_buddypress() ) {
    	    remove_filter( 'the_content', 'sharing_display',19 );
    	    remove_filter( 'the_excerpt', 'sharing_display',19 );
    	    if ( class_exists( 'Jetpack_Likes' ) ) {
    	        remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    	    }
    	}
    }
    add_action( 'loop_start', 'jptweak_remove_share' );
Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar