Title: Some php errors
Last modified: April 13, 2023

---

# Some php errors

 *  Resolved [progressor](https://wordpress.org/support/users/progressor/)
 * (@progressor)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/some-php-errors-2/)
 * 1. The problem can occur if for some reason field “post_view” is not a numeric
   value.
   For example, such code can be added, in postSimplePostView.php:if (!is_numeric(
   $post_views)) {$post_views = 0;}
 * before “$post_views = $post_views + 1;”
 * 2. We can also add a check like this:
   postSimplePostView.php line 43if (is_null(
   $post)) {return;}
 * 3. The visit counting may also not work correctly if LiteSpeed Cache is used.
   I don’t know how to fix this.

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

 *  Plugin Author [Dipakkumar Parmar](https://wordpress.org/support/users/dipakparmar443/)
 * (@dipakparmar443)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/some-php-errors-2/#post-16654794)
 * Hello [@progressor](https://wordpress.org/support/users/progressor/) ,
 * I’ll check it and get back to you soon.
 * Thanks
    -  This reply was modified 3 years, 1 month ago by [Dipakkumar Parmar](https://wordpress.org/support/users/dipakparmar443/).
 *  Plugin Author [Dipakkumar Parmar](https://wordpress.org/support/users/dipakparmar443/)
 * (@dipakparmar443)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/some-php-errors-2/#post-16654799)
 * [@progressor](https://wordpress.org/support/users/progressor/) please disable
   LiteSpeed Cache plugin.
 *  [jeanpaulosm](https://wordpress.org/support/users/jeanpaulosm/)
 * (@jeanpaulosm)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/some-php-errors-2/#post-17010365)
 * Hello, I found out the real reason for the error.
 * It happens that when editing a post in quick mode, wordpress sends the “post_view”
   with the value “list” in the post, to indicate that the post was edited in list
   mode.
 * And this causes the post_view to have the value “list” and this generates the
   error at the time of conversion.
 * That is, this error will occur in ALL posts that are edited in quick mode.

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

The topic ‘Some php errors’ is closed to new replies.

 * ![](https://ps.w.org/wp-simple-post-view/assets/icon-256x256.png?rev=2331949)
 * [Post View Count](https://wordpress.org/plugins/wp-simple-post-view/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-post-view/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-post-view/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-post-view/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-post-view/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-post-view/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 3 participants
 * Last reply from: [jeanpaulosm](https://wordpress.org/support/users/jeanpaulosm/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/some-php-errors-2/#post-17010365)
 * Status: resolved