• Resolved Delta Systems

    (@deltasystemsgroup)


    just installed this plugin to help clients with a quick message to their users related to covid-19 things.
    But I can’t activate the plugin on multisite installs. It reads

    Plugin could not be activated because it triggered a fatal error.

    You can still activate the plugin from each website’s dashboard. The only thing “concerning” here is that you get a fatal error when trying to network activate

    • This topic was modified 4 years, 8 months ago by Delta Systems.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @deltasystemsgroup – Sorry to hear that. Do you by chance know what the error message was? Can you get it from your logs?

    Happy to dig into it.

    Please message us directly at https://wppopupmaker.com/support/.

    Same problem here:

    
    2020/03/23 11:38:12 [error] 30285#30285: *989121 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function pum_is_func_disabled() in /home/xxx/xxx.it/wp-content/plugins/popup-maker/classes/Install.php:58
    Stack trace:
    #0 /home/xxx/xxx.it/wp-content/plugins/popup-maker/classes/Install.php(22): PUM_Install::do_multisite()
    #1 /home/xxx/xxx.it/wp-includes/class-wp-hook.php(288): PUM_Install::activate_plugin()
    #2 /home/xxx/xxx.it/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters()
    #3 /home/xxx/xxx.it/wp-includes/plugin.php(478): WP_Hook->do_action()
    #4 /home/xxx/xxx.it/wp-admin/includes/plugin.php(681): do_action()
    #5 /home/xxx/xxx.it/wp-admin/plugins.php(44): activate_plugin()
    #6 /home/xxx/xxx.it/wp-admin/network/plugins.php(13): require('/home/xxx...')
    #7 {main}
      thrown in /home/xxx/xxx.it/wp-content/plugins/popup-maker/classes/Install.php on line 58" while reading response header from upstream, client: 77.32.64.115, server: www.xxx.it, request: "GET /wp-admin/network/plugins.php?_wpnonce=9f712b1eaa&action=activate&plugin=popup-maker%2Fpopup-maker.php&networkwide=1 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm-xxx.sock:", host: "www.xxx.it", referrer: "https://www.xxx.it/wp-admin/network/plugin-install.php?s=Popup+Maker&tab=search&type=term"
    

    This issue is not resolved! I have the same problem too.
    The plugin can be installed but not activated for the whole network. The error “Plugin could not be activated because it triggered a fatal error” is displayed and the plugin cannot be uninstalled. Uninstalling the plugin causes an AJAX error.

    As deltasystemsgroup writes, the plugin can only be activated on the individual pages.

    Can you please do a test with a multisite installation. I’m sure you will have the same problem.

    I would like to contact you directly via https://wppopupmaker.com/support but your site is offline.

    • This reply was modified 4 years, 4 months ago by Oekkes.
    • This reply was modified 4 years, 4 months ago by Oekkes.

    Fixed that issue by moving the pum_is_func_disabled() from general.php to Install.php as a static method and changed the function call.

    
    	/**
    	 * Checks whether function is disabled.
    	 *
    	 * @since 1.4
    	 *
    	 * @param string $function Name of the function.
    	 *
    	 * @return bool Whether or not function is disabled.
    	 */
    	private static function pum_is_func_disabled( $function ) {
    		$disabled = explode( ',', ini_get( 'disable_functions' ) );
    
    		return in_array( $function, $disabled );
    	}
    
    
    if ( ! self::pum_is_func_disabled( 'set_time_limit' ) ) {
    					@set_time_limit( 0 );
    				}
    

    At least it worked on our multisite and the plugin is working as intended.

    Hello,

    I am still having the error. When I try to activate the plugin the following message shows up: Plugin could not be activated because it triggered a fatal error.

    I have tried changing the plugin files as @forge12 suggests but then I get other errors regarding “Action Scheduler”.

    This is one example:

    Table 'dbs2d3ndkzah83.ozy_13_actionscheduler_actions' doesn't exist in /home/customer/www/sampere.com/public_html/wp-content/plugins/popup-maker/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44

    Thanks for your patience and help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘fatal error on multisite network activate’ is closed to new replies.