Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 10,051 through 10,075 (of 14,219 total)
  • @robin-w

    Moderator

    this topic describes the issue,

    http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php

    but as it is pointing to a bbpress file, and we know that bbpress is not the issue (that code is working in many thousands of installations!

    which tends to suggest option 7 in the link, that some other error is causing this.

    Not sure I can help further !

    @robin-w

    Moderator

    if it works with twentyfifteen and bbpress, but not your theme and bbpress, then it is a conflict between the two and down to your theme.

    do you get any other messages after this one?

    In reply to: Forum Post Count

    @robin-w

    Moderator

    ok, to fix would involve some deep database checking. How desperate are you for this to be correct?

    @robin-w

    Moderator

    ok, so with a site that has the twentyfifteen theme and bbpress as the only plugin, this happens?

    @robin-w

    Moderator

    ok, I’d deactivate it, delete it (you won’t lose any data) and then upload 2.5.9 from the plugins site ie

    dashboard>plugins>install new and search for bbpress.

    then come back

    @robin-w

    Moderator

    in which case I go to their support forum, as I’ve no idea what version or combination of versions they are using, and whether their version is the issue

    In reply to: Forum Post Count

    @robin-w

    Moderator

    ok, I’d run them one at a time in the order they are in

    @robin-w

    Moderator

    suggest you reinstall bbpress, it may have errored on installing

    @robin-w

    Moderator

    hmmm…

    not really – normally this is caused by white space in a file – you haven’t edited any files have you?

    Suggest you deactivate, delete and re-install bbpress plugin. You will not lose any data or settings.

    In reply to: Freshness URLs Broken

    @robin-w

    Moderator

    glad that I can help ! do come back and let us know how you get on – plenty of people search for similar issues, so these post help others

    In reply to: Forum Post Count

    @robin-w

    Moderator

    so is your forum post count nil, or just the wrong number?

    I’d expect you to only run those you need

    In reply to: force strong passwords

    @robin-w

    Moderator

    closing as duplicate topic

    In reply to: Forum Post Count

    @robin-w

    Moderator

    you should be able to fix this using

    dashboard>tools>forums>repair forums

    and run one at a time

    @robin-w

    Moderator

    ok, that’s a buddypress function I think – try their support forum

    https://buddypress.org/support/

    @robin-w

    Moderator

    Apologies, I read your post too fast and missed what you had already done.

    whereabouts are users changing their passwords – is this just in edit profile or is it elsewhere?

    In reply to: This Forum Is Empty

    @robin-w

    Moderator

    No problem, and thanks for your kind words – glad I was able to help !

    @robin-w

    Moderator

    As author of ‘private groups’ this is quite do-able but would take a bunch of code. The problem is that whilst for those that want this it is seen as critical, the actual demand for this functionality is quite low.

    The core code is really quite straightforward – you just check what permissions a user has on a forum. and go from there.

    Like most plugins, writing the ‘settings page’ is what takes the time – probably a weeks worth of evenings to do this.

    I might get round to this at some stage, but my time has to fit around paid IT work !

    In reply to: This Forum Is Empty

    @robin-w

    Moderator

    it is in

    bbpress\includes\forums\template.php line 2021

    But the easiest way to change it is to put this into your functions file :

    function change_translate_text( $translated_text ) {
    	$text = 'This forum is empty.' ;
    	if ( $translated_text == $text ) $translated_text = 'new text here' ;
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    
    

    and change ‘new text here’ to the wording you want

    @robin-w

    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    @robin-w

    Moderator

    ok, so you don’t have private groups and the error is not the same error as the issue above apart from the first 9 words which are generic 🙂

    sorry this is a totally different issue.

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    probably several plugins, and lots of articles – this is really a wordpress thing

    for instance

    https://wordpress.org/plugins/force-strong-passwords/or

    http://www.wpbeginner.com/plugins/how-to-force-strong-password-on-users-in-wordpress/

    In reply to: CSS (new user)

    @robin-w

    Moderator

    bbp-style pack lets you style bbpress

    https://wordpress.org/plugins/bbp-style-pack/

    In reply to: Freshness URLs Broken

    @robin-w

    Moderator

    ok, I’ve had a quick look.

    The page number is set by this line

    $reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );

    I suspect that bbp_get_replies_per_page is not the issue, but that bbp_get_reply_position is.

    so this function is as follows :

    function bbp_get_reply_position( $reply_id = 0, $topic_id = 0 ) {
    
    		// Get required data
    		$reply_id       = bbp_get_reply_id( $reply_id );
    		$reply_position = get_post_field( 'menu_order', $reply_id );
    
    		// Reply doesn't have a position so get the raw value
    		if ( empty( $reply_position ) ) {
    			$topic_id = !empty( $topic_id ) ? bbp_get_topic_id( $topic_id ) : bbp_get_reply_topic_id( $reply_id );
    
    			// Post is not the topic
    			if ( $reply_id !== $topic_id ) {
    				$reply_position = bbp_get_reply_position_raw( $reply_id, $topic_id );
    
    				// Update the reply position in the posts table so we'll never have
    				// to hit the DB again.
    				if ( !empty( $reply_position ) ) {
    					bbp_update_reply_position( $reply_id, $reply_position );
    				}
    
    			// Topic's position is always 0
    			} else {
    				$reply_position = 0;
    			}
    		}
    
    		// Bump the position by one if the lead topic is in the replies loop
    		if ( ! bbp_show_lead_topic() )
    			$reply_position++;
    
    		return (int) apply_filters( 'bbp_get_reply_position', $reply_position, $reply_id, $topic_id );
    	}
    

    so given that you seem fine with accessing the database, and hoping you are fine with editing files and uploading these, let’s see what value are being set in this function. I presume you can edit files, and you say you have a ‘safe’ area in which to play.

    so lets start with

    $reply_position = get_post_field( 'menu_order', $reply_id );
    

    which is set on line 1742 of includes/replies/template.php

    Now we can filter and play with this function, but it is probably easier just to edit the file whilst we test – just take a copy of it before so you can restore at the end.

    So I’d add a line after 1742 saying

    update_option( 'encide', $reply_position ) ;
    

    save and upload, and then display a page which works and one that doesn’t and each time you can access wp_options in the database and look for the encide option name.

    That should tell you what it is set to.

    I’d suspect that it is not correct for the faulty ones, and is returning 1 or 0 – hence no pagination.

    Come back and let me know what it says, and we can progress from there.

    @robin-w

    Moderator

    great glad Robkk helped !

Viewing 25 replies - 10,051 through 10,075 (of 14,219 total)