Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error when creating new topic and debug mode set to true


  • dryan1144
    Participant

    @dryan1144

    Getting an error when posting a new topic, but only when debug mode is true in wp-config. Just want to make sure this isn’t an issue going forward. The topic does post when I revisit the forum, but the user is greeted with the following white screen error message:

    Notice: Undefined variable: user_id in /home/myuser/mydomain.com/wp-content/plugins/bbpress/includes/common/functions.php on line 1225
    
    

    Notice: Undefined variable: user_id in /home/myuser/mydomain.com/wp-content/plugins/bbpress/includes/common/functions.php on line 1231

    `Warning: Cannot modify header information – headers already sent by (output started at /home/myuser/mydomain.com/dev/wp-content/plugins/bbpress/includes/common/functions.php:1225) in /home/myuser/mydomain.com/dev/wp-includes/pluggable.php on line 1121

    This is on a clean installation with a fresh copy of bbpress 2.5.4. Zero plugins, zero bbpress template modifications.

    Ideas? Can anyone else duplicate?

Viewing 7 replies - 1 through 7 (of 7 total)

  • Rescue Themes
    Participant

    @rescuethemes

    I’m also receiving this error with WP_DEBUG on. I’ll post more info if I discover anything more but my situation is exactly as dryan1144 has said too.


    Rescue Themes
    Participant

    @rescuethemes

    So the error is referencing the filters “bbp_forum_subscription_mail_message” and “bbp_forum_subscription_mail_title”.

    I’m developing on a localhost setup. My best guess is that, because the localhost isn’t able to send out emails notifying users that a new topic was created, it’s causing an error?


    dryan1144
    Participant

    @dryan1144

    Happening for me on a live site…


    Rescue Themes
    Participant

    @rescuethemes

    Found the trac ticket for this error:

    https://bbpress.trac.wordpress.org/ticket/2620

    Looks like the fix is going into the bbpress 2.6 release.


    Rescue Themes
    Participant

    @rescuethemes

    Fix is here if you’d like to manually change the current version (works for me):

    https://bbpress.trac.wordpress.org/attachment/ticket/2620/2620.patch


    dryan1144
    Participant

    @dryan1144

    Thanks for the research!


    Stephen Edgar
    Moderator

    @netweb

    That is not the correct patch to use, please do not use that patch.

    If you look further down the ticket you will see the actual changeset and commit that was made to to bbPress /trunk, changeset r5417

    Also, you should not be using WP_DEBUG on live sites….

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.