• 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 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    I am sorry about that. I raised the wp version in the readme to 6.5 (applied in plugin version 1.9.1).

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Version 1.9.2 will make the plugin compatible with older versions of wordpress again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.