Title: Error Undefined array key &#8220;views&#8221;
Last modified: August 20, 2021

---

# Error Undefined array key “views”

 *  Resolved [Bruno Martinez](https://wordpress.org/support/users/brmartinez/)
 * (@brmartinez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-undefined-array-key-views/)
 * Hello, can you give me a hand? I’ve noticed your plugin is causing these errors
   in my PHP log:
 * [20-Aug-2021 14:56:48 UTC] PHP Warning: Undefined array key “views” in /home/
   showmetechcom/public_html/wp-content/plugins/wp-postviews/wp-postviews.php on
   line 805
    [20-Aug-2021 14:56:48 UTC] PHP Warning: Trying to access array offset
   on value of type null in /home/showmetechcom/public_html/wp-content/plugins/wp-
   postviews/wp-postviews.php on line 805 [20-Aug-2021 14:58:00 UTC] PHP Warning:
   Undefined array key “views” in /home/showmetechcom/public_html/wp-content/plugins/
   wp-postviews/wp-postviews.php on line 805 [20-Aug-2021 14:58:00 UTC] PHP Warning:
   Trying to access array offset on value of type null in /home/showmetechcom/public_html/
   wp-content/plugins/wp-postviews/wp-postviews.php on line 805`
 * They end up flooding the logs, with more than 600 entries, only today.
 * Can you help me fix it?
 * Kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ronak J Vanpariya](https://wordpress.org/support/users/vanpariyar/)
 * (@vanpariyar)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-undefined-array-key-views/#post-15162136)
 * [@brmartinez](https://wordpress.org/support/users/brmartinez/) sure i will fix
   this issue.
 *  Plugin Author [Ronak J Vanpariya](https://wordpress.org/support/users/vanpariyar/)
 * (@vanpariyar)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-undefined-array-key-views/#post-15178161)
 * [@brmartinez](https://wordpress.org/support/users/brmartinez/) Sorry to Hear 
   about your Error.
 * The code are you referring is [https://plugins.trac.wordpress.org/browser/wp-postviews/trunk/wp-postviews.php](https://plugins.trac.wordpress.org/browser/wp-postviews/trunk/wp-postviews.php).
 * This is from the Plugin [https://wordpress.org/plugins/wp-postviews/](https://wordpress.org/plugins/wp-postviews/)
 * This can be solved from their support
 * I am closing this issues 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error Undefined array key “views”’ is closed to new replies.

 * ![](https://ps.w.org/wp-post-views/assets/icon-256x256.png?rev=3539121)
 * [Wp Post Views - Wordpress Post views counter](https://wordpress.org/plugins/wp-post-views/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-views/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-views/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-views/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-views/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-views/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ronak J Vanpariya](https://wordpress.org/support/users/vanpariyar/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/error-undefined-array-key-views/#post-15178161)
 * Status: resolved