Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jeffrey-wp

    (@jeffrey-wp)

    We are not getting any errors when testing our plugin with WordPress 8.1
    Do you have any errors or warnings? We like to look into that.

    Thread Starter randyparker

    (@randyparker)

    Thank you for your reply.

    When the plugin is active and I go to Media in the WP CMS, I get this error:

    [Tue Nov 01 17:38:27.431930 2022] [php:error] [pid 879966] [client 38.88.202.62:63619] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method Media_Categories::enqueue_media_categories_scripts() cannot be called statically in /var/www/html/rellpower/wp/wp-includes/class-wp-hook.php:307\nStack trace:\n#0 /var/www/html/rellpower/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()\n#1 /var/www/html/rellpower/wp/wp-includes/plugin.php(476): WP_Hook->do_action()\n#2 /var/www/html/rellpower/wp/wp-includes/media.php(4642): do_action()\n#3 /var/www/html/rellpower/wp/wp-admin/upload.php(25): wp_enqueue_media()\n#4 {main}\n thrown in /var/www/html/rellpower/wp/wp-includes/class-wp-hook.php on line 307, referer: https://rellpower.moveodev.com/wp/wp-admin/

    Hope that helps.

    Plugin Author jeffrey-wp

    (@jeffrey-wp)

    The function enqueue_media_categories_scripts is not used in this plugin. So we think another plugin is causing the error. Have you tried turning other plugins on and off to see when the error is active?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 8.1 Support’ is closed to new replies.