• Resolved Nitin Rathod

    (@rnitinb)


    Hello,

    when I install the plugin from WordPress admin and when I activate it then it shows the error.

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be a valid callback, non-static method NM_PLUGIN_WPComments::activate_plugin() cannot be called statically in \wp-includes\class-wp-hook.php:292 Stack trace: #0 \wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #1 \wp-includes\plugin.php(484): WP_Hook->do_action(Array) #2 \wp-admin\plugins.php(193): do_action('activate_wp-com...') #3 {main} thrown in \wp-includes\class-wp-hook.php on line 292

    I have PHP Version 8.0.2.

    Please fix the error.

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin could not be activated because it triggered a fatal error.’ is closed to new replies.