Undefined variable topic_id since bbPress 2.6.4
-
Hey Guys,
Since bbPress v2.6.4 undefined variable message appears in both admin and frontend pagesNotice: Undefined variable: topic_id in [PATH]\wp-content\plugins\bbpress\includes\replies\template.php on line 456 Notice: Undefined variable: topic_id in [PATH]\wp-content\plugins\bbpress\includes\replies\template.php on line 461 Notice: Undefined variable: topic_id in [PATH]\wp-content\plugins\bbpress\includes\replies\template.php on line 467
I found variable [topic_id] inside two if statements in function [bbp_get_reply_url] so I think that you should move the variable definition in the function scope not inside the if.
If you google that [undefined variable: topic_id replies\template.php] you will find that a lot of online forums using bbPress generate that error in the front-end pages.
P.S. some people taking about BuddyPress but I think it should be fixed in the bbPress functions.
Thanks
- You must be logged in to reply to this topic.