m-chart icon indicating copy to clipboard operation
m-chart copied to clipboard

Charts not loading with Load with Ajax based theme

Open ReHWolution opened this issue 3 years ago • 13 comments

Hi J! Sorry to bother you once again! I'm currently running JNews (updated to the latest version), and it seems like when I set an article loading method in "Load with Ajax", the charts won't appear on the pages of those very articles. Is there a missing call to render out charts? Thanks in advance!

ReHWolution avatar Jun 20 '21 00:06 ReHWolution

This usually means an issue with the JavaScript not being loaded try putting it in iframe mode and see if it works.

methnen avatar Jun 20 '21 03:06 methnen

I'm sorry, how may I do that?

ReHWolution avatar Jun 21 '21 05:06 ReHWolution

It’s in the M Chart settings panel:

https://ps.w.org/m-chart/assets/screenshot-2.png?rev=2529219

Enable iframe embeds.

methnen avatar Jun 21 '21 05:06 methnen

By doing so they just stop loading on any load method. Do I also need to change something in the shortcode?

ReHWolution avatar Jun 21 '21 16:06 ReHWolution

No, if that were going to fix it. It would have just worked.

I'd have to look at what the Load with AJAX stuff is actually doing.

Is this up anywhere in a test site or staging site that I can take a look at?

methnen avatar Jun 21 '21 16:06 methnen

I think you're able to check it out here: https://preview.themeforest.net/item/jnews-one-stop-solution-for-web-publishing/full_screen_preview/20566392

ReHWolution avatar Jun 21 '21 16:06 ReHWolution

No I mean your specific install/instance/usage.

I'd want to look at a page that should have a chart and see what happens and what's in the pages code.

It's hard to diagnose an issue like this in the abstract. :)

methnen avatar Jun 21 '21 16:06 methnen

Understandable hahahaha! I'll get back at you on wednesday since we've been running Prime Day offers and can't really have our website offline, is that ok for you? I'll provide you with a temporary user with admin rights and all :)

ReHWolution avatar Jun 21 '21 17:06 ReHWolution

Whatever works for you. Your web provider doesn't provide staging server setups I take it? That's ideal as I'd definitely not want to take your site offline at all for something like this.

methnen avatar Jun 21 '21 17:06 methnen

Oh unfortunately there is no such option. I'm on a rented VPS, but don't worry, you're doing a lot already!

ReHWolution avatar Jun 21 '21 17:06 ReHWolution

Closing as I believe we resolved this offline?

methnen avatar Mar 18 '23 18:03 methnen

We actually did not, but I guess it’s fine

Da: Jamie Poitra @.> Inviato: sabato 18 marzo 2023 19:11 A: methnen/m-chart @.> Cc: ReHWolution @.>; Author @.> Oggetto: Re: [methnen/m-chart] Charts not loading with Load with Ajax based theme (#155)

Closing as I believe we resolved this offline?

— Reply to this email directly, view it on GitHub https://github.com/methnen/m-chart/issues/155#issuecomment-1474935599 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSIS36I6XPEGDYJKNS7B5TW4X3E7ANCNFSM467RJCXA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AJSIS32SHAOCZVIKT7LKBVDW4X3E7A5CNFSM467RJCXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOK7U3WLY.gif Message ID: @.*** @.***> >

ReHWolution avatar Mar 18 '23 18:03 ReHWolution

Haha, sorry then, I'm reopening. Bug me about this next week and I'll see if I can figure out a way to resolve it for you?

methnen avatar Mar 18 '23 18:03 methnen