• Resolved Walter Kamer

    (@broadloommedia)


    What I have:

    – WP 4.5.3
    – MPD 0.9.1
    – Logged in with Super Admin
    – MPD is network activated
    – On primary site (eg. example.com) MPD restriction is set to master site ‘Templates’ (templates.example.com)

    Situation ‘Error’:

    – When opening a page on my existing site templates.example.com MPD is active/visible, this is OK because it’s the master
    – Adding a new site ‘Site 2’ (site2.example.com)
    – When opening a page on the new site2.example.com MPD is still active/visible, but also gives an error at all the sites displayed:

    Site(s) you want duplicate to:

    Warning: in_array() expects parameter 2 to be array, null given in /home2/wkamer/public_html/*****.com/wp-content/plugins/multisite-post-duplicator/inc/postform_ui.php on line 99
    *****.com

    Warning: in_array() expects parameter 2 to be array, null given in /home2/wkamer/public_html/*****.com/wp-content/plugins/multisite-post-duplicator/inc/postform_ui.php on line 99
    Templates

    Warning: in_array() expects parameter 2 to be array, null given in /home2/wkamer/public_html/*****.com/wp-content/plugins/multisite-post-duplicator/inc/postform_ui.php on line 99
    Site1

    Warning: in_array() expects parameter 2 to be array, null given in /home2/wkamer/public_html/*****.com/wp-content/plugins/multisite-post-duplicator/inc/postform_ui.php on line 99
    Site2 (Current Site)

    – When opening a page on existing ‘Site 1’ site1.example.com, the restrictions are still OK. So no MDP active/visible
    – After ‘Network deactivate’ and activate again, the error disappears
    – When opening a page again the MDP is still active/visible

    After a while testing I found this to resolve the problem:

    (Deactivating/activating the MDP plugins can first solve the error issue, but the following two steps solves the problem directly)
    – On the primary site I set the MPD restriction to ‘No Restriction’ and saved it
    – On the primary site I set the MPD restriction back to ‘Templates’ and saved it
    – Every thing look fine again

    Hope this info is helpful to solve the issue.

    Regards,

    Walter Kamer

    https://www.ads-software.com/plugins/multisite-post-duplicator/

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘MPD not working properly/error’ is closed to new replies.