• Resolved Vincent

    (@vinckhalifa)


    Hi,

    after installing m-charts and testing some graphs I noticed, that the graphs are not loading at all for non-Admins and non-Editors. The custom post for the graph, the div-element and the javascript does all load, but the div stays empty.

    As my theme I use “Newspaper” and for memberships and user control we have “Woocommerce Memberships” and “Ultimate Member”. Disabling them did not help, so it’s not them blocking the loading of the graph.

    Do you have an idea what could cause this problem and maybe even how to solve it?

    Thanks in advance!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author methnen

    (@methnen)

    Hey Vincent.

    I’ll have to take a look and see if I can duplicate the issue.

    So just to be clear”

    When someone logs into the admin panel and has a user role other than Admin or Editor they are unable to see the chart when editing it?

    Thread Starter Vincent

    (@vinckhalifa)

    Hey methnen,

    thank you for your time. In my post I meant frontend. It loads everything except the Highcharts chart on a page with the url structure like that: https://examplesite.com/chart/chartname

    Plugin Author methnen

    (@methnen)

    Do you have an actual single-m-chart.php template? Or is possible WordPress was just making it work whith the default template?

    Also, please try switching on iframe embeds in the settings:

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

    Thread Starter Vincent

    (@vinckhalifa)

    Hi,

    thanks for your answers so far!

    We don’t have a template for m-chart so it’s using a theme template. Since it’s loading if you have admin/editor rights can it even be the template?

    For your question about the backend: You are not able to access wp-admin except with these roles. Any other role without access to wp-admin seems to not be able to access the charts itself.

    If I enable the iframe setting the iframe itself loads for everyone, but the content is our 404-page.

    Thread Starter Vincent

    (@vinckhalifa)

    I just tested it on a clean WordPress with only our theme (“Newspaper”) installed. There it worked without problems. So it’s not the theme – I guess it’s one of our other plugins.

    To clone our current installation to another domain I need some time – I’ll get to it next week and will inform you about the conclusion of the tests.

    Plugin Author methnen

    (@methnen)

    Just a heads up Vincent, still looking forward to seeing what you find. Appreciate you taking the extra time on this.

    I did try duplicating the issue on my own end and couldn’t duplicate it.

    Thread Starter Vincent

    (@vinckhalifa)

    Hi,

    I just got to testing this week. So I disabled every plugin except “Woocommerce”, “Woocommerce Memberships” and “Visual Composer” since these 3 are needed for the site to work. The charts worked after that.

    I found that a plugin from our theme “tagDiv Speed Booster” creates the error. This plugin moves all the stylesheets and javascripts to the bottom of the page. So I think it breaks the Highcharts js.

    I will look into excluding Highcharts from that, just wanted you to have a status update. If I find a solution I will post it here.

    Plugin Author methnen

    (@methnen)

    That a definitely explains things. Though weird that it doesn’t kick in for administrators. I’ll take a look at the plugin myself. I would have expected switching on the iframe embed feature would have bypassed the issue though. I take it that didn’t solve things for you?

    Thread Starter Vincent

    (@vinckhalifa)

    I also think its weird. Forgot to mention that is doesn’t show for admins now that I disabled nearly all other plugins.

    The iframe feature still gives me a 404-page inside the frame. How does the plugin work with iframes? Maybe something missing or changed in our theme.

    Lastly I don’t know if you can get the plugin easily, since it comes with the theme.

    Thank you for your support, really appreciate it!

    Plugin Author methnen

    (@methnen)

    @vinckhalifa Try refreshing your permalinks for the iframe 404 issue. You can do that by going to Settings -> Permalinks in the WP Admin panel and then clicking Save Changes (while not actually making any changes). My guess is the URL endpoint the plugin uses for the iframes isn’t in the cached version of the permalinks stuff for your install.

    If you wanted to send me the plugin I’d be happy to give a test on my dev machine.

    jamie AT methnen.com

    Stacy (non coder)

    (@functionmunchkin)

    Is there a shortcode for front end display of the sheet and chart?

    Plugin Author methnen

    (@methnen)

    Thread Starter Vincent

    (@vinckhalifa)

    Hi,

    I tried to resave the permalink settings, but that didn’t fix the issue. I also disabled all plugins again and changed the theme, that didn’t help neither.

    I’ll send you a copy of the plugin via mail.

    Thread Starter Vincent

    (@vinckhalifa)

    Hi,

    so we decided to no use the Speed Booster, so we can use your plugin.

    I’ll mark it as resolved. Thanks for your support!

    Plugin Author methnen

    (@methnen)

    Appreciate the follow up. I’ve been busy with paying work and unable to take a look at this until this morning when I managed to find some time.

    Just as a heads up there’s no way for me to fix the issue with the Speed Booster plugin because it wasn’t written with any methods for filtering out stuff you don’t want messed with.

    You might ping the developer and let them know they should add some filter hooks in key areas so developers can whitelist their own scripts/css when necessary.

    Glad my plugin has been so valuable to you.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘No graphs for non editor/admin’ is closed to new replies.