• Resolved Scott Paterson

    (@scottpaterson)


    This is a great plugin idea! I wish you good luck with this plugin, I can see a lot of people using it.

    A few problems:

    1. Installed it on a non-multisite install and the shortcode ( [epd_register] ) does not seem to do anything when put on a page. Tested with only this plugin active with 2017 Theme. It does continue to display the shortcode on the page, so it doesn’t look like the shortcode code is even being run.

    2. Installed it on a multisite install and tried to network active the plugin but got the PHP error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function add_site_option(), 1 passed in C:\www\multisite\wp-content\plugins\easy-plugin-demo\includes\admin\settings\register-settings.php on line 352 and exactly 2 expected in C:\www\multisite\wp-includes\option.php:1126 Stack trace: #0 C:\www\multisite\wp-content\plugins\easy-plugin-demo\includes\admin\settings\register-settings.php(352): add_site_option(‘epd_settings’) #1 C:\www\multisite\wp-includes\class-wp-hook.php(286): epd_register_settings(”) #2 C:\www\multisite\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 C:\www\multisite\wp-includes\plugin.php(453): WP_Hook->do_action(Array) #4 C:\www\multisite\wp-admin\admin.php(156): do_action(‘admin_init’) #5 C:\www\multisite\wp-admin\network\admin.php(13): require_once(‘C:\\www\\multisit…’) #6 C:\www\multisite\wp-admin\network\plugins.php(11): require_once(‘C:\\www\\multisit…’) #7 {main} thrown in C:\www\multisite\wp-includes\option.php on line 1126

    Tested on a Win 7 WAMP install running Apache/2.4.27 and PHP/7.1.9

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

    (@mikeyhoward1977)

    Hey @scottpaterson,

    Sorry for the delay. I missed your post initially.

    Firstly, thanks for your comments.

    1. This is by design. EPD will only run on multisite. If the plugin detects a non-multisite environment, the rest of the code base does not run.

    2. I will address this error now and publish an update ASAP.

    Plugin Author Michael

    (@mikeyhoward1977)

    Update released to address the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Network activate issue’ is closed to new replies.