Support » Plugin: BuddyPress Activity Plus » Conflict with Transposh

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    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,

    Thanks so much! That worked perfectly.

    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.??????

    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. ๐Ÿ™‚


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with Transposh’ is closed to new replies.