• Resolved advanto

    (@advanto)


    Hello,

    Scenario:
    WP 4.9.8
    PHP 7.0.30
    Theme: Avada

    I’ve installed this plugin but when try to create a chart the form doesn’t show the chart I’m creating and all the action buttons are disabled.
    Inspecting console messages there is:

    
    TypeError: window[(("m_chart_chartjs_" + m_chart_admin.post_id) + "_1")].chart is undefined[Més informació] m-chart-chartjs-admin.js:115:3
    	m_chart_chartjs_admin.refresh_chart https://www.fundacioncema.org/wp-content/plugins/m-chart/components/js/m-chart-chartjs-admin.js:115:3
    	dispatch https://www.fundacioncema.org/wp-admin/load-scripts.php:3:12392
    	add/r.handle https://www.fundacioncema.org/wp-admin/load-scripts.php:3:9156
    	trigger https://www.fundacioncema.org/wp-admin/load-scripts.php:3:11571
    	a.event.trigger https://www.fundacioncema.org/wp-admin/load-scripts.php:9:8273
    	trigger/< https://www.fundacioncema.org/wp-admin/load-scripts.php:3:18983
    	each https://www.fundacioncema.org/wp-admin/load-scripts.php:2:2879
    	each https://www.fundacioncema.org/wp-admin/load-scripts.php:2:844
    	trigger https://www.fundacioncema.org/wp-admin/load-scripts.php:3:18962
    	m_chart_admin.refresh_chart/< https://www.fundacioncema.org/wp-content/plugins/m-chart/components/js/m-chart-admin.js:484:4
    	i https://www.fundacioncema.org/wp-admin/load-scripts.php:2:27444
    	fireWith https://www.fundacioncema.org/wp-admin/load-scripts.php:2:28213
    	y https://www.fundacioncema.org/wp-admin/load-scripts.php:4:22719
    	c https://www.fundacioncema.org/wp-admin/load-scripts.php:4:26925
    

    How can I solve this?

    Thankyou

    • This topic was modified 6 years, 5 months ago by Jan Dembowski.
    • This topic was modified 6 years, 5 months ago by Jan Dembowski. Reason: Fixed formatting
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author methnen

    (@methnen)

    Hey Advanto,

    Is there any chance I can take a look at this myself? The error implies that the template that loads the chart code isn’t there. But I can’t say for sure without seeing more details.

    jamie AT methnen.com

    Plugin Author methnen

    (@methnen)

    Just to follow up. I wanted to make sure I didn’t miss anything somehow and tried a fresh install of M Chart straight off of the www.remarpro.com servers on a clean install of WP and can’t duplicate this. So I’l definitely needs to see it in action on your install to have a chance of figuring it out.

    Thread Starter advanto

    (@advanto)

    Hi,

    I prefer to send you credentials by email.

    Plugin Author methnen

    (@methnen)

    Yep that’s why my email address was at the bottom of that first reply:

    jamie AT methnen.com

    Plugin Author methnen

    (@methnen)

    Hey @advanto,

    Looking at things in the back end I’m pretty sure there’s something in the theme that’s conflicting with Chart.js. I’m not entirely sure off the top of my head WHY.

    However, you can see some color picker code failing with a TypeError well before any of the M Chart stuff happens. Then there’s another TypeError related to the earlier color picker code and then the M Chart error with the Chart.js error happening.

    The Chart.js code that would build the JS object that the M Chart code is in the page but not triggering, probably because one of those two Type Errors that happened earlier prevented it in some way.

    I checked other post types and they don’t have that color picker error occurring so I’m guessing at a conflict between the Chart.js code in the page and the color picker code.

    I’m unfamiliar with the Avada theme but is there a way to not load the Avada Options meta box for a specific post type? If so that’s likely an easy solution.

    If not, I’d probably have to get SFTP/FTP access to take a closer look at the Avada theme and how it works/is conflicting with the Chart.js code.

    Is there a staging or development server you have available where I might do that?

    • This reply was modified 6 years, 5 months ago by methnen.
    • This reply was modified 6 years, 5 months ago by methnen.
    • This reply was modified 6 years, 5 months ago by methnen.
    Thread Starter advanto

    (@advanto)

    Hello @methnen,

    Thanks for you support.
    I’m sorry but we don’t have development server at this moment.
    I’ve been looking for in avada support and community and found nothing helping.
    For now we will try other plugins.

    Plugin Author methnen

    (@methnen)

    Sorry we couldn’t figure it out. I’d still be happy to take a further look if you can pass me the Avada theme (and any required plugins) for testing purposes. I’d then possibly be able to recreate the issue on my local machine.

    Send me an email if that’s something you’d be interested in.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘New installation doesn’t work’ is closed to new replies.