jemar707 (@jemar707)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 27 total)

  • jemar707
    Participant

    @jemar707

    Perfect! Thank you again.


    jemar707
    Participant

    @jemar707

    Thank you so much. I made the change and hope that’s the fix.


    jemar707
    Participant

    @jemar707

    I am reading and reading and reading. If I remove the functions I use from above and guess they may be a problem, is this something that can be handled by your style pack plugin instead? (I use it for ALOT). Much of those functions in our plugin relate to bbpress, that’s one of the reasons I use it instead of a child theme sometimes. If I change themes, I don’t want to lose the way I want bbPress to operate.


    jemar707
    Participant

    @jemar707

    And this PHP error:

    2024/02/08 04:46:43 [error] 88782#88782: *2901466 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “my_bbp_no_reply_email” not found or invalid function name in /www/sitename/public/wp-includes/class-wp-hook.php:324


    jemar707
    Participant

    @jemar707

    Sorry for so many replies. It seems there is a time limit to edit my replies. But still would like to remove site specific paths asap


    jemar707
    Participant

    @jemar707

    I have this in a plugin that we use for a lot of our changes that we want separate from child theme functions.php I don’t know if related.

    function no_reply_email(){
        $email = 'no-reply@sitename.com'; // any email you want
        return $email;
    }
    add_filter('bbp_get_do_not_reply_address','my_bbp_no_reply_email');
    
    function my_bbp_subscription_to_email(){
        $email = 'no-reply@sitename.com'; // any email you want
        return $email;
    }
    add_filter('bbp_subscription_to_email','my_bbp_subscription_to_email');
    

    jemar707
    Participant

    @jemar707

    i tried to take out site-specific stuff


    jemar707
    Participant

    @jemar707

    It just displays critical error.

    xxx


    jemar707
    Participant

    @jemar707

    Hello again. I got a critical error on another topic when trying to reply.

    Should updating PHP my first troubleshooting step?


    jemar707
    Participant

    @jemar707

    I did a redirect from that page to another for now. It was only happening on that topic as far as I know now unless a user reports another.


    jemar707
    Participant

    @jemar707

    Running 8.0. I have option to change to 8.1 or 8.2 through my host. I just noticed that they recommend using 8.1.


    jemar707
    Participant

    @jemar707

    Hi Robin. I see this topic is old, but I am receiving the same fatal error on one of our topics. Pasting error from log below.

    Any thoughts?

    This is from log when someone replies to a specific topic.

    2024/01/25 00:28:44 [error] 104203#104203: *2522045 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “my_bbp_no_reply_email” not found or invalid function name in /www/igotmyrefund/public/wp-includes/class-wp-hook.php:324
    Stack trace:
    #0 /www/igotmyrefund/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘noreply@igotmyr…’, Array)
    #1 /www/igotmyrefund/public/wp-content/plugins/bbpress/includes/common/functions.php(999): apply_filters(‘bbp_get_do_not_…’, ‘noreply@igotmyr…’)
    #2 /www/igotmyrefund/public/wp-content/plugins/bbpress/includes/common/functions.php(1135): bbp_get_do_not_reply_address()
    #3 /www/igotmyrefund/public/wp-includes/class-wp-hook.php(326): bbp_notify_topic_subscribers(4534524, 4534520, 4534009, Array, 102593)
    #4 /www/igotmyrefund/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #5 /www/igotmyrefund/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /www/igotmyref” while reading response header from upstream, client: 2600:387:15:1a0e::d, server: igotmyrefund.com, request: “POST /forums/topic/child-care-credit-ctc-changes/ HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-igotmyrefund.sock:”, host: “igotmyrefund.com:32769”, referrer: “https://igotmyrefund.com/forums/topic/child-care-credit-ctc-changes/”


    jemar707
    Participant

    @jemar707

    I am still on a hunt for a fix for this problem several years into my forum. Have you found anything? I have topics with thousands of replies, leading to many many pages when using pagination.

    In reply to: Character Count

    jemar707
    Participant

    @jemar707

    Ok that worked to stop the ability to submit, but didn’t print the error message.

    In reply to: Character Count

    jemar707
    Participant

    @jemar707

    I tried to post as code….will try again. But this didn’t work.

    function rew_max_length ($reply_content) {
    	if (strlen($reply_content)<500) {
    		bbp_add_error( 'bbp_reply_content', __( '<strong>ERROR</strong>: Your reply must be less than 500 characters.', 'bbpress' ) );
    	}
    return $reply_content ;
    }
    
    add_filter( 'bbp_new_reply_pre_content', 'rew_max_length' );
    In reply to: Character Count

    jemar707
    Participant

    @jemar707

    Thanks! I will see if I can play with that. My first guess is just changing <61 to >500


    jemar707
    Participant

    @jemar707

    Thank you! I sent some love through PP on your website for all your work! Hoping I can take this and make it work for topics too.

    I tagged you in an old separate topic if you have any solutions for my replies problem on the front end:

    Redirection when newest replies are at the top.


    jemar707
    Participant

    @jemar707

    Hi @robin-w 🙂

    I know it’s been some time since I asked this question…but I am still stumped. If you have any ideas of what I can do to fix this, I’d be eternally grateful.


    jemar707
    Participant

    @jemar707

    Hi Robin! Thanks for the reply.

    This is what I am using to reorder replies:

    // Reverse forum replies order from newer to older
     
    function custom_bbp_has_replies() {
    $args['order'] = 'DESC'; // ‘ASC’ (Ascending, Default), 'DESC' (Descending)
     
    return $args;
    }
     
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );
     
    function custom_bbp_show_lead_topic( $show_lead ) {
    $show_lead[] = 'true';
    return $show_lead;
    }
     
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );

    jemar707
    Participant

    @jemar707

    @robin-w

    Not sure if @ works here, but Robin seems to be the best BBPress Ninja I see and I am still having this problem. I searched for solutions again, but don’t see any.


    jemar707
    Participant

    @jemar707

    Managing replies and topics in a large open forum has become a nightmare. I have searched high and low for a way to manage posts by IP/user, name, and of course the marking bulk spam as you mentioned. Mass edit/delete is not teaching anything to Akismet. I am using CleanTalk to manage spam registrations which seems to help with spam. But managing posts that get through filters requires tools like the Comment Dashboard for WordPress. I am going to look for someone to write a plugin. Perhaps the Comment Moderation plugin Developer could help us.


    jemar707
    Participant

    @jemar707

    thank you!


    jemar707
    Participant

    @jemar707

    I will keep at it for now and see if I find any trend in these topics that won’t close. In the meantime I am running queries in the DB to isolate the bad guys.


    jemar707
    Participant

    @jemar707

    Yes, that forced it to close. I can’t see manually doing that for many more. 40 or so, yeah no biggie. But as I move forward, that just can’t seem like any fun.

    I tested to see if I could do anything with the topic now – and sure enough, it’s stuck closed. Almost seems like it is locked for editing.


    jemar707
    Participant

    @jemar707

    I deleted the extra entries. Tried to close, and it was a no go. Checked DB and it added an additional entry, presumably because I just tried to close it.

Viewing 25 replies - 1 through 25 (of 27 total)