BuddyPress Activity Plus
[resolved] Conflict with Transposh (5 posts)

  1. namrons
    Posted 2 years ago #

    The Buddypress activity plus plugin is almost perfect except for one thing - there is a conflict with the popular "Transposh" plugin (the best translation plugin out there in my opinion). The problem seems to be a JS conflict. Activity plus works fine for Video and image uploads, the problem is with adding a link. Preview does not work and the link can not be posted. Some others have expressed this issue. One user suggested that "The simple_html_dom functions clash with other plugins". I do not know if this is the issue. Can you help? I think it will help a number of people. Thanks! My site http://awestruck.tv/activity/

    Here's the same issue posted by another: http://wordpress.org/support/topic/plugin-buddypress-activity-plus-transposh-and-buddypress-activity-plus-dont-play-well-together


  2. Hi @namrons,

    I hope you are well today and thank you for notifying us this.

    I could reproduce the issue on my test site by installing both BuddyPress Activity Plus and Transposh plugin.

    It displayed following error when previewing added link.
    Fatal error: Cannot redeclare file_get_html() (previously declared in wp-content\plugins\transposh-translation-filter-for-wordpress\core\shd\simple_html_dom.php:39) in G: wp-content\plugins\buddypress-activity-plus\lib\external\simple_html_dom.php on line 41

    From the above error message it seems there is conflict between the functions like file_get_html() str_get_html() etc. which is used in both plugins as both plugins are using http://sourceforge.net/projects/simplehtmldom

    I have notified this to the developer and it mat be resolved in future version of plugin but We don't publish ETAs to prevent disappointment if a deadline is missed(which in plugin development quite a frequent occurrence!).

    In the meanwhile as a patch you can just edit the code on line number 184 in BuddyPress Activity Plus plugin file buddypress-activity-plus/lib/class_bpfb_binder.php as following.
    Before Editing:

    require_once(BPFB_PLUGIN_BASE_DIR . '/lib/external/simple_html_dom.php');

    After Editing:

    if ( ! class_exists( 'simple_html_dom_node' ) ) {
       require_once(BPFB_PLUGIN_BASE_DIR . '/lib/external/simple_html_dom.php');

    If above solution doesn't work in your case then just remove the following code completely.

    require_once(BPFB_PLUGIN_BASE_DIR . '/lib/external/simple_html_dom.php');

    Best Regards,

  3. namrons
    Posted 2 years ago #

    Thanks so much! That worked perfectly.

  4. fdcadmin
    Posted 2 years ago #

    I made the edits to the code last night and it seemed to be working fine. I just tried to add a link and it's not working again.??????

  5. Hi @fdcadmin,

    Thanks for posting on the forum and sorry to hear of the problems you are having.

    Could you please share me your site link to test it?

    Which version of BuddyPress Activity Plus plugin and WordPress are you using?

    Ideally its not a good process to post on a thread 2 months old. The plugin has changed since then and so has WordPress :)

    As per theĀ Forum Welcome, you should post your own topic.

    Could you please open a new topic for your question?

    This might also help other members looking for a similar answer. :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic