Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 2,551 through 2,575 (of 64,454 total)
  • Author
    Search Results
  • #225768
    quilp
    Participant

    I’ll do that the next time the problem reoccurs to see if that clears the problem without deactivating bbpress.

    Was there something in the debug log that led you to this recommendation, or was it just the description of the problem of “Results Not Found” ?

    Thank you!

    Rkarel
    Participant

    Hello. I used last version WP+BP+bbPress and have many page doubles because of some bug.

    URL topic – http://hunfis.ru/groups/gornitsa/forum/topic/vesnyanka add for example – 123 and page still working http://hunfis.ru/groups/gornitsa/forum/topic/vesnyanka123 but must be 404…

    #225759
    Robin W
    Moderator
    #225755
    gillian0606
    Participant

    The bbPress forum in my LifterLMS members only course site shows up from a google search of the url, which is https://gillianriley.com

    This enables public access to all posts – very alarming for me to discover!

    Is there anything that can be done to make my forum private?

    WP 5.8.2
    bbPress 2.6.8

    #225745
    quilp
    Participant

    – is it to just one person, the same person, different people, all people accessing the site

    it affects all people using the site. Except for the home page, all other pages return the “No Results found message”

    – is the site unusable, does it freeze, or is it just if they try to do something ?

    The home page is accessible – the site does not “freeze,” but the blog page, all blog posts, the about page, the resources page and the forum simply display a “Results Not Found” message. If bbpress is deactivated, then all pages function properly again but, of course the forum does not. Reactivating bbpress restores forum functionality, but within a matter of days, the problem returns.

    #225728
    Robin W
    Moderator

    this is a temporary fix, the bbpress authors are looking at a permanent one

    if( !function_exists( 'bbpress_browser_supports_js' ) ){
    	function bbpress_browser_supports_js() {
    		echo '<script>document.body.classList.remove("no-js");</script>';
    	}
    	add_action( 'wp_footer', 'bbpress_browser_supports_js' );
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #225727
    Robin W
    Moderator

    @johnjamesjacoby

    as far as I understand, the issue is detailed in changeset 7190 – yes?

    so it is basically to hide the ‘generate passwword’ in form-user-passwords.php if the user’s browser does not support js or it is disabled.

    If so, at the moment all bbpress pages end up with a no-js class as bbpress sets ‘no-js’ as the default, which means that the quicktags do not display on the topic and reply forms as they need js but the css thinks it is no-js, and the visual editor does not work for the same reasons.

    At the moment you only test for js using the script technique in form-user-passwords.php viz

    <script type="text/javascript">
    	document.body.className = document.body.className.replace( 'no-js', 'js' );
    </script>

    so I would suggest 1 of 2 approaches

    1. putting this test in more generally so it runs on any bbpress page (as usefully suggested by @webcreations907) maybe by adding to the main function, or adding a filter in \includes\core\filters.php to run the script

    so something like :

    add_filter ('bbp_body_class' , bbp_test_js) ;
    function bbp_test_js ($classes) {
    ?>
    <script type="text/javascript">
    	document.body.className = document.body.className.replace( 'no-js', 'js' );
    </script>
    <?php
    return $classes ;
    }

    so that others could disable it

    2. changing the class to bbp-no-js should work, if you do this in the bbp_body_class function and the form-user-passwords.php and in css, then I can no reason why it would not work if that is the sole intention of this.

    #225722
    maksanse
    Participant

    Thank you Robin & John for those detailed answers !


    @robin-w
    , you were right : I was trying to modify my page with this handler… what is not possible the way I intended.

    So I found a way to do my feature differently.

    Best regards and thank you 2 so much for your implication in bbpress 🙏

    #225721

    @robin-w – any suggestions on improvements bbPress should make?

    I was thinking of renaming no-js to bbp-no-js to try and avoid an issue with other plugins or themes already doing something with that class, but I’m not sure that solves this specific problem.

    #225717
    quilp
    Participant

    Following up on recommendation to turn debug on.

    BBPress is now Version 2.6.8

    With the most recent occurrence, I had debug mode on.

    To recap, periodically the blog page, blog posts, and bbpress forum return “No Results Found”

    Deactivating bbpress resolves the problem. bbpress can then be reactivated to restore forum functionality. Problem recurrs multiple times within a week.

    The last two occurrences of the issue were 6 days apart. Nov 17 and this morning Nov 23rd.

    debug log from 11/23

    23-Nov-2021 14:59:45 UTC] PHP Deprecated: get_option was called with an argument that is deprecated since version 5.5.0! The “blacklist_keys” option key has been renamed to “disallowed_keys”. in /home2/kingdqj0/public_html/wp-includes/functions.php on line 5495
    [23-Nov-2021 14:59:49 UTC] PHP Deprecated: get_option was called with an argument that is deprecated since version 5.5.0! The “blacklist_keys” option key has been renamed to “disallowed_keys”. in /home2/kingdqj0/public_html/wp-includes/functions.php on line 5495
    [23-Nov-2021 15:01:22 UTC] PHP Deprecated: get_option was called with an argument that is deprecated since version 5.5.0! The “blacklist_keys” option key has been renamed to “disallowed_keys”. in /home2/kingdqj0/public_html/wp-includes/functions.php on line 5495

    [23-Nov-2021 15:21:35 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_user_topic_count_raw() in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php:63
    Stack trace:
    #0 /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php(35): bur_display_counts(12415, ‘yes’)
    #1 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(303): bur_display_counts_bp_profile(”)
    #2 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #3 /home2/kingdqj0/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #4 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php(57): do_action(‘bp_before_membe…’)
    #5 /home2/kingdqj0/public_html/wp-includes/template.php(772): require(‘/home2/kingdqj0…’)
    #6 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/home2/kingdqj0…’, false, Array)
    #7 /home2/kin in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php on line 63
    [23-Nov-2021 15:21:38 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_user_topic_count_raw() in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php:63
    Stack trace:
    #0 /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php(35): bur_display_counts(12415, ‘yes’)
    #1 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(303): bur_display_counts_bp_profile(”)
    #2 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #3 /home2/kingdqj0/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #4 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php(57): do_action(‘bp_before_membe…’)
    #5 /home2/kingdqj0/public_html/wp-includes/template.php(772): require(‘/home2/kingdqj0…’)
    #6 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/home2/kingdqj0…’, false, Array)
    #7 /home2/kin in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php on line 63
    [23-Nov-2021 15:22:19 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_user_topic_count_raw() in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php:63
    Stack trace:
    #0 /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php(35): bur_display_counts(12415, ‘yes’)
    #1 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(303): bur_display_counts_bp_profile(”)
    #2 /home2/kingdqj0/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #3 /home2/kingdqj0/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #4 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php(57): do_action(‘bp_before_membe…’)
    #5 /home2/kingdqj0/public_html/wp-includes/template.php(772): require(‘/home2/kingdqj0…’)
    #6 /home2/kingdqj0/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/home2/kingdqj0…’, false, Array)
    #7 /home2/kin in /home2/kingdqj0/public_html/wp-content/plugins/bbp-user-ranking/includes/functions.php on line 63
    [23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
    [23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
    [23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
    [23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698
    [23-Nov-2021 15:26:06 UTC] PHP Notice: Undefined property: stdClass::$new_version in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 698

    #225534
    Robin W
    Moderator

    very happy for you to mention it 🙂

    Adding the no-js class to the bbpress body is something that bbpress 2.6.8 introduced. This was I am presuming on the presumption that that js was never needed on bbpress pages which is not the case in you want the visual editor or quicktags on the text editor.

    I’m simply taking it out for bbpress pages as a first step for those that need it, ie remving the change in 2.6.8 and reverting to the absence that bbpress has used for 7 years. My presumption is that the visual editor will not work on browsers that do not support js, which as you say is a very small amount if any actually used nowadays !!

    anyway thanks for your clarification, let’s see what the bbpress authors do.

    #225531
    lisabeavers
    Participant

    I am also using bbpress and have the same problem – the html bar for replies, etc. has completely disappeared for my users. I am on version 2.6.8 and it has not solved the problem. Help! (Please and thank you). I have checked everything and can’t find a single reason for it to be happening on my site. Everything was working great a few days ago.

    #225486
    Robin W
    Moderator

    the snippet I used takes it out before bbpress renders, @webcreations907 snippet does it after. Neither is right/wrong, and use whichever is better for you

    #225484
    webcreations907
    Participant

    That’s good, glad that worked out for you.

    You could also put it in bbpress.php in the plugin itself, then when the fix comes out and the plugin is updated it would get rid of it.

    For others looking for a solution, I tried to edit my post above but couldn’t, when I mentioned functions.php I mean the functions.php file that is within your current active WordPress theme.

    #225482
    webcreations907
    Participant

    When no-js is used, it’s usually removed using javascript or jquery to check if the browser supports it as some people turn it off in there browser preferences.

    Try adding the below code to your functions.php or code snippet plugin, etc.

    
    if( !function_exists( 'bbpress_browser_supports_js' ) ){
    	function bbpress_browser_supports_js() {
    		echo '<script>document.body.classList.remove("no-js");</script>';
    	}
    	add_action( 'wp_footer', 'bbpress_browser_supports_js' );
    }
    

    Make sure to clear any caches and check to see if it works for you.

    #225472
    Robin W
    Moderator

    @jjj Moving the ‘no-js’ class to the bottom of the ‘bbp_body_class’ function does not fix, as the quicktags toolbar is still not shown.

    the following filter fixes, but I’m not entirely sure what the introduction of then ‘no-js’ class to the function is doing, but I can’t see that the patch has any unintended consequences as it only runs on the relevant pages.

    add_filter ('bbp_body_class', 'rew_unset_no_js') ;
    
    function rew_unset_no_js($classes) {
    	if (in_array ('single-forum', $classes) || in_array ('single-topic', $classes)) {
    		if (($key = array_search('no-js', $classes)) !== false) {
    			unset($classes[$key]);
    		}
    	}
    return $classes ;
    }

    or if that doesn’t work

    add_filter ('bbp_body_class', 'rew_unset_no_js') ;
    
    function rew_unset_no_js($classes) {
    	if (($key = array_search('no-js', $classes)) !== false) {
    			unset($classes[$key]);
    		}
    return $classes ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    FOR THOSE USING BBP-STYLE-PACK – I’ll issue a revised version incorporating this shortly until fixed in bbpress.

    #225453
    TreeTrail
    Participant

    This topic has been resolved! We discovered what was causing this problem. It was not any custom code or plugin update issue. It was simply that I had changed the bbPress Forum > Visibility from “public” to “private”. Evidentially this prevents a plugin (like bbPress Toolkit) or custom code (like ours) from accessing the information.

    #225452
    KevinPlusPlus
    Participant

    I have this in my functions.php:

    /* Re-enable the visual editor for bbPress */
    add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );

    function bbp_enable_visual_editor( $args = array() ) {
    $args[‘tinymce’] = true;
    $args[‘teeny’] = false;
    return $args;
    }

    I should add that with the 2.6.7/8, the text editor doesn’t even show the toolbar. All I get is the text window with no buttons at all.

    #225445
    OSCOWP
    Participant

    We enable it using bbpress style pack plugin.

    It did work before and since 2.6.7 it isn’t.

    #225444

    Can you please post the code snippet you are using to enable the visual editor?

    In my testing, it is working OK using these snippets:

    Enable Visual Editor

    #225440

    I see now, thanks!

    Perhaps, this is something that bbPress could do a better job with. Each of the forum/topic type pages is its own thing, and they do not inherit the page settings from the forum root in the way it seems like you are expecting for them to – which is totally reasonable to expect.

    #225438

    This is a deprecated argument that only appears when WP_DEBUG is turned on.

    The debug log itself is nothing to worry about. 👍

    bbPress will address this once its minimum version is (legitimately) raised to 5.5.

    Thank you for letting us know here 🙏

    #225435

    Revisions are totally a WordPress thing. It’s weird, but sounds accurate.

    Using Gravity Forms to create new topics & replies will bypass the “freshness” hooks that bbPress expects to run normally. This means that the “branch” of topics & forums in the “tree” of that submission won’t get walked up to the root, to tell that whole branch what its most recent content is.

    Once you post something yourself normally, the tree gets walked and everything looks OK.

    The function that would normally be called is bbp_update_topic(). It includes all of the extra meta data that needs to be added – including a call to bbp_update_topic_walker() that “walks” the branch in the tree.

    Lastly, it refreshes the last_changed cache key in the bbpress_posts cache group. You could try busting that cache on your Gravity Forms submission (to see if that’s enough) but I have a feeling it won’t be, and you’ll need to find the best way to trigger the update.

    #225417
    Ai Roux
    Participant

    Hello there,
    I’ve installed bbpress on my forum, my theme is Fashify and my forum theme is the default one, nothing has been changed.
    I setted the page of the forum with “full width”, and my default setting for the site has a right sidebar.

    How can I do to keep the full width template when I navigate through the forum ? I can’t find any setting for that.

    Thanks by advance

    mgilbrtsn1
    Participant

    I have a site that has a sub folder with a separate theme. I want to use bbpress and buddypress because that is what the theme in the subfolder is compatible with.

    I wish there to be a login/profile on the main site to carry over to the sub folder. I don’t want people to have to create different profiles.

    Can someone tell me how to do this or point me in the right direction please?

Viewing 25 results - 2,551 through 2,575 (of 64,454 total)
Skip to toolbar