[Plugin: WP-PageNavi] Notice error when debug is turned on
-
I am getting the following notice error when I have debug turned on:
Notice: Undefined index: postviews_id in /wordpress/wp-content/plugins/wp-postviews/wp-postviews.php on line 646
Line 646 is currently set as:
$post_id = intval($_GET['postviews_id']);
To remove the notice error, it just needs to be changed to:
$post_id = isset($_GET['postviews_id']) ? intval($_GET['postviews_id']) : 0;
Hope that helps!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: WP-PageNavi] Notice error when debug is turned on’ is closed to new replies.