• Resolved Filmguy2013

    (@filmguy2013)


    Hello. I updated the plugin to v1.2.0 and it doesn’t show the bars or the pageviews or anything in my WordPress dashboard. It just shows the Koko Analytics box, but no statistics. Also, when I click the Koko Analytics settings menu in Installed Plugins, I get this error message on the settings page:

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @filmguy2013,

    Does updating to version 1.2.1 fix the issue for you?

    silsbyc

    (@silsbyc)

    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 1 year ago by silsbyc.
    • This reply was modified 1 year ago by silsbyc.
    Thread Starter Filmguy2013

    (@filmguy2013)

    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.

    Plugin Author Danny van Kooten

    (@dvankooten)

    @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?

    Thread Starter Filmguy2013

    (@filmguy2013)

    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

    Plugin Author Danny van Kooten

    (@dvankooten)

    Thank you @filmguy2013, that does sound like a bug. With this info I know enough how to replicate and fix it!

    Plugin Author Danny van Kooten

    (@dvankooten)

    @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?

    Optimizing Matters

    (@optimizingmatters)

    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

    Thread Starter Filmguy2013

    (@filmguy2013)

    @danny The time zone is set to New York and the week starts on Sunday. Yes, it does match the time of my computer.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Critical Error and Doesn’t Show Pageviews’ is closed to new replies.