• Resolved aliryanaa

    (@aliryanaa)


    Hi guys,

    New update today has caused issues on my WP dashboard, can’t get into any posts at all.

    Error is:

     Fatal error: Uncaught Error: Call to undefined function crop_thumbnails\wp_enqueue_script_module()
    in /home/830228.cloudwaysapps.com/anszmdsdan/public_html/wp-content/plugins/crop-thumbnails/functions/backendpreparer.php on line 96

    Call stack:

    1. crop_thumbnails\CropPostThumbnailsBackendPreparer::adminHeaderJS()
      wp-includes/class-wp-hook.php:324
    2. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:348
    3. WP_Hook::do_action()
      wp-includes/plugin.php:517
    4. do_action()
      wp-admin/admin-header.php:146
    5. require_once()
      wp-admin/edit-form-advanced.php:425
    6. require()
      wp-admin/post.php:206

Viewing 2 replies - 1 through 2 (of 2 total)
  • signelazer

    (@signelazer)

    The same ??

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi there,

    in version 1.9 i used a new functions (wp_enqueue_script_module) that where introduced in WordPress 6.5 (half a year ago).

    You have the following options:

    • Update WordPress (recommended)
    • You may use version 1.8.0 if you do not want to update to the newest WordPress.
    • Alternatively you may try to fix this by changing back the parts where the the function is used. Be aware that you need to redo this every time the plugin gets an update.
      • Revert wp_enqueue_script_module back to wp_enqueue_script
        functions\backendpreparer.php (line 96)
        functions\settingsscreen.php (line 19)
    • An alternative would be to create the wp_enqueue_script_module function on your own and wrap it to use the wp_enqueue_script function.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.