Project

General

Profile

Actions

Bug #1857

closed

Reply By Email not setting up topic info correctly in forum replies

Added by Boone Gorges about 12 years ago. Updated about 12 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
BuddyPress (misc)
Target version:
Start date:
2012-04-24
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

When replying to a forum post via Reply By Email on cdev, you get something that looks like this:

boonebgorges posted on the forum topic "" in the group boone hidden test via email:

"abc" 

To view or reply to this topic, log in and go to:
http://cdev.gc.cuny.edu/groups/boone-hidden-test/forum/topic//?topic_page=0#post-2705

Note the empty forum name, etc.

I have had a hard time debugging this. (As a side note, I kept experiencing the strangest thing, where I would make a change to a PHP file - like adding a bp_rbe_log() call - but the next time I sent an email, it's as if I hadn't made the change. Yet the change is there - I can close and reopen the PHP file and still see it. It's almost as if there is some sort of strange server caching going on. Either that or I'm just missing something.)

But here's what comes up in the WP_DEBUG log:

PHP Notice:  Trying to get property of non-object in /.../plugins/bp-reply-by-email/includes/bp-rbe-functions.php on line 689

That's in reference to the $topic variable, which apparently is not being defined correctly. It's the strangest thing, though - clearly, the topic_id is populated (or the post wouldn't be going to the correct topic). I guess there is a problem with bp_forums_get_topic_details(), but nothing is showing up in the logs.

Ray, can I ask you to have a look? Maybe something will jump out at you that hasn't for me. (Copying Chris, who originally raised the issue in the Basecamp thread, I think.)

Actions

Also available in: Atom PDF