• Resolved bostonmacosx

    (@bostonmacosx)


    Sorry I can’t show the page as it is not public facing at this time.

    WordPress 6.1.1 plus 1.10 of the plugin …. the preview works great…no problem bluilding the chart but get

    chartjs-plugin-datalabels.js?ver=1.10:7 Uncaught TypeError: Cannot read properties of undefined (reading 'helpers')
    at chartjs-plugin-datalabels.js?ver=1.10:7:295
    at chartjs-plugin-datalabels.js?ver=1.10:7:312
    (anonymous) @ chartjs-plugin-datalabels.js?ver=1.10:7
    (anonymous) @ chartjs-plugin-datalabels.js?ver=1.10:7
    jquery.min.js?ver=3.6.1:2 jQuery.Deferred exception: Chart is not defined ReferenceError: Chart is not defined
    at m_chart_chartjs_1795_1.render_chart (https://jbline.net/wp/test-page/:3328:4)
    at https://jbline.net/wp/test-page/:3338:28
    at c (https://jbline.net/wp/wp-includes/js/jquery/jquery.min.js?ver=3.6.1:2:28327)
    at Object.add as done
    at HTMLDocument. (https://jbline.net/wp/test-page/:3337:45)
    at e (https://jbline.net/wp/wp-includes/js/jquery/jquery.min.js?ver=3.6.1:2:30038)
    at t (https://jbline.net/wp/wp-includes/js/jquery/jquery.min.js?ver=3.6.1:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.1:2
    t @ jquery.min.js?ver=3.6.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.6.1:2
    c @ jquery.min.js?ver=3.6.1:2
    fireWith @ jquery.min.js?ver=3.6.1:2
    fire @ jquery.min.js?ver=3.6.1:2
    c @ jquery.min.js?ver=3.6.1:2
    fireWith @ jquery.min.js?ver=3.6.1:2
    ready @ jquery.min.js?ver=3.6.1:2
    $ @ jquery.min.js?ver=3.6.1:2
    jquery.min.js?ver=3.6.1:2 Uncaught ReferenceError: Chart is not defined
    at m_chart_chartjs_1795_1.render_chart ((index):3328:4)
    at (index):3338:28
    at c (jquery.min.js?ver=3.6.1:2:28327)
    at Object.add as done
    at HTMLDocument. ((index):3337:45)
    at e (jquery.min.js?ver=3.6.1:2:30038)
    at t (jquery.min.js?ver=3.6.1:2:30340)
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author methnen

    (@methnen)

    Without seeing it in action it’s hard to know what might be causing the issue.

    Am I correct that this is only happening when viewing it inside your site’s front end?

    An immediate thing to try is turning on the Enable iframe embeds option in the M Chart Settings panel.

    Can you tell me if that fixes the issue for you?

    Thread Starter bostonmacosx

    (@bostonmacosx)

    Yes it is only on the site itself it is a simple page with just the chart on it.

    . If I make the page public could you have a look and how would I get you the page address in private?

    • This reply was modified 1 year, 2 months ago by bostonmacosx.
    Plugin Author methnen

    (@methnen)

    Did the iframe setting have any effect on the issue?

    Thread Starter bostonmacosx

    (@bostonmacosx)

    So I’m a bit confused…the chart is a shortcode…can I put that in the iframe?

    Plugin Author methnen

    (@methnen)

    In the M Chart Settings panel as mentioned earlier. There’s a checkbox that will enable iframe embeds.

    This causes the short code to generate the chart via an iframe embed instead of an inline one.

    It doesn’t change anything in how you use the plugin it just changes how the plugin generates the chart on the front end.

    The reason I’m asking you to try this first is that when loaded via the iframe embed the javscript is more self contained and less likely to be interfered with by something that might be in your theme.

    This is has solved similar issues for people in the past and would at least confirm that there’s something in the theme causing issues.

    It’s a potential very quick fix.

    I’m happy to take a look at it in action as well but it’s worth trying the iframe setting first.

    Thread Starter bostonmacosx

    (@bostonmacosx)

    So I clicked and saved the iFrame Setting in the plugin stil the error.. if it helps it is using the OnePress Theme..

    
    Uncaught TypeError: Cannot read properties of undefined (reading 'helpers')
    at chartjs-plugin-datalabels.js?ver=1.10:7:295
    at chartjs-plugin-datalabels.js?ver=1.10:7:312
    jquery.min.js?ver=3.6.1:2
    
     jQuery.Deferred exception: ChartDataLabels is not defined ReferenceError: ChartDataLabels is not defined
    at m_chart_chartjs_1795_1.render_chart (https://jbline.net/wp/chart/income-2022/embed/?show=chart&width=responsive&share:66:20)
    at https://jbline.net/wp/chart/income-2022/embed/?show=chart&width=responsive&share:76:28
    at c (https://jbline.net/wp/wp-includes/js/jquery/jquery.min.js?ver=3.6.1:2:28327)
    at Object.add as done
    at HTMLDocument. (https://jbline.net/wp/chart/income-2022/embed/?show=chart&width=responsive&share:75:45)
    at e (https://jbline.net/wp/wp-includes/js/jquery/jquery.min.js?ver=3.6.1:2:30038)
    at t (https://jbline.net/wp/wp-includes/js/jquery/jquery.min.js?ver=3.6.1:2:30340) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.6.1:2
    jquery.min.js?ver=3.6.1:2 
    
    
    Uncaught ReferenceError: ChartDataLabels is not defined
    at m_chart_chartjs_1795_1.render_chart (?show=chart&width=responsive&share:66:20)
    at ?show=chart&width=responsive&share:76:28
    at c (jquery.min.js?ver=3.6.1:2:28327)
    at Object.add as done
    at HTMLDocument. (?show=chart&width=responsive&share:75:45)
    at e (jquery.min.js?ver=3.6.1:2:30038)
    at t (jquery.min.js?ver=3.6.1:2:30340)
    Thread Starter bostonmacosx

    (@bostonmacosx)

    I also have the direct link from the iFrame if that woudl help…

    Thread Starter bostonmacosx

    (@bostonmacosx)

    Ok so here is some great weirdness…switching the iframe did nothing and when I switched it back off… BOOM there was a chart on the page…so I’m not sure why it was not allowing it then it allowed it… If I see it again I will start a new thread…thanks for the assistance…appreciated.

    Plugin Author methnen

    (@methnen)

    Sorry for the delay in getting back to you. I was swamped with work and dealing with some family stuff.

    That’s extremely strange that switching it back and forth had that effect. Please do tell me if it reappears and I’ll happily take a look at it directly.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Chart is not defined..’ is closed to new replies.