Undefined array key “cat” and “tag”
-
Hello!
I recently updated the PHP version of my client’s site and am now getting the below errors above each Recent Posts Extended widget.
Warning: Undefined array key “cat” in /home/customer/www/(removed)/public_html/wp-content/plugins/recent-posts-widget-extended/classes/class-rpwe-widget.php on line 176
Warning: Undefined array key “tag” in /home/customer/www/(removed)/public_html/wp-content/plugins/recent-posts-widget-extended/classes/class-rpwe-widget.php on line 177
I have edited the plugin file to comment out these lines (shown below) and this temporarily resolves the problem, but I wondered if you had a more long term fix for if I need to update the plugin?
//$instance[‘cat’]?????????????=?$new_instance[‘cat’];
//$instance[‘tag’]?????????????=?$new_instance[‘tag’];I have cleared the caching plugin several times before trying this and the issue was not resolved.
Thank you ??
- The topic ‘Undefined array key “cat” and “tag”’ is closed to new replies.