WPIntell

Source evidence

Warning: Undefined array key “exclude_current”

Ultimate Posts Widget · support · 2022-08-24T09:09:00+00:00

complaintsentiment
mediumseverity
0.86relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 27 rows with source links

14.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
abrovink unresolved
This 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.

Comments

3 shown
Matthieu 2022-10-10T12:00:00+00:00

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!

Razorfrog Web Design 2022-11-26T16:13:00+00:00

I’m also seeing this warning after updating to PHP 8.0. Will it be patched? Thank you.

Abigailm 2023-01-17T06:23:00+00:00

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.