• Resolved OC WordPress Web Designer

    (@oc-wordpress-web-designer)


    Fatal erro when tryign to edit any post or page…..Wordpress 6.4.3, Kadence Blocks 3.2.22

    [13-Feb-2024 23:49:50 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, no array or string given in /nas/content/live/versityinc/wp-includes/class-wp-hook.php:326
    Stack trace: 0 /nas/content/live/versityinc/wp-includes/plugin.php(205): WP_Hook->apply_filters(2560, Array) 1 /nas/content/live/versityinc/wp-content/plugins/kadence-blocks/includes/resources/Traits/Image_Size_Trait.php(49): apply_filters(‘big_image_size_…’, 2560, Array, ”, 0) 2 /nas/content/live/versityinc/wp-content/plugins/kadence-blocks/includes/class-kadence-blocks-image-picker.php(92): Kadence_Blocks_Image_Picker->get_image_sizes() 3 /nas/content/live/versityinc/wp-includes/class-wp-hook.php(324): Kadence_Blocks_Image_Picker->enqueue_media(”) 4 /nas/content/live/versityinc/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 5 /nas/content/live/versityinc/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 6 /nas/content/live/versityinc/wp-includes/media.php(4937): do_action(‘wp_enqueue_medi…’) 7 /nas/content/live/versityinc/wp-admin/edit-form-blocks.php(249): wp_enqueue_media(Array) 8 /nas/content/live/versityinc/wp-admin/post.php(187): require(‘/nas/content/li…’) 9 {main}

    thrown in /nas/content/live/versityinc/wp-includes/class-wp-hook.php on line 326

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    Hey, Thanks for posting. I can’t recreate this. Are you adding any custom filter on big_image_size_threshold?

    Ben

    Thread Starter OC WordPress Web Designer

    (@oc-wordpress-web-designer)

    I’ve debugged that on PHP version 8.2, the error occurs. Can you fix this?

    Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    Hi, testing with PHP 8.2 does not recreate this error for me. The error seems to suggest that there is a third party filter on big_image_size_threshold which is breaking the parameters. Have you tried deactivating plugins? Are you adding any custom filter on big_image_size_threshold?

    Ben

    Thread Starter OC WordPress Web Designer

    (@oc-wordpress-web-designer)

    Found it. Removed the below and it fixed the issues.

    /* Disable Image Side scaling on upload
    ========================================================= */
    add_filter(‘big_image_size_threshold’, 3840);

    Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    Glad you found it, if you want to change the threshold, you can update the code to this:

    add_filter( 'big_image_size_threshold', function() { return 3840; } );
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal Error’ is closed to new replies.