Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 1 through 25 (of 11,581 total)
  • Author
    Search Results
  • #245881
    Robin W
    Moderator

    I am running 8.3 on my test site with no issues for many months now, and have just updated it to 8.4 and looks ok, but obviously not tested every function.

    When you say it crashes, what error message are you getting?

    #245878
    internationaljack
    Participant

    What’s the latest version of PHP that bbPress can reliably run on?

    The most recent update says it improved PHP 8.2 support, but it crashes on the dev site I’m running that is on 8.2.29. Is there an earlier version that is known to work well?

    Also, does anyone know what the developers’ plans are for PHP versions beyond 8.2? I was hoping to upgrade our sites to 8.4, but bbPress is the limiting factor on a couple of them.

    #245868
    yt
    Participant

    Hello @robin-w

    The code is tested and works fine. Thank you for that.

    It seems that the code needs two modifications to be converted into a complete code. These two modifications are:

    1- Modification related to the user
    Absolutely directing the logged in user to the first page of the site is not useful in most cases, because

    Suppose the user has entered a forum topic and wants to reply to it. For this purpose, he enters the forum by entering his user information. In the default WordPress mode, the user who is on the current page is considered a logged in user and can send a reply

    However, with the above code, the user is redirected from the current page to the first page of the site and must return to the initial page of the topic in question with a few clicks. This causes user annoyance and increases the bounce rate from the forum.

    Therefore, the code needs to be modified so that the user on the current page (meaning any page of the forum or site that has a comment) is logged in on the same page as the current user after entering his user information and logging in, but at the same time does not have access to the counter.

    2- Correction related to the site and forum administrator
    The same problem as above is true for the administrator. For example, the administrator enters the forum and wants to create a topic or reply to a topic, so he enters the login information. In the default WordPress mode, he is considered logged in on the current page, but at the same time, the WordPress admin bar is displayed at the top of the forum or site, which means he has access to the counter.

    However, with the above code, the administrator is redirected from the current page to the counter, which should return to the original current page with a few clicks, just like the same user.

    Is it possible to modify the code as described?

    Thank you very much in advance for your valuable help.

    #245851
    Ricsca2
    Participant

    With a script I made with chatgpt (and a lot of testing), I managed to migrate an old custom forum to bbpress.
    I only have one error… basically, when I go to edit a post, I get a page error.
    Virtually all the posts I try to edit (if a thread has 5 replies, all replies have that URL on edit) have this URL /?reply&edit=1 (I’ve disabled the parmalink for now).
    Do you know what I could do?
    If I try to edit the thread, it works.
    Thanks

    yt
    Participant

    Hello everyone

    My site is using the latest WordPress 6.8.2 with WordPress 2025 theme and BBPress community

    To change the color of closed topics in

    13. Preventing closed topics from going grey

    At address:

    Layout and functionality – Examples you can use

    The following code:

    #bbpress-forums .status-closed,
    #bbpress-forums .status-closed a {
    color: #aaa !important;
    }

    is introduced.

    I put it in the css snippet of WPCode plugin. but the code doesn’t work.

    Can anyone help me fix the problem?

    Thanks

    #245831
    yt
    Participant

    Hi everyone

    My site is using the latest WordPress 6.8.2 with WordPress 2025 theme and BBPress community

    In
    27. Custom Redirect After Login

    At address

    Layout and functionality – Examples you can use

    The following dual-purpose redirect code:

    /**
    * WordPress function for redirecting users on login based on user role
    */
    function my_login_redirect( $url, $request, $user ){
    if( $user && is_object( $user ) && is_a( $user, ‘WP_User’ ) ) {
    if( $user->has_cap( ‘administrator’ ) ) {
    $url = admin_url();
    } else {
    $url = home_url();
    }
    }
    return $url;
    }
    add_filter(‘login_redirect’, ‘my_login_redirect’, 10, 3 );

    It is introduced that I have it in the php sippet file of the WordPress plugin code but I am getting the error

    Your changes are saved but your snippet was deactivated due to an error, please check the syntax and try again. Error message: syntax error, unexpected token ;

    It seems that there is a problem with the code.

    Can anyone help to fix the problem?

    #245800
    Robin W
    Moderator

    ok, I see that in parallel you have been pursuing this with their support (which would have been useful information to post here, and saved me some duplicate testing time)

    I will continue on that thread, so that their author gets to see the communication

    #245784
    yt
    Participant

    Hello forum members

    My site is using the latest version of WordPress 6.8.2 and the 2025 Block Theme and BBPress Forum.

    I want to use the classic theme for BBPress Forum instead of the Block Theme

    Please guide me how can I activate my favorite classic theme instead of the default BBPress theme?

    Thanks

    #245752
    sbask
    Participant

    Tried it out on our testsite and when I click on anything to do with comments it errors out.

    There has been a critical error on this website.

    #245738
    Robin W
    Moderator

    ok, so we can hide the ip6, but getting the ip4 is harder i think.

    I found this post relating to Cloudfare which tends to indicate that even an ip4 might be just a Cloudflare address, but I only spent 2 minutes reading though !!

    https://wordpress.org/support/topic/real-ip-for-the-customers-cloudflare/

    so to hide an IP6, try this (untested!)

    add_filter ('bbp_get_author_ip', 'rew_hide_v6') ;
    
    function rew_hide_v6 ($author_ip='') {
    if ($strlen($author_ip)>20) $author_ip='' ;
    return $author_ip ;
    }

    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

    Let me know if it works

    #245649
    Robin W
    Moderator

    Every website is a unique combination of hoster, operating and hosting systems (eg apache, PHp) WordPress theme, plugins, settings and content, so I cannot just give you an answer.

    So between ‘some time ago’ (days? weeks? years?) and now – what has changed on your site?

    If you cannot answer that, then I can only suggest the core fault finding viz..

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @hardel The fixes that were recommended in the ticket you linked to are pretty-much identical to what is now in 2.6.14.

    If that worked for you then, 2.6.14 should work now, but only as long as you aren’t still running the old temporary fix code at the same time.

    (I’ve tested a few different ways & installs, and the latest BuddyPress & bbPress are working together as intended for me.)

    The URLs being generated are different from what I originally posted four years ago.

    They both still look the same to my eyes, but I will believe you 🤣

    #245526
    Robin W
    Moderator

    ok, I am not a bbpress author, just someone who tries to help out.

    So it’s Sunday morning here in the UK, and I have guests coming for lunch, so I will try and pick this up later.

    But let’s just eliminate some stuff.

    1.

    dashboard>settings>permalinks and just click save – this resets the permalinks and may help

    2.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #245480
    Robin W
    Moderator

    Registered members on the Forum can still see the “Contact” Link below people’s Avatars and I have just tested using a identity I use for testing and have successfully sent a PM to myself as Administrator – this instantly showed “You have 1 message unread” on my Administrator identity and clicking on the link has taken me to the message and all previous messages, just as it always has.

    That is not from the private groups plugin That plugin has nothing to do with messaging.

    If you care to list the ‘forum type’ plugins you are using, then I might be able to say which is doing this.

    #245479

    Thanks once again for your quick response.

    Yes, am happy with most of what you say but somehow the “bbP private groups” plugin does seem to be in some form of limbo. It currently shows “bbP private groups” as disabled on the Plugins page but it is definitely still active. Registered members on the Forum can still see the “Contact” Link below people’s Avatars and I have just tested using a identity I use for testing and have successfully sent a PM to myself as Administrator – this instantly showed “You have 1 message unread” on my Administrator identity and clicking on the link has taken me to the message and all previous messages, just as it always has. So everything seems to still be there despite the pligin showing itaself as disabled (i.e. it shows links for Activate and Delete).

    I need to find a way to properly disable/remove this plugin – one option open to me is to delete the plugin but I fear doing that could make things worse.

    Any suggestions welcome.

    John

    #245478
    Robin W
    Moderator

    ok, if the private groups plugin is not showing as active in

    dashboaard>plugins

    then it is not active.

    Deactivating/reactivating a plugin may have fixed an issue

    The 3 you have left are because these plugins need the authors to fix the issue, or if you are not at latest versions, you to update them.

    Simple lightbox
    welcome email editor
    constructions

    These errors will not cause your site to fail but will do in some later version of WordPress : WordPress will eventually chnage these form a ‘Notice’ error to a ‘Critial’ error, but that may be years away (or next week!)

    If everything else is working, then I’d suggest you just switch off the error display, and enjoy your site

    Robin W
    Moderator

    1. yes, this is the intended behavior
    2. yes, that behavior is set by a function which is called by an action, so we can remove it, and do something else.

    so untested, but this should work

    remove_action( 'bbp_template_redirect', 'bbp_forum_enforce_blocked', 1  );
    
    add_action( 'bbp_template_redirect', 'rew_forum_enforce_blocked', 1  );
    
    function rew_forum_enforce_blocked() {
    
    	// Bail if not logged in or keymaster
    	if ( ! is_user_logged_in() || bbp_is_user_keymaster() ) {
    		return;
    	}
    
    	// Set 404 if in bbPress and user cannot spectate
    	if ( is_bbpress() && ! current_user_can( 'spectate' ) ) {
    		//DON'T DO THE SET 404 ie this is the code that the default bbp_forum_enforce_blocked does
    		//bbp_set_404();
    		// DO SOMETHING ELSE HERE!
    	}
    }

    What the something else is, you will need to decide

    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

    3. I can’t say what the original authors intentions were, but I suspect yes

    #245430
    Robin W
    Moderator

    by the way, I tried your long post on my test site, and it worked ok.

    #245396
    hollandnumerics
    Participant

    I have caused an updated topic to fail when saving. The “test” topics all state that a critical error has occurred, but no emails are detected.

    Now you are a blog member, please feel free to post a new topic

    #245394
    hollandnumerics
    Participant

    Check Email installed. It defaults to local sendmail, instead of installed Postman SMTP that uses smtp.officce365.com. However:

    This test email proves that your WordPress installation at https://hollandnumerics.org.uk can send emails. Sent: Sun, 06 Jul 2025 10:10:50 +0000

    #245393
    Robin W
    Moderator

    email does not have to match, but lots of things in between the send and recieve can jink emails they consider spam or suspicious.

    So if you are not getting the error emails, can I suggest you install

    Check & Log Email – Easy Email Testing & Mail logging

    and use this to test emails, and if the site attempts to send an email, the email logs can tell you what it tried to send.

    #245384
    hollandnumerics
    Participant

    However, in Troubleshooting Mode, updated topic “test 3” is being shown correctly.

    Active plugins: bbPress and bbp style pack

    #245383
    hollandnumerics
    Participant

    About Holland Numerics: Blog and Forums. › Forums › SAS Skills Discussion Forum (non-programming) › test 3

    | Subscribe Favourite
    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    #245376
    hollandnumerics
    Participant

    FYI in issue #1 the post, when viewed, is empty whether the body contains table tags or not:

    test 1:

    <table><tbody><tr><td>hello</td></tr></tbody></table>

    test 2:

    hello

    This is in Troubleshooting Mode with only bbpress and bbp style pack active.

    #245357

    In reply to: Website Critical Error

    Robin W
    Moderator

    Does this occur anytime you try and access the forum page?

    if so, it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

Viewing 25 results - 1 through 25 (of 11,581 total)
Skip to toolbar