so seems like this plugin is shelfed and abandoned by the developer, I reported the issue that it is taking too much time and quering is very slow because it was storing all visits as rows then counting those rows on every page visit to show total visitors.$all_total_visitors = $wpdb->get_var("SELECT COUNT(*) FROM $visitors_stat ") + $initial_value;
This was the code which was causing 8 to 10 seconds depends on how many rows you have in that table.
I fixed it by changing some logics,
like instead of counting and then showing all visits, I used my own function to write total visitors into new column so when I get 100 visits, it shows 100 rows and in every row it shows total visitors column which equal to 100 in 100th row.
so now this logic aside I added a DELETE query to delete rows which are older than 1 day so live visits and today’s visits don’t get affected.
so now It is much faster, I still have to look at duplicate queries it is making for showing today and live visits.
“View as HTML” crashes the widget !!!
]]>Query Monitor showing 14 calls on every page from your Plugin, each of them taking ~0.2 seconds to execute
SELECT COUNT() FROM wp_visitors_stat WHERE time BETWEEN 1702512000 AND 1702598399 wvw_visitors_widget() Plugin: wp-visitors-widget 1 0.1933 SELECT COUNT()
FROM wp_visitors_stat
wvw_visitors_widget()
Plugin: wp-visitors-widget 1 0.1197
SELECT DISTINCT ip
FROM wp_visitors_stat
WHERE time BETWEEN 1702553863
AND 1702571863
wvw_visitors_widget()
Plugin: wp-visitors-widget 220 0.2247
SELECT DISTINCT ip
FROM wp_visitors_stat
WHERE time BETWEEN 1702512000
AND 1702533600
wvw_get_graph_array()
Plugin: wp-visitors-widget 235 0.2050
SELECT DISTINCT ip
FROM wp_visitors_stat
WHERE time BETWEEN 1702533600
AND 1702555200
wvw_get_graph_array()
Plugin: wp-visitors-widget 246 0.2237
SELECT DISTINCT ip
FROM wp_visitors_stat
WHERE time BETWEEN 1702555200
AND 1702576800
wvw_get_graph_array()
Plugin: wp-visitors-widget 202 0.2119
SELECT DISTINCT ip
FROM wp_visitors_stat
WHERE time BETWEEN 1702576800
AND 1702598400
wvw_get_graph_array()
Plugin: wp-visitors-widget 0 0.2106
SELECT COUNT() FROM wp_visitors_stat WHERE time BETWEEN 1702512000 AND 1702598399 wvw_visitors_widget() Plugin: wp-visitors-widget 1 0.2160 SELECT COUNT()
FROM wp_visitors_stat
wvw_visitors_widget()
Plugin: wp-visitors-widget 1 0.1174
SELECT DISTINCT ip
FROM wp_visitors_stat
WHERE time BETWEEN 1702553865
AND 1702571865
wvw_visitors_widget()
Plugin: wp-visitors-widget 220 0.2083
SELECT COUNT() FROM wp_visitors_stat WHERE time BETWEEN 1702121865 AND 1702229865 wvw_get_graph_array() Plugin: wp-visitors-widget 1 0.1752 SELECT COUNT()
FROM wp_visitors_stat
WHERE time BETWEEN 1702229865
AND 1702337865
wvw_get_graph_array()
Plugin: wp-visitors-widget 1 0.2010
SELECT COUNT() FROM wp_visitors_stat WHERE time BETWEEN 1702337866 AND 1702445866 wvw_get_graph_array() Plugin: wp-visitors-widget 1 0.1771 SELECT COUNT()
FROM wp_visitors_stat
WHERE time BETWEEN 1702445866
AND 1702553866
wvw_get_graph_array()
Plugin: wp-visitors-widget 1 0.1719
]]>
please can you help me how to make the plugin to be in row not in column i need it to be with the width of the page
]]>Suddenly this two messages started to show:
Uma sess?o PHP foi criada por uma chamada à fun??o?session_start()
. Isso interferir na API REST e nos solicita??es loopback. A sess?o deve ser fechada por?session_write_close()
?antes de fazer qualquer solicita??o HTTP.
and
Endpoint da API REST: https://piorevangelho.online/wp-json/wp/v2/types/post?context=edit
Resposta da API REST: (http_request_failed) cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received
I just disabled all my plugins and started to activate one by one until find that Live Visitor Counter is the cause of error.
What can I do??
Installation seems to be going well.
But the plugin itself can’t be found on my WP 6.3.1 site?
Other visitor counter plugins work ok.
I would have liked to try the “Live Visitor Counter”.
So the plugin can’t be found anywhere on my admin page.
best wishes
Hannu Haaranen, Finland
I don’t know how to use this plugin. I can’t find any widgets and also missing the documentation.
]]>I suspect that the counter is inaccurate. My wordpress stats will show several hundred visitors to a post, but the Live Counter will show that several thousand visitors have come. I’ve doube-checked the WordPress stats for several posts dating back a week or so, but their stats haven’t increased to help explain Live Counter’s stats. I’ll admit I kind of enjoy seeing that stat grow but want to make sure it’s accurate.
]]>I’m a complete newbie to wordpress. So this is probably a real stupid problem. The installation was extremely easy (drag and drop the zip file). The plug-ins page shows the Live-counter as installed and activated. But when I’m on the editor for a target page, I cannot find see the counter among the widgets (or any other plug-in). Any hints will be appreciated.
]]>I really like the plugin, but WordPress shows two critical errors on the site health screen with this plugin:
Hi, I’m trying to use this plugin, but I’m getting a lot of Warning errors visible on the page. can see the errors via the link but it is only visible in mobile or by narrowing the page below 420px wide.
How do I solve?
also i would like to know if it is possible to use the verbose mode by orienting the widget horizontally and remove the borders as i would insert them in my Elementor containers.
]]>Hello! Is there any sort of ETA on when the next update for this plugin will be released? It’s being flagged as “Untested with your version of WordPress.”
Thanks!
]]>Hi, the plugin looks great and works almost fine. I use the ‘Mini layout’ as I do not want the numbers to be too large, but the window size doesn’t auto adjust (width) to the numbers.
]]>nice plugin
I wonder why does it put hundreds of thousands (on its own) of entries in the PHP database? can I reset this properly?
Hi @liveplugins i see that you are now updating this Plug in again, great. I tried to use it but i have 2 issues…
1) There is a link under the Counter which is basically no problem, bur ONLY if this link opens in a NEW Window not in the same window, so my page will get lost, not good practice, could you change this?
2) As i can see it, the plug in uses Google fonts etc. this should be changed inti using the theme fonts, just to be on the safe side regarding GDPR, roght? Or is there a way around so that this plug in will not use google?
Please let me know about this issues, thanks!
]]>Hi!
I installed and activated the Live Visitor Counter plugin, but the Widget does not show up in the Block list. So I can’t integrate it into my site. Am I missing anything?
I’m new to WordPress, but I did not have any issue getting WPS Visitor Counter up and running ??
Running WordPress 5.9.2.
Thanks! Michael
]]>If I activate your plugin, the wordpress health report shows 2 warnings:
1) An active PHP session was detected
2) The REST API encountered an error. Error: cURL error 28: Operation timed out to 10000 milliseconds with 0 bytes received (http_request_failed)
Please fix this issue.
Thx
WP v5.9
PHP 7.4
Hello,
the plugin is causing a problem with php, this statement occurs in my dashboard:
The PHP default timezone was changed after loading WordPress by a date_default_timezone_set() function call. This affects correct date and time calculations.
Anybody got a solution for this?
]]>Hi,
Every page on my website shows different count for live, todays and total number of visitors. i have tried clearing the site cache many times but no success.
Thanks in advance.
]]>Hi Adam…
In relation to your Live Visitor Counter…
How can I change the daily reset time to my local time of 12:00am (midnight)???
Your Live Visitor Counter widget currently resets at 08:00am my local time…
My local time is as follows…
Time zone in Kupang, Kupang City, East Nusa Tenggara, Indonesia (GMT+8)
I am looking forward to your reply…
Donovan.
]]>Hi @liveplugins
long ago for an update of the counter is thes plug in still in maintance?
]]>Nice plugin ,I donot want to use widget,instead I want to display visitors on custom page footer is there any shortcode to achive this….?
]]>I installed this plugin on my site and 5 seconds after I installed it said I had 17 hits really. So in one hr I could have 2500 to 4000 hits I do not thinks so. This plugin is counting every spam junk and hacking bot as hits, it is also counting every time you refresh the site as another hit. Please fix these things I like this plugin.
]]>I’m looking for a plugin to let me know if there is some users online, in the welcome dashboard, globally on all the website. It’s really useful when you need to update a plugin and quick look if nobody is online live.
Would be great if you had this function too.
]]>Hi,
Would it be possible to set at number other than 0 that the counter will start counting from?
I currently have a client who would like to transfer their exitising 30.000 visits over to a new and improved site.
]]>