Conversation
supportThis is the full message: Warning: Undefined array key “exclude_current” in […]\wp-content\plugins\ultimate-posts-widget\ultimate-posts-widget.php on line 138 This issue doesn’t seem to be resolved. And original post is closed, so here it comes again.
Hi @abrovink et al., just a quick fix attached. --- ultimate-posts-widget.org.php 2022-10-10 13:51:41.964656264 +0200 +++ ultimate-posts-widget.php 2022-10-10 13:59:32.765066868 +0200 @@ -135,7 +135,7 @@ $atcat = $instance['atcat'] ? true : false; $thumb_size = $instance['thumb_size']; $attag = $instance['attag'] ? true : false; - $exclude_current = $instance['exclude_current'] ? true : false; + $exclude_current = isset($instance['exclude_current']); $excerpt_length = $instance['excerpt_length']; $excerpt_readmore = $instance['excerpt_readmore']; $sticky = $instance['sticky']; Cheers!
I’m also seeing this warning after updating to PHP 8.0. Will it be patched? Thank you.
I just updated a site to PHP 8.1 and am seeing the same error message –so obviously not patched as of now. PHP Warning: Undefined array key “exclude_current” in …/wp-content/plugins/ultimate-posts-widget/ultimate-posts-widget.php on line 135 This is a fairly high-traffic website and I’ve only seen this error once so far in my logs, so I’m not sure what is triggering it.
Hi @abrovink et al., just a quick fix attached. --- ultimate-posts-widget.org.php 2022-10-10 13:51:41.964656264 +0200 +++ ultimate-posts-widget.php 2022-10-10 13:59:32.765066868 +0200 @@ -135,7 +135,7 @@ $atcat = $instance['atcat'] ? true : false; $thumb_size = $instance['thumb_size']; $attag = $instance['attag'] ? true : false; - $exclude_current = $instance['exclude_current'] ? true : false; + $exclude_current = isset($instance['exclude_current']); $excerpt_length = $instance['excerpt_length']; $excerpt_readmore = $instance['excerpt_readmore']; $sticky = $instance['sticky']; Cheers!
I’m also seeing this warning after updating to PHP 8.0. Will it be patched? Thank you.
I just updated a site to PHP 8.1 and am seeing the same error message –so obviously not patched as of now. PHP Warning: Undefined array key “exclude_current” in …/wp-content/plugins/ultimate-posts-widget/ultimate-posts-widget.php on line 135 This is a fairly high-traffic website and I’ve only seen this error once so far in my logs, so I’m not sure what is triggering it.