Error activating limb gallery on WP6.0
-
I get the following error when trying to activate the plugin. The site is using php 8.0.
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method LIMB_Gallery::grsActivate() cannot be called statically in wp-includes/class-wp-hook.php:307 Stack trace: #0 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #1 wp-includes/plugin.php(476): WP_Hook->do_action(Array) #2 wp-admin/plugins.php(194): do_action(‘activate_limb-g…’) #3 {main} thrown in wp-includes/class-wp-hook.php on line 307
Changing it to: public static function grsActivate()
seems to fix the problem.
- The topic ‘Error activating limb gallery on WP6.0’ is closed to new replies.