• 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 ??

Viewing 1 replies (of 1 total)
  • grafis

    (@snackmaster)

    Same issue here, appears the cat and tag warnings started after upgrading to PHP 8.2.3.

    PHP Warning: Undefined array key “tag” in /var/www/user/public_html/wp-content/plugins/recent-posts-widget-extended/classes/class-rpwe-widget.php on line 177

    PHP Warning: Undefined array key “cat” in /var/www/user/public_html/wp-content/plugins/recent-posts-widget-extended/classes/class-rpwe-widget.php on line 176

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined array key “cat” and “tag”’ is closed to new replies.