• Resolved richardlampitt

    (@richardlampitt)


    The most recent version of the plugin is missing a minimum WordPress core version requirement (6.5) that causes a fatal error on sites that need to run on an older core version.

    The wp_enqueue_script_module() core function used in functions/backendpreparer.php was added only in 6.5:

    [21-Oct-2024 11:52:22 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function crop_thumbnails\wp_enqueue_script_module() in /home/site-name/public_html/wp-content/plugins/crop-thumbnails/functions/backendpreparer.php:96
    Stack trace:
    #0 /home/site-name/public_html/wp-includes/class-wp-hook.php(324): crop_thumbnails\CropPostThumbnailsBackendPreparer->adminHeaderJS('')
    #1 /home/site-name/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #2 /home/site-name/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/site-name/public_html/wp-admin/admin-header.php(146): do_action('admin_print_scr...')
    ... site-specific trace.

    The plugin should either add the missing minimum version requirement to the plugin meta in crop-thumbnails.php, or add a shim to ensure that backwards compatibility isn’t broken.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal Error from backwards incompatible missing minimum WordPress version (6.5)’ is closed to new replies.