• Dan

    (@geekysoft)


    While resizing several hundred images.

    [02-Jan-2018 05:04:01 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/wp-includes/media.php:757
    Stack trace:
    #0 /var/www/wp-includes/media.php(225): image_get_intermediate_size(‘184’, ‘square-640’)
    #1 /var/www/wp-includes/media.php(824): image_downsize(‘184’, ‘square-640’)
    #2 /var/www/wp-content/plugins/image-regenerate-select-crop/image-regenerate-select-crop.php(1538): wp_get_attachment_image_src(‘184’, ‘square-640’)
    #3 /var/www/wp-content/plugins/image-regenerate-select-crop/image-regenerate-select-crop.php(817): SIRSC_Image_Regenerate_Select_Crop::ajax_regenerate_image_sizes_on_request(Array)
    #4 /var/www/wp-includes/class-wp-hook.php(286): SIRSC_Image_Regenerate_Select_Crop::show_actions_result(”)
    #5 /var/www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #6 /var/www/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/wp-admin/admin in /var/www/wp-includes/media.php on line 757

Viewing 1 replies (of 1 total)
  • Thread Starter Dan

    (@geekysoft)

    Server ran out of memory and MariaDB crashed. However, the plugin should check the return value is the expected type and not assume it will always be an error.

    (Also, any way to slow it down so it doesn’t consume so much memory?)

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught Error: Cannot use object of type WP_Error as array’ is closed to new replies.