• Resolved codejp3

    (@codejp3)


    Just activated your plugin to try it out for the first time and was immediately presented with these debug messages:

    
    Notice: Trying to access array offset on value of type null in /path/to/wp-content/plugins/honeypot/includes/views/wpa_notice.php on line 29
    
    Notice: Trying to access array offset on value of type null in /path/to/wp-content/plugins/honeypot/includes/views/wpa_notice.php on line 53
    

    Fixed it by changing lines 29 & 53 to:

    
    $all_spam_blocked   = $wpa_stats ? $wpa_stats['total']['all_time'] : 0;
    

    Looking forward to trying out the plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to access array offset on value of type null’ is closed to new replies.