themejunkie / recent-posts-widget-extended

Provides flexible and advanced recent posts widget. Allows you to display them with thumbnails, post excerpt, specific category and more.
https://wordpress.org/plugins/recent-posts-widget-extended/
14 stars 25 forks source link

Image resizing crashes things, even when no thumbnails should be shown #62

Open evjan opened 8 years ago

evjan commented 8 years ago

I've identified what seems like a bug related to this line in functions.php: $image = rpwe_resize( $img_url, $args['thumb_width'], $args['thumb_height'], true );

I'm using version 0.9.9.5.

When left in it takes roughly 7 secs to load and then no widgets at all are shown. I'm not a PHP aficionado, so my bug hunting skills are rather limited. But when I comment out that line everything is fine. This wasn't a problem until a very recent update to the latest version of the widget.

Also, "Display Thumbnail" is unchecked in the settings, so I'm assuming this shouldn't be called anyway.

More info: it only happens when I set the widget to display certain kinds of items, published posts. If I changed the setting to draft posts it didn't crash. So it seems related to one or more specific posts.