• Resolved John Huebner

    (@hube2)


    This plugin is causing an fatal error in the “wp_generate_attachment_metadata” filter. File “…core/mime-types.php” line 251. Some older plugins apply this filter without the $context argument, 3rd parameter. Since your function does not use this argument it would be great if you could set it to a default

    add_filter( 'wp_generate_attachment_metadata', function( $metadata, $attachment_id, $context='' ) {
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webbistro

    (@webbistro)

    Hi John,

    Sorry for such a late response. I’ll add the fix to the next update.

    Best,
    -Nadia

    Plugin Author webbistro

    (@webbistro)

    Hi John, (@hube2)

    It’s fixed in v2.8.15. Thank you for letting me know!

    Best,
    -Nadia

    Thread Starter John Huebner

    (@hube2)

    Glad to help, not sure at this point what site this was on but I had disabled the other plugin that was applying the filter because the other plugin was not being used. I’m pretty sure I posted something on that plugin as well but never heard back on their end.

    Plugin Author webbistro

    (@webbistro)

    Hi John, (@hube2)

    I tested EML with that plugin (I found your message to its author), it was AJAX Thumbnail Rebuild. So, if you decide to activate it again, it will work. Also, if any other plugin uses the hook with too few arguments it will work anyway.

    Best,
    -Nadia

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