• Resolved rlamb2

    (@rlamb2)


    Hi there,

    So we have the bbPress Notify (No-Spam) Digests addon active on the site, but this issue has been traced back to the core plugin.

    Essentially, that addon is using add_settings_fields in a function hooked to the bbpnns_register_settings action that runs when the ...Admin_Core constructor is run when the class is loaded inside of the init hook. But for admin screens, init (and this function) runs well before wp-admin/includes/template.php is loaded, so it errors out.

    I’d thought that generally you can still use a function before it’s included and defined, but maybe not when it’s inside of a function hooked to an action?

    Might help to move some of that into an admin_init hook?

    Just thought I’d send in the note. Happy to help troubleshoot if you have any questions. Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author useStrict

    (@usestrict)

    Thanks for the note, @rlamb2.

    I’ll patch it today.

    Unfortunately, we can’t discuss paid add-ons in these forums, so please keep an eye out in UseStrict’s forums.

    Plugin Author useStrict

    (@usestrict)

    @rlamb2,

    Can you get me the exact error message? Feel free to email it to vinny [at] usestrict [dot] net so we don’t use these forums.

    Thanks,
    Vinny

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘undefined function add_setttings_field when digest addon is active’ is closed to new replies.