• Hi there

    I’m getting the error Fatal error: Uncaught Error: Call to undefined function bp_is_search_post_type_enable() when users follow an email link to Unsubscribe.

    I do appreciate that this is a BuddyBoss related issue only and therefore possibly outside of the scope of your support, but just wondering if there is any chance you could point me in the right direction at all. I’ve done some investigating and the error seems to be coming from the function ass_user_unsubscribe_form and particularly line 2261ie. wp_head(). If I remove this line, the unsubscribe form does actually appear at the top of the page (although it doesn’t actually “work”)!

    I will also try contacting BuddyBoss about this since they do list your plugin as being compatible, although from past experience, I’m not too hopeful. Any pointers would be very much appreciated as if not, I’m going to have to disable this particular feature of what is otherwise a really great plugin 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Boone Gorges

    (@boonebgorges)

    Hello and thanks for the report.

    The function bp_is_search_post_type_enable() appears to come from BuddyBoss itself https://github.com/buddyboss/buddyboss-platform/blob/f1760d503bc453a2720648759f5c6d2ca1f923a7/src/bp-search/bp-search-settings.php#L679 As such, I don’t really have a clear idea how this fatal error is being triggered, or how best to fix it. Perhaps it has something to do with the BuddyBoss “Search” component not being enabled? In any case, this isn’t really a problem with BPGES at all, so I’m afraid I can’t provide further advice.

    Thread Starter Nik

    (@nikbond)

    @boonebgorges – thank you for taking the trouble to get back to me. Since the error only occurs when attempting to access the Unsubscribe link, it looks to me as if there may be some problem with the order in which components are being loaded (ie. too soon for the bp_is_search_post_type_enable function to be loaded) but I do appreciate that you design for Buddypress not BuddyBoss so not really your problem.

    I may try and investigate a bit further when I have time but in the meantime, will have to remove the Unsubscribe link from the emails. Would I be right in thinking I should use the ass_digest_format_item_group filter for that?

    With many thanks again.

    Plugin Author Boone Gorges

    (@boonebgorges)

    it looks to me as if there may be some problem with the order in which components are being loaded (ie. too soon for the bp_is_search_post_type_enable function to be loaded)

    I thought the same thing, and I took a minute to search through buddyboss-platform’s source code to find something obvious, but nothing came to me. Sorry! First step would be to get a full stack trace.

    I may try and investigate a bit further when I have time but in the meantime, will have to remove the Unsubscribe link from the emails. Would I be right in thinking I should use the ass_digest_format_item_group filter for that?

    Yes, that’s a good starting place.

    Thread Starter Nik

    (@nikbond)

    Thank you again and it’s at least reassuring to know that I was a) thinking along the right lines and b) I’m not the only one who couldn’t find anything obvious! (I was hoping I might come across some kind of action or filter that could be removed, but at least from investigations so far, it’s not going to be quite that simple.)

    Thank you too for confirming I’m on the right track with regard to removing the Unsubscribe link for now. I really do appreciate how frustrating this kind of issue must be for you, especially when providing such a great plugin free of charge, and if I do happen to come across a solution in future, I will certainly report back here.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error on email unsubscribe link’ is closed to new replies.