Okay
  Public Ticket #2693344
Errors with "Follow table filtering" chart
Closed

Comments

  • Luis Ángel started the conversation

    Hi. First of all, thanks for your incredible plugin! I have been able to do a lot with it and I'm very happy with the purchase.

    Right now, we are encountering a problem with the charts like in the example (http://anif.pixelpro.website/tests-indicadores-2/) which are simple charts based on another datatable, with "Follow table filtering" enabled. The bug doesn't seem to happen in charts that don't have that option enabled, but unfortunately we need to have that filtering activated. They show perfectly when we are logged in the WP admin, but whenever we see it in another browser as guests, and specially in any mobile device they show up maybe once (if you open a new tab in incognito mode it often works the first time), and then they stop working at all whenever you reload the page. Sometimes they load just because, but most of the time they don't. I have noticed that whenever it doesn't work I have this error in the console: "Uncaught TypeError: wdtObj is undefined in wdt.chartsRender.js:65", like it's trying to load the chart before the table exists (maybe if we add a timeout for the chart could help(?), I'm out of ideas now).

    I have done a lot of the things you also have in this forum:

    1. Blaženka's first reply in https://tmsplugins.ticksy.com//ticket/2687926/

    2. Aleksandar's third reply in https://tmsplugins.ticksy.com//ticket/2675051/ which helped me use the wpDataChartsCallbacks (which are perfect now, thanks!).

    3. I unchecked "Use minified wpDataTables Javascript Files" in the admin settings.

    4. I also followed your instructions from https://tmsplugins.ticksy.com//ticket/2490934/ to translate datepicker to spanish and it works fine, as you can see in the Date filter.

    5. I disabled any type of caching in that page (and every other page I've made my tests with datatables and charts).

    Still, I haven't been able to detect exactly what's causing the bug. Could you please help me solve it?

    Thanks in advance.

  • Luis Ángel replied

    Hi. An update on the issue: We changed the page template for http://anif.pixelpro.website/tests-indicadores-2/ to an Elementor Canvas (no header, no footer, no top bar with an iframe from another developer...) and it's still happening. It loads when we are logged in as administrators, but the website visitors and subscribers can't see the chart below the table most of the time.

  •  471
    Isidora replied

    Hi Luis,

    Thank you for your purchase
    Sorry for the delay in our responses, has been national holidays in our country for the last few days.

    Sorry for the inconvenience,

    I am glad that you find how solutions by yourself.

    We check your page on Chrome(regular page and Incognito) on Firefox(regular page and Incognito) and we can not reproduce the same issue. (attachment)

    Can you please give us more information on how to reproduce the same issue? Which machine your users use, which browser, which browser version...?

    Maybe you can create test users as subscribers for us so we can check it like that as well? If you do that, please just check Private Reply when you providing credentials because the ticket is public.

    We suppose that is browser cache is related on their side.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •   Luis Ángel replied privately
  •   Isidora replied privately
  •   Luis Ángel replied privately
  •   Isidora replied privately
  • Luis Ángel replied

    Thank you, Milan! It works perfectly now. For anyone interested maybe this can help:

    ------------

    Milan's reply:

    In file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables.js around line 24

    you will find this

    $(function () {

    and try to replace with this

    $(window).on('load', function () {

    Please clear server cache and turn off Minify JS in plugin settings if you didn't do that already so these changes can be applied.

    ------------

    This helped our particular problem. I tested everything I had included from other forum posts and it is working as expected in every device.

    Your plugin is awesome. Thanks again, Milan!

  •   Aleksandar replied privately