• Hello,

    The plugin was working great until this last week. We upgraded from Version 1.0.19 to the latest version and our charts no longer worked.

    We reverted back to Version 1.0.19 and still no luck.

    All we get is the Chrome Console Error — ReferenceError: AmCharts is not defined(…)

    When we look at the code the unique for the ID is not being replaced in the html and javascript code. All we see in the code on every page with a Chart Shortcode is…

        <script>
          try {
    var amchart1 = AmCharts.makeChart("amchart1", {
        "type": "pie",
    	"theme": "none",
        "dataProvider": [
    {

    The Shortcode ID is no longer working. ANy ideas?

    Thanks,

    Netivity

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author martynasma

    (@martynasma)

    Hi there,

    That’s weird. I can’t seem to be able to reproduce this.

    What version of WP and PHP are you running?

    Thread Starter netivity

    (@netivity)

    Hello,

    Here is our server info…

    WP Version: 4.6.1
    WP Multisite Enabled: Yes
    Web Server Info: Apache
    PHP Version: 5.5.0
    MySQL Version: 5.6.26
    PHP Locale: decimal_point: .
    thousands_sep:
    int_curr_symbol:
    currency_symbol:
    mon_decimal_point:
    mon_thousands_sep:
    positive_sign:
    negative_sign:
    WP Memory Limit: 512 MB
    WP Debug Mode: No
    WP Language: Default
    WP Max Upload Size: 1 MB
    PHP Post Max Size: 8 MB
    Max Input Nesting Level: 64
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    SUHOSIN Installed: No
    SMTP: localhost
    smtp_port: 25
    Default Timezone: Default timezone is UTC

    Thanks,

    Netivity

    Plugin Author martynasma

    (@martynasma)

    I’m terribly sorry, I managed to miss your reply somehow.

    If you haven’t resolved the issue yet, could you please provide a link to a web page with a chart that I can test?

    Also can try disabling some of the other plugins used, to maybe pinpoint if there’s a conflict.

    Some performance-enhancing plugins try to group a number of JavaScript files together, which may result in amCharts stuff being loaded after chart code. If you have plugins like that, try adding an exception to all amCharts js files, like amcharts.js, serial.js, etc.

    Let me know if that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ReferenceError: AmCharts is not defined(…)’ is closed to new replies.