• Resolved chrisv2

    (@chrisv2)


    Getting an http 500 due to interacting with PaidMemberShip Pro plugin (which I must use)…on the ‘wpmu_new_blog‘ hook.

    I believe I can solve it by de-registering your hook in install.php:

    
    add_action( 'wpmu_new_blog', 'wpas_activate_new_site', 10, 6 );

    I don’t want or care about ticket support on any network sites — only on my base site. So is it ok if I de-register that hook?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter chrisv2

    (@chrisv2)

    Here’s what I ended up doing. Would appreciate some feedback on this. Also, curious as to why you guys are running your function wpas_single_activate() on EVERY blog (network site) within a multisite network, hooked to the wpmu_new_blog action? If the administrator of the network did not choose to network-enable your plugin, shouldn’t you not be touching anything related to the network sites?

    // turn of the action of Awesome Support adding itself to every network site
    function chrisv2_wpas_no_network_sites() {
        remove_action( 'wpmu_new_blog', 'wpas_activate_new_site', 10 );
    }
    add_action( 'wp_login', 'chrisv2_wpas_no_network_sites', 99 );

    With this, now PaidMembershipsPro works correctly again…but it feels “weird” to me that I had to do this…am I missing some setting somewhere, where your plugin will not attempt to run an install routine on network sites?

    Thread Starter chrisv2

    (@chrisv2)

    Disappointing that nobody could bother to reply to this.

    Plugin Author julien731

    (@julien731)

    Hey Chris,

    Sorry for not replying earlier. What you’re saying seems correct to me. MS compatibility is something that has been looked into in the early days but we decided that there was no value at the time to support MS in a specific way.

    The code you’re pointing at does, indeed, look unnecessary. I have opened a new issue about it and we will look into it asap: https://github.com/Awesome-Support/Awesome-Support/issues/371

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wpas_activate_new_site undefined function in install.php’ is closed to new replies.