boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

Redirection issue with rtMedia and BP Docs #406

Closed schwarzaufweiss closed 10 years ago

schwarzaufweiss commented 10 years ago

Hello Boone, I'm running WP 3.9.1, BP 2.0.1 with BP Docs 1.7.0 and now rtMedia 3.6.14 and their Pro extension 2.3 They have a function to edit filename, metadata etc. of photos If I try to edit a file with rtMedia in the frontend the path …/members/user/media/filename/edit is redirected to /groups/docs (what doen't exist, so it's going to 404) If I de-activate BP Docs everything works fine with rtMedia. What could be the reason that BP Docs is «hitchhiking» rtMedia? Or what could be the reason for that behavior if both plugins are active?

boonebgorges commented 10 years ago

Hi Hans - Nothing comes immediately to mind. Maybe you can get a stack trace of the redirect (put something like this into the wp_redirect() function: error_log( print_r( debug_backtrace(), true ) ); and then check the error log). That might give a better sense of where this is coming from.

On 05/12/2014 08:14 AM, HansRuedi Keller wrote:

Hello Boone, I'm running WP 3.9.1, BP 2.0.1 with BP Docs 1.7.0 and now rtMedia 3.6.14 and their Pro extension 2.3 They have a function to edit filename, metadata etc. of photos If I try to edit a file with rtMedia in the frontend the path …/members/user/media/filename/edit is redirected to /groups/docs (what doen't exist, so it's going to 404) If I de-activate BP Docs everything works fine with rtMedia. What could be the reason that BP Docs is «hitchhiking» rtMedia? Or what could be the reason for that behavior if both plugins are active?

— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/406.

schwarzaufweiss commented 10 years ago

Thanks. I've just sent you an email with the error log.

boonebgorges commented 10 years ago

Thanks, Hans. I see where the problem is coming from, but I don't have a clear idea of why it's happening. I'll try to take a look in the future. In the meantime, if you could send me the problematic plugins for testing, that would be helpful. Thanks.

schwarzaufweiss commented 10 years ago

Just sent another email…

schwarzaufweiss commented 10 years ago

Based on the log, would you say it's your turn? The reason to ask is that I have already opened a ticket at rtCamp and would like to be transparent – if possible…

boonebgorges commented 10 years ago

"My turn"?

On 05/12/2014 09:39 AM, HansRuedi Keller wrote:

Based on the log, would you say it's your turn? The reason to ask is that I have already opened a ticket at rtCamp and would like to be transparent – if possible…

— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/406#issuecomment-42832513.

schwarzaufweiss commented 10 years ago

…is it something you can «fix» or change in BP Docs to make the two plugins compatible? Or is it unclear who is «responsible»? BTW: rtMedia is opening a new tab for Editing. I don't know if this has some implification. The redirection happens when that new browser tab is already open.

boonebgorges commented 10 years ago

I will have to take a bit of time before I can know what's going on. Thanks for your patience.

On 05/12/2014 10:02 AM, HansRuedi Keller wrote:

…is it something you can «fix» or change in BP Docs to make the two plugins compatible? Or is it unclear who is «responsible»? BTW: rtMedia is opening a new tab for Editing. I don't know if this has some implification. The redirection happens when that new browser tab is already open.

— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/406#issuecomment-42835358.

schwarzaufweiss commented 10 years ago

Ritesh Patel wrote (in rtCamp support forum): «Hi Hans Ruedi, Sorry to say we can't do anything regarding this as you said it works perfectly fine when BP Docs is deactivated. Yes, we will resolve the issue if our plugin creates conflict with some other plugin. I hope you understand that.» Boone, what can I do to help resolve this compatibility issue?

boonebgorges commented 10 years ago

Thanks for the update. I'll have a look as soon as I'm able.

On 05/13/14 15:15, HansRuedi Keller wrote:

Ritesh Patel wrote (in rtCamp support forum): «Hi Hans Ruedi, Sorry to say we can't do anything regarding this as you said it works perfectly fine when BP Docs is deactivated. Yes, we will resolve the issue if our plugin creates conflict with some other plugin. I hope you understand that.» Boone, what can I do to help resolve this compatibility issue?

— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/406#issuecomment-42999225.

schwarzaufweiss commented 10 years ago

This issue seems to be fixed now with update to rtMedia Pro v2.3.1

schwarzaufweiss commented 10 years ago

I was totally confused… No, it's not fixed. One is able to "Edit" media within BP groups, but that redirection occurs while trying to "Edit" an image on a Profile. I have now setup a single WP installation with only BuddyPress, BuddyPress Docs, rtMedia and rtMedia Pro. Pure and simple. And I have created an admin user account for you to test – or at least to see what's going on… I will send you an email with login credentials… Please help the moment you have some time. Thanks!

schwarzaufweiss commented 10 years ago

…seems we found what's going in between while trying to "Edit" a media item on a BP profile: PHP Fatal error: Call to undefined function bp_get_group_permalink() in /wp-content/plugins/buddypress-docs/includes/component.php on line 403 I have sent you an email with more details.

54richard commented 10 years ago

Hello, I have the same problem, what can I do?

schwarzaufweiss commented 10 years ago

@54richard The combination of BP Docs and rtMedia is working nicely, IF you don't activate rtMedia for BP Profiles and not for bbpress. To be able to use images etc. in profiles Boone needs to fix this bug in Docs, for bbpress there is a bug in rtMedia 3.6.15 / pro 2.3.2 – for the moment it's cool to have Docs AND images for BP groups...

schwarzaufweiss commented 10 years ago

This issue will be solved with BP Docs 1.8.x - Thanks, Boone!

boonebgorges commented 10 years ago

Wow, that's great!

On 07/03/14 08:14, HansRuedi Keller wrote:

This issue will be solved with BP Docs 1.8.x - Thanks, Boone!

— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/406#issuecomment-47905281.