• Resolved onurparlar

    (@onurparlar)


    Hello,

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function ddur\Warp_iMagick\Plugin::on_intermediate_image_sizes_advanced_minus100_filter(), 1 passed in /home/sanawgco/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/sanawgco/public_html/icerik/plugins/warp-imagick/classes/class-plugin.php:156
    Stack Trace
    1. ddur\Warp_iMagick\Plugin->on_intermediate_image_sizes_advanced_minus100_filter(Array)/home/sanawgco/public_html/wp-includes/class-wp-hook.php:287
    2. WP_Hook->apply_filters(Array, Array)/home/sanawgco/public_html/wp-includes/plugin.php:206
    3. apply_filters(‘intermediate_im…’, Array)/home/sanawgco/public_html/icerik/plugins/imagemagick-engine/imagemagick-engine.php:706
    4. ime_ajax_process_image(”)/home/sanawgco/public_html/wp-includes/class-wp-hook.php:287
    5. WP_Hook->apply_filters(”, Array)/home/sanawgco/public_html/wp-includes/class-wp-hook.php:311
    6. WP_Hook->do_action(Array)/home/sanawgco/public_html/wp-includes/plugin.php:478
    7. /home/sanawgco in /home/sanawgco/public_html/icerik/plugins/warp-imagick/classes/class-plugin.php on line 156

    I’m getting this PHP error, can you help me?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, I can help you.

    Change

    public function on_intermediate_image_sizes_advanced_minus100_filter( $sizes, $metadata ) {

    to

    public function on_intermediate_image_sizes_advanced_minus100_filter( $sizes, $metadata = false ) {

    That should fix your problem until next update.

    Thread Starter onurparlar

    (@onurparlar)

    @ddur

    Sorry for my late answer and thank you for your quick respone.

    Actually you don’t have any mistake with your plugin’s code.
    I discovered something else, “ModSecurity” ??
    In fact it was already killing me.

    Btw thank you again.

    Ethem
    Cheers

    @onurparlar

    Yeah, I know, that may be caused only by some very unusual plugin.
    I wonder why would any not image related plugin use that hook.
    Until now, nobody had problem with missing argument.
    Still I could have handle it better.

    Thanks for reporting.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error’ is closed to new replies.