• Resolved Rafael Fischmann

    (@rfischmann)


    I was trying to delete a couple of old images from our WordPress media library, but it was generating an error.

    I was able to pinpoint it to Imagify and, after disabling the plugin, I was able to delete the images.

    Here are the error details:

    Um erro do tipo E_ERROR foi causado na linha 1428 do arquivo /home/macmagazine/public_html/wp-content/plugins/imagify/classes/Optimization/Process/AbstractProcess.php. Mensagem de erro: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, null given in /home/macmagazine/public_html/wp-content/plugins/imagify/classes/Optimization/Process/AbstractProcess.php:1428
    Stack trace:
    #0 /home/macmagazine/public_html/wp-content/plugins/imagify/classes/Optimization/Process/AbstractProcess.php(1428): strpos(NULL, 'image/')
    #1 /home/macmagazine/public_html/wp-content/plugins/imagify/inc/common/attachments.php(41): Imagify\Optimization\Process\AbstractProcess->delete_nextgen_files(false, true)
    #2 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(324): imagify_cleanup_after_media_deletion(Object(Imagify\Optimization\Process\WP))
    #3 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #4 /home/macmagazine/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /home/macmagazine/public_html/wp-content/plugins/imagify/inc/functions/media.php(21): do_action('imagify_delete_...', Object(Imagify\Optimization\Process\WP))
    #6 /home/macmagazine/public_html/wp-content/plugins/imagify/inc/common/attachments.php(20): imagify_trigger_delete_media_hook(Object(Imagify\Optimization\Process\WP))
    #7 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(326): imagify_trigger_delete_attachment_hook(133548)
    #8 /home/macmagazine/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #9 /home/macmagazine/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home/macmagazine/public_html/wp-includes/post.php(6370): do_action('delete_attachme...', 133548, Object(WP_Post))
    #11 /home/macmagazine/public_html/wp-admin/post.php(321): wp_delete_attachment(133548, true)
    #12 {main}
    thrown
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi,

    Thank you for contacting us.

    We’re aware of this bug, and it has already been reported to our developers. You can track the progress from here: GitHub Issue #888.

    I don’t have an ETA as of now, but you can try the patched version attached in the above link and see if it helps.

    Thank you for your patience and understanding.

    Best Regards,
    Saransh.

    Thread Starter Rafael Fischmann

    (@rfischmann)

    Thanks, @wp_media. I’ve already deleted the images I wanted after temporarily disabling Imagify, so I’ll wait for an official/stable update with the fix.

    Plugin Author WP Media

    (@wp_media)

    Hi,

    Thank you for the update.

    We appreciate your patience and understanding.

    If you have any further questions or need assistance in the meantime, please don’t hesitate to reach out.

    Best Regards,

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