Error deleting old images
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.