• Resolved progressor

    (@progressor)


    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 43
    if (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 Dipak Parmar

    (@dipakparmar443)

    Hello @progressor ,

    I’ll check it and get back to you soon.

    Thanks

    • This reply was modified 1 year, 7 months ago by Dipak Parmar.
    Plugin Author Dipak Parmar

    (@dipakparmar443)

    @progressor please disable LiteSpeed Cache plugin.

    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.