• Resolved Tim

    (@demo88)


    After upgrading from an unknown version to 2.5.2, an exception was introduced, where invalid api keys are crashing the site. Sadly i cannot provide any logs because now it works again after fixing the invalid key.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Support Moderator

    (@moderator)

    Fatal error: Uncaught Error: Call to a member function getId() on false in ****/wp-content/plugins/plausible-analytics/src/Client.php:187 Stack trace: #0 ****/wp-content/plugins/plausible-analytics/src/Helpers.php(52): Plausible\Analytics\WP\Client->get_tracker_id() #1 ****/wp-content/plugins/plausible-analytics/src/Helpers.php(27): Plausible\Analytics\WP\Helpers::get_filename() #2 ****/wp-content/plugins/plausible-analytics/src/Assets.php(94): Plausible\Analytics\WP\Helpers::get_js_url() #3 ****/wp-content/plugins/plausible-analytics/src/Assets.php(63): Plausible\Analytics\WP\Assets->get_js_url() #4 ****/wp-includes/class-wp-hook.php(341): Plausible\Analytics\WP\Assets->maybe_enqueue_main_script() #5 ****/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #6 ****/wp-includes/plugin.php(522): WP_Hook->do_action() #7 ****/wp-includes/script-loader.php(2311): do_action() #8 ****/wp-includes/class-wp-hook.php(341): wp_enqueue_scripts() #9 ****/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #10 ****/wp-includes/plugin.php(522): WP_Hook->do_action() #11 ****/wp-includes/general-template.php(3197): do_action() #12 ****/wp-content/themes/webewa/header.php(24): wp_head() #13 ****/wp-includes/template.php(814): require_once('/homepages/30/d…') #14 ****/wp-includes/template.php(749): load_template() #15 ****/wp-includes/general-template.php(48): locate_template() #16 ****/wp-content/themes/webewa/front-page.php(2): get_header() #17 ****/wp-includes/template-loader.php(125): include('/homepages/30/d…') #18 ****/wp-blog-header.php(19): require_once('/homepages/30/d…') #19 ****/index.php(17): require('/homepages/30/d…') #20 {main} thrown in ****/wp-content/plugins/plausible-analytics/src/Client.php on line 187

    those logs have been posted in another thread

    Plugin Contributor Daan van den Bergh

    (@daanvandenbergh)

    Hi Tim!

    Okay, based on what I know now:

    • How long ago was it (approximately) since the last update? Was it from before 2.x?
    • Are you a Plausible CE user?
    • Did 2.5.3 fix the issue for you?
    Thread Starter Tim

    (@demo88)

    • I have automatic updates enabled, so most likely version 2.5.0 or 2.5.1.
    • Yes.
    • It was already fixed when I provided a correct api key – but it still works in version 2.5.3. I don’t know if the underlying issue was fixed or not.
    Plugin Contributor Daan van den Bergh

    (@daanvandenbergh)

    Okay, in that case I think it’s safe to conclude that this issue is fixed.

    I just tested on 2.5.3 with CE and an invalid API key: no critical errors, and a notice was shown prompting me to enter a valid API token.

    Thread Starter Tim

    (@demo88)

    Thanks for your work! Although in the future I will never contribute to the wordpress support forum again. But you have a github repo, so I will just create an issue there in the future.

    Plugin Contributor Daan van den Bergh

    (@daanvandenbergh)

    Hi Tim,

    Feel free to reach out to us on Github. I’ll be replying there, too. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.