Analytics Code Insert error – Elevate-dental.com

#183208
  • Resolved Andrew Krom
    Rank Math free

    Hello, we noticed this morning that one of the sites we manage was giving a ‘There has been a critical error on your website’ error. I got in touch with WP engine who hosts the site and they said they never experienced any downtime so it wasn’t an issue related to them. Our developer took a deeper look and found and issue within RankMath itself while we were using your analytics code insert. We disabled and added the functionality within Elementor Code Snippers so we should be good from a functionality/uptime perspective but we wanted to reach out to see if you guys can fix this error. See below for the error that we received. Thanks!

    [Thu Apr 15 13:19:12.188092 2021] [php7:error] [pid 19955] [client 76.72.167.154:58234] PHP Fatal error: Uncaught Error: Call to undefined function RankMath\\Analytics\\wp_print_script_tag() in /nas/content/live/melevatedental/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-gtag.php:156\nStack trace:\n#0 /nas/content/live/melevatedental/wp-includes/class-wp-hook.php(287): RankMath\\Analytics\\GTag->add_gtag_js(”)\n#1 /nas/content/live/melevatedental/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)\n#2 /nas/content/live/melevatedental/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#3 /nas/content/live/melevatedental/wp-includes/general-template.php(3007): do_action(‘wp_head’)\n#4 /nas/content/live/melevatedental/wp-content/themes/estound-custom-theme/header.php(12): wp_head()\n#5 /nas/content/live/melevatedental/wp-includes/template.php(730): require_once(‘/nas/content/li…’)\n#6 /nas/content/live/melevatedental/wp-includes/template.php(676): load_template(‘/nas/content/li…’, true, Array)\n#7 /nas/content/live/melevatedental/wp-includes/general-template.php(48): locate_ in /nas/content/live/melevatedental/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-gtag.php on line 156

Viewing 4 replies - 1 through 4 (of 4 total)
  • Cris
    Rank Math business

    Hello Andrew,

    Thank you for bringing this to our attention and apologies for the inconvenience caused.

    The error has something to do with your Analytics Module in Rank Math.

    It seems like new tables are not getting created in the Database or some old plugin has left an incorrect entry.

    1. Please follow these steps to fix the issue:
    https://rankmath.com/kb/fatal-error-after-1-0-49-update/

    2. Please follow only the first 2 steps and clear your caches. The following steps mentioned in the article are for advanced users.

    Here’s a video screencast:
    https://i.rankmath.com/KStFug

    Please clear all the cache, including the server after following the above process and that should resolve the issue.

    Hope that helps. Thank you and please don’t hesitate to let us know if you need our assistance with anything else.

    Cheers,

    Prabhat
    Rank Math agency

    Hello,

    We’re sorry for the trouble that you’re facing.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your Websites URL, WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Andrew Krom
    Rank Math free

    Looks like our developer has resolved this issue. Thanks for the help.

    Anas
    Rank Math business

    Hello,

    We are glad that your issue is already resolved.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you.

    Thank you.

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

The ticket ‘Analytics Code Insert error – Elevate-dental.com’ is closed to new replies.