• Resolved nswm

    (@nswm)


    Hi Themeisle

    I appear to have an odd problem with Visualizer that has manifested. I have a number of Google charts inserted via shortcode on my page.

    It seems that when I am logged into WordPress, the charts are not generated, but when logged out, they appear just fine. I have even tried this in an incognito tab and on different pages with the same results.

    The console shows a number of errors that only seem to appear when logged into WordPress (below). Any ideas what could be causing this at all or any other pointers as to where I could look to try to resolve this would be much appreciated.

    Many thanks in advance.

    Uncaught TypeError: b.createScript is not a function
        at gvjs_Mf (www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:80)
        at www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:80
    jsapi_compiled_default_module.js:82 Uncaught TypeError: b.createScriptURL is not a function
        at gvjs_Sf (www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:82)
        at www.gstatic.com/charts/50/js/jsapi_compiled_ui_module.js:294
    jsapi_compiled_default_module.js:165 Uncaught (in promise) TypeError: gvjs_Di.test is not a function
        at gvjs_G.gvjs_Ci (www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:165)
        at new gvjs_G (www.gstatic.com/charts/49/js/jsapi_compiled_default_module.js:219)
        at renderSpecificChart (render-google.js:47)
        at renderChart (render-google.js:27)
        at render-google.js:455
    2jsapi_compiled_default_module.js:165 Uncaught TypeError: gvjs_Di.test is not a function
        at gvjs_G.gvjs_Ci (www.gstatic.com/charts/50/js/jsapi_compiled_default_module.js:165)
        at new gvjs_G (www.gstatic.com/charts/49/js/jsapi_compiled_default_module.js:219)
        at renderSpecificChart (render-google.js:47)
        at renderChart (render-google.js:27)
        at render (render-google.js:362)
    Uncaught TypeError: gvjs_Di.test is not a function
        at gvjs_G.gvjs_Ci (jsapi_compiled_default_module.js:165)
        at new gvjs_G (jsapi_compiled_default_module.js:219)
        at renderSpecificChart (render-google.js:47)
        at renderChart (render-google.js:27)
        at render (render-google.js:362)
    jsapi_compiled_default_module.js:165 Uncaught TypeError: gvjs_Di.test is not a function
        at gvjs_G.gvjs_Ci (jsapi_compiled_default_module.js:165)
        at new gvjs_G (jsapi_compiled_default_module.js:219)
        at renderSpecificChart (render-google.js:47)
        at renderChart (render-google.js:27)
        at render (render-google.js:362)

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

Viewing 15 replies - 1 through 15 (of 27 total)
  • I have the same problem. Just glad it works in the front end when logged out. Is there a solution to this?

    Thread Starter nswm

    (@nswm)

    Hi dshakya

    It’s reassuring to hear it is not just our site with this issue. I wonder whether it is an issue with Google Charts API or Vizualizer per se. My guess is some sort of issue with a recent WordPress release or other plugin causing a conflict.

    While I can’t provide a solution because I’m not using Visualizer, I ran into the problem as well and landed here by searching for the error message.

    While debugging I noticed that https://www.gstatic.com/charts/loader.js was loaded twice in my case. Fixing it so it’s only included once made the issue go away.

    Just wanted to let you know, it might be similar in your case.

    Thanks @janh2 for debugging info. Hopefully the developer has viewed this thread and will provide us with a solution in the next release. While it’s workable for now, it needs to be patched. Thanks again guys.

    Plugin Support Vytis

    (@bvytis)

    Hi all,

    Thank you for sharing details about this issue. I’m trying to replicate the problem, however, even when I add several charts on the page they are rendered fine no matter if I’m logged in to the dashboard or not.

    Maybe it depends on the chart types? Could you share what are the chart types to add to replicate this error? I’ve checked provided page – https://nswm.co.uk/services/investing-for-the-future/investment-portfolios/ and can’t see errors there but of course, it’s needed to be logged in.

    Thanks!

    Thread Starter nswm

    (@nswm)

    Hi Vytis

    Thanks a lot for looking into this. It’s always annoying/frustrating when one is unable to replicate the problem. Not sure what else we can try.

    Plugin Support Vytis

    (@bvytis)

    Hi @nswm,

    Does the issue persist after you updated Visualizer to the latest version? (released a few days ago)

    Thanks!

    I was hoping it would go away but no – it is still there.

    The chart is not displayed when you are logged in but works fine incognito/logged out. I can see and edit the chart in the backend under Visualizer tab but the chart is not displayed on the page in the front-end.

    <div>
      <div id="visualizer-160-646898192" class="visualizer-front visualizer-front-160 viz-facade-loaded"></div>
    <!-- Not showing structured data for chart 160 because description is empty --></div>
    Uncaught TypeError: b.createScript is not a function
        at gvjs_Mf (jsapi_compiled_default_module.js:80)
        at jsapi_compiled_default_module.js:80
    jsapi_compiled_default_module.js:82 Uncaught TypeError: b.createScriptURL is not a function
        at gvjs_Sf (jsapi_compiled_default_module.js:82)
        at jsapi_compiled_ui_module.js:294
    jsapi_compiled_default_module.js:165 Uncaught (in promise) TypeError: gvjs_Di.test is not a function
        at gvjs_G.gvjs_Ci (jsapi_compiled_default_module.js:165)
        at new gvjs_G (jsapi_compiled_default_module.js:219)
        at renderSpecificChart (render-google.js:50)
        at renderChart (render-google.js:30)
        at render-google.js:459
    • This reply was modified 3 years, 6 months ago by dshakya.
    Thread Starter nswm

    (@nswm)

    Hi Vytis. I can also confirm that the update to 3.5.0 didn’t seem to resolve this issue. Thanks for continuing to look into this for us.

    @nswm – I have logged the bug report. You can follow the progress here –

    https://github.com/Codeinwp/visualizer/issues/801

    Hopefully this will get fixed soon.

    Thread Starter nswm

    (@nswm)

    Thanks, dshakya. Good job.

    Looks like the issue is caused by having the “Google Site Kit” Plugin installed, it does load it’s own version of charts/loader.js. Disabling it gives me back the ability to edit charts within the Post editor.

    Thread Starter nswm

    (@nswm)

    nexus2kswiss – I think you’ve got it. Huge thanks. I can confirm this resolves the issue for my site as well. Disabling the Google Site Kit plugin allows the charts to render when logged in to WordPress. I wonder if there is some way to resolve this conflict so we can run Site Kit and Visualiser together. Should we somehow add a note to the Github link above?

    Yup @nswm – that was a great find my @nexus2kswiss. I have left a note on GitHub if the developers could solve this issue for us as Google SiteKit is an important plugin for us.

    Thread Starter nswm

    (@nswm)

    Hi @dshakya and others in this thread. Looks like something is happening on this plugin conflict but I’m struggling to follow on GitHub. Eg. https://github.com/Codeinwp/visualizer/pull/802

    Can anyone provide any pointers? Should we download and install the zip on this page? Will SiteKit be auto-updated in the next release to resolve this do we know, etc. Thanks if you can help.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Visualizer charts not showing when logged in to WordPress’ is closed to new replies.