Hello @filmguy2013,
Does updating to version 1.2.1 fix the issue for you?
I am seeing the same “critical error” when attempting to access the settings. Koko used to work correctly for a long time without errors on our multisite (activated individually per site), and only started appearing after 1.2. This critical error is still happening on 1.3.1.
The error log says:
PHP Fatal error: Uncaught TypeError: Return value of KokoAnalytics\Admin::get_database_size() must be of the type string, null returned in /wp-content/plugins/koko-analytics/src/class-admin.php:250
-
This reply was modified 2 years, 8 months ago by
silsbyc.
-
This reply was modified 2 years, 8 months ago by
silsbyc.
Hello, Danny. Sorry for the late reply. Yes, updating to v1.2.1 fixed the critical error problem. However, I migrated my website to a new web host, and now Koko Analytics isn’t refreshing the page views and visitors in real time in my WordPress dashboard like it was doing before. Any ideas on how to fix this? I tried deleting the plugin and reinstalling it, but that didn’t seem to make any difference.
@silsbyc Nice catch. It looks like the plugin is somehow unable to read the database size from MySQL (most likely due to permissions or maybe a multisite thing) and the return type declaration is choking on the null type. Will be fixed in tomorrow’s update!
@filmguy2013 That is strange. Are stats still being recorded, just at a slight delay? Or is nothing being recorded now that you’ve moved servers?
Well, it looks like if I clear the website’s cache using WP Fastest Cache and Autoptimize, Koko Analytics THEN shows the updated stats in the WordPress dashboard. Of course, if I click “View all statistics” it shows the correct up-to-date stats. But, before, whenever I opened my WordPress dashboard, that red statistics bar would automatically grow higher which means that it would automatically show the updated stats. Now, in order to see the updated stats, I have to clear the website’s cache and when the page reloads, the red stats bar is higher because it shows the updated stats. Please see the following screenshots using the links below. Each screenshot was taking within seconds of each other. The first link shows the analytics inside my WordPress dashboard (653 pageviews) and the second screenshot shows the “View all statistics” dashboard (913 pageviews):
https://paste.pics/920024856e9ca02bc8f30c298da854c6
https://paste.pics/e48e6687cf56ec3a1476f2b92f9f593c
Thank you @filmguy2013, that does sound like a bug. With this info I know enough how to replicate and fix it!
@filmguy2013 One more question: what timezone offset is set in the WP Admin > Settings > General > Timezone setting and does this match the time of your computer?
now Koko Analytics isn’t refreshing the page views and visitors in real time in my WordPress dashboard like it was doing before
same here, no WPFC (but I am behind Cloudflare), but -obviously- AO as well. the thing is; AO does not act on the admin-screens and does (or should) not interact with AJAX requests (which are what the dashboard feeds on). let me know if you need info from me!
frank
@danny The time zone is set to New York and the week starts on Sunday. Yes, it does match the time of my computer.
-
This reply was modified 2 years, 8 months ago by
Filmguy2013.