Hello friends,
It’s happening something strange with the post views count field (post_views_count) in some posts in recent days.
I realized that it is decreasing going to have a lower number of views than days / hours before. It is as if it had returned to zero and restarted again, but I’m not sure if it was because we have so many posts and many hits and I do not I caught any of them with zero views.
I also realized that some of the posts that had this problem are two post_views_count fields, but not in all.
Last week I did the update to the 6.5.5 version of the theme, but do not know if this may have influenced this issue.
What might be happening?
thank you!
Hello fabinhoalmeida,
Your updating to our latest version of the theme surely does not affect your post count view. This kind of issue might be caused by your untested plugins. Please ensure that this kind of issue does not come from there. Try to disable all the active plugins, leave just Visual Composer, clear all cache and install only the plugins that come bundled with our theme and rule out the conflicting plugins. It is possible as some untested plugins to create interference with the theme creating these issues. This is how it looks my post editor -> http://screencast.com/t/Yd8n6hke Also, please make sure that you have enabled Ajax count, like this -> http://screencast.com/t/Yvy4xaK3
Hope this helps and let us know how it goes!
Thank you for the message!
Catalin,
First, thank you for answering.
In fact I always used the Ajax enabled mode and plugins are the same and never occurred problems of the kind since I use the Newspaper.
Anyway, I took the test that you indicated and not solved.
The problem started a week ago and the only change made was a clean reinstallation of WordPress with import of the old installation database with a copy of each table (except wp-options), but I think this could not have caused harm or could it?
In my log errors I found some occurrences that I copy below. This can be a clue?
[16-Mar-2016 22:57:21 UTC] Database Error WordPress Lost connection to MySQL server During query for the SELECT query post_id, meta_key, meta_value are_wp_postmeta FROM WHERE IN post_id (194635,194646,194653,194664,194671,194674,194677,194679,194682,194683,194687,194690,194696,194699,194701,194704,194707,194710,194712,194714,194716,194719,194721,194724,194727,194730,194733,194735,194742,194744,194746,194749,194752,194755,194758,194760,194764,194766,194771,194774,194777,194780,194782,194785,194789,194791,194793,194795,194798,194813,194815,194818,194822,194825,194827,194829,194831,194833,194837,194839,194843,194845,194847,194852,194854,194856,194858,194861,194863,194865,194868,194871,194874,194884,194886,194888,194890,194893,194895,194904,194908,194910,194913,194916,194918,194920,194922,194924,194928,194930,194932,194934,194936,194939,194942,194944,194948,194952,194955,194957) ORDER BY ASC meta_id made by require ( ‘wp-blog-header.php’), wp, WP-> main, WP-> query_posts, WP_Query-> query, WP_Query-> get_posts, do_action_ref_array, call_user_func_array, WPSEO_Sitemaps-> redirect, WPSEO_Sitemaps-> build_sitemap, WPSEO_Sitemaps-> build_post_type_map, update_meta_cache
[16-Mar-2016 22:57:21 UTC] Database Error WordPress Lost connection to MySQL server During query for the SELECT query post_id, meta_key, meta_value FROM WHERE are_wp_postmeta post_id IN (60298,261911,261914,261916, 261918,261921,261924,261929,261932,261935) ORDER bY ASC meta_id made by require ( ‘wp-blog-header.php’), wp, WP-> main, WP-> query_posts, WP_Query-> query, WP_Query- > get_posts, _prime_post_caches, update_post_caches, update_postmeta_cache, update_meta_cache
[14-Mar-2016 03:35:22 UTC] Database Error WordPress Lost connection to MySQL server During query to the query SELECT FROM WHERE SQL_CALC_FOUND_ROWS are_wp_posts.ID are_wp_posts 1 = 1 AND are_wp_posts.post_type = ‘post’ AND ((are_wp_posts.post_status = ‘publish’)) ORDER bY are_wp_posts.post_date DESC LIMIT 0, 5 made by require ( ‘wp-blog-header.php’), require_once ( ‘wp-includes / template-Loader.php’) , include ( ‘/ themes / Newspaper / tag.php’), get_sidebar, locate_template, load_template, require_once ( ‘/ themes / Newspaper / sidebar.php’), require_once ( ‘/ themes / Newspaper / includes / wp_booster / sidebar.php ‘), td_util :: show_sidebar, dynamic_sidebar, call_user_func_array, WP_Widget-> display_callback, td_block_widget-> widget, td_block_text_with_title-> render, td_block-> render, td_data_source :: get_wp_query, WP_Query -> __ construct, WP_Query-> query, WP_Query-> get_posts
[14-Mar-2016 03:35:22 UTC] Database Error WordPress Lost connection to MySQL server During query to the query SELECT FROM WHERE SQL_CALC_FOUND_ROWS are_wp_posts.ID are_wp_posts 1 = 1 AND are_wp_posts.post_type = ‘post’ AND (are_wp_posts.post_status = ‘publish’) ORDER bY are_wp_posts.post_date DESC LIMIT 0, 6 made by require ( ‘wp-blog-header.php’), require_once ( ‘wp-includes / template-Loader.php’), include ( ‘/themes/Newspaper/404.php’), query_posts, WP_Query-> query, WP_Query-> get_posts
Hello fabinhoalmeida,
Unfortunately, these kinds of issue appear because you have problems with your database and I am not able to provide you an accurate response because it is not theme related. Please contact your hosting provider and ask them a fix in this regard because they should be able to give you more accurate explication or fixes.
Thank you for your understanding!
