• Resolved anabulsi

    (@anabulsi)


    I created 16 charts using chartjs library (not google charts) and I added them (by using the shortcodes) in a page. The problem is when I see the page in incognito mode (first load) only the first two of the charts appear but the rest don’t (even when I scroll up and down to them and wait forever – lazyload not activated btw) and an error gets thrown in the console saying “google is not defined” and refers to “render-google.js” script.

    However, when I reload the page all charts work fine and no error gets thrown. Additionally, sometimes on the first load of the page (incognito) nothing shows up at all and no error gets thrown. Sometimes all of them work fine even on first load. I’m really confused on what’s going on.

    How to share the page url privately in case you need to check it out?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Same here. Rolling back to 3.7.1 has resolved it for me.

    Thread Starter anabulsi

    (@anabulsi)

    Thank you Nick, that actually solved the problem. See their change log: https://www.ads-software.com/plugins/visualizer/#developers
    Probably what could’ve caused the bug is something in their recent js performance improvements.

    I’m having a similar issue. I have one chart loading using do_shortcode(), which fails on first page load, there are 18+ pages that use the same chart, lazy loading is off in the chart, and I tried flagging it on and off in the do_shortcode call as well. Still all pages fail to load the chart on first load.

    My chart is pulling data from a custom post type, dynamically, but I don’t think it’s an issue as no HTML for the chart appears at all.

    The only fix I found is reverting to 3.7.1.

    Hi @jstuartj and @anabulsi,

    Thanks for choosing Visualizer!

    Please provide us the URL to your site so we can check the issue.

    Thank you!

    Hi,

    I have similar issues as described above. Especially when the page didn’t cache before, when I’ve loaded the page once, the graph renders fine. I can reproduce the error in an incignito-tab. The error in my console is:

    google is not defined

    I tried updating to 3.7.3 but the error remains. I downgraded tot 3.7.1. and the error is gone.

    Hope this helps; I have no public URL with this config, but I could provide it for a limited time if that is helpful.

    Mat

    (@mateithemeisle)

    Hello @jfrancke ,

    Thank you for your reply and apologies for the delayed response!

    If you could provide us with the URL where this is happening it would help immensely in trying to reproduce the error on our end and solve it.

    You can use this tool to share the link privately or any other tool that you feel comfortable with.

    Thank you and we’ll await your answer!

    Hi @mateithemeisle,

    Sorry for my delayed reply. I have a production-url where the charts won’t always load on first page load. I can reproduce this 9 out of 10 times in MS Edge in an inPrivate tab (without inspector-tools open). The page contains 7 charts; they do not load, you can only see the title (Figuur x) and the print and download links. The .visualizer-front-container is empty. As soon as I change the viewport-size the charts get rendered afterwards…

    Thanks in advance for sorting this out! If you need a screen-dump-video or something, please let me know! This is my ots-url:

    https://onetimesecret.com/secret/ao5us010gidpeqog5ytknufgkws9up7

    PS: It took some time (ergo: refreshes and incognito-windows) for me to see the empty charts which my client complained about :). The page uses Visualiser 3.7.3 and the Visualizer: Tables and Charts Manager for WordPress AddOn 1.10.5
    PS 2: My previous post mentioned a google is not defined error in the console; that occured in 3.7.2, I don’t get this error in 3.7.3 anymore…

    Hi @jfrancke!

    The latest update of Visualizer includes a fix to this issue, so please update the plugin and check if the issue persists, as everything should be working properly now. Let us know if you still encounter this problem.

    Have a nice day!

    Hi @luciamarinescu,

    Great, 3.7.4 indeed fixed the issue.

    Thanks a lot and have a nice day as well.

    Thread Starter anabulsi

    (@anabulsi)

    @luciamarinescu
    The issue is still there with tables. When I set the lazy parameter to “no” they don’t appear on first load.

    Hi @anabulsi!

    The latest update fixed this issue for other users that encountered it, so please clear the cache (browser and plugin, if you use any caching plugin) and check again since the issue shouldn’t occur with the latest version of Visualizer.

    Have a nice day!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Charts not appearing on first page load and throwing “google is not defined”’ is closed to new replies.