• Hello,

    When I click favorite or subscribe button in bbpress, it doesn’t work with showing “undefined”

    But, when I click these buttons by right click “open new windows” then it works.

    you can test it in this website https://romentor.com/topics/test1/

    thanks you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I also experienced this issue recently. In my case, it happened that I had included fitVids.js in my theme and then uploaded a plugin which also included it. Commenting out the line in my functions.php where I had enqueued the fitVids script then resolved the issue, and the buttons worked as they should.

    I’d suggest going through and disabling plugins one at a time in your theme to see if any of these are causing the conflict here, and also commenting out any additional scripts you are enqueueing in your functions.php one by one to try and isolate the issue. You may also be calling scripts in your header.php so try disabling/re-enabling them too.

    Hope this helps in some way

    Best,
    Iain

    After today, and doing some more work on the site I was experiencing the difficulty with in the first place, I find that the issue is now recurring for me.

    A little digging around has revealed these posts:

    https://bbpress.trac.www.ads-software.com/ticket/2302

    and

    https://bbpress.org/forums/topic/enqueue-ajax-script-in-buddypress-groups-forum/

    So, it appears that the issue is a known one within bbPress and is resolved on upgrading to 2.4.

    I will attempt to upgrade to 2.4 tomorrow from the repository and let you know how I get on.

    Best,
    Iain

    Just as a note here on how this was finally resolved for me:

    I was using a theme that I found to be including its own bbpress-functions.php. In there was a duplicate inclusion of topic.js which was conflicting with the one in the plugin files themselves.

    Removing the inclusion from the theme’s bbpress-functions.php solved the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help me to solve clicking favorite and subscribe problem’ is closed to new replies.