Some php errors
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Some php errors’ is closed to new replies.