• Resolved akinore

    (@akinore)


    Hello everyone, today at the end of the day I am receiving this error and now I no longer have access to the Analytics panel. Thank you in advance for your help

    Fatal error: Uncaught Error: unlink(): Argument #2 ($context) must be of type resource or null, int given
    in?/mypast/mypast/mywebsite/wp-content/plugins/koko-analytics/src/class-aggregator.php?on line?66

    Call stack:

    1. unlink()
      wp-content/plugins/koko-analytics/src/class-aggregator.php:66
    2. KokoAnalytics\Aggregator::aggregate()
      wp-includes/class-wp-hook.php:310
    3. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:334
    4. WP_Hook::do_action()
      wp-includes/plugin.php:517
    5. do_action()
      wp-content/plugins/koko-analytics/src/class-admin.php:117
    6. KokoAnalytics\Admin::show_page()
      wp-includes/class-wp-hook.php:310
    7. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:334
    8. WP_Hook::do_action()
      wp-includes/plugin.php:517
    9. do_action()
      wp-admin/admin.php:259
    10. require_once()
      wp-admin/index.php:10
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Lap

    (@lapzor)

    Hi,

    Thank you for reporting this. The issue is fixed in the next update.

    The development version on Github already has this latest fix in case you can’t wait for the next update cycle.

    Thanks again!

    Kind regards,

    Thread Starter akinore

    (@akinore)

    Thanks for the quick response. I installed the GitHub version, the error no longer appears but when I access the panel the screen is blank

    Thread Starter akinore

    (@akinore)

    Now the site has broken and returns the following error

    Fatal error: Uncaught Error: Failed opening required ‘/home/mypast/mywebsite/wp-content/plugins/koko-analytics-master/src/src/class-migrations.php’ (include_path=’.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php’)
    in?/home/mypast/mywebsite/wp-content/plugins/koko-analytics-master/src/class-plugin.php?on line?65

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @akinore,

    Sorry, to add a contrary note to what my colleague said earlier, we do not recommend installing the development version of the plugin as this means you’re getting a version of the plugin that hasn’t been through the same testing as we do before an official release.

    Also to get the development version to work properly, additional steps have to be taken (outlined in the README here) to compile the JavaScript assets into something that works.

    We’re going to be releasing an update for the fatal error that you’ve been experiencing (the one related to unlink() being called incorrectly). Once you install that update (which will be out in a few hours) you should be good to go again.

    PS. To get rid of the fatal error breaking your site, go into your /wp-content/plugins directory over FTP or SSH and rename the directory “koko-analytics” to something else. That will deactivate the plugin and get your site up and running again.

    Danny

    Thread Starter akinore

    (@akinore)

    I understood how to follow the recommendations and my website is working again, thank you. I will wait for the update!

    Plugin Support Lap

    (@lapzor)

    The update is published already and should show up under Plugins > Installed plugins.

    Thread Starter akinore

    (@akinore)

    Everything is now working perfectly, thank you very much!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Uncaught Error: unlink(): Argument #2 ($context) must be of type re’ is closed to new replies.