Okay
  Public Ticket #2902356
Tables won't load consistently - keeps spinning
Closed

Comments

  • Reuben Chew started the conversation

    hi there

    we are running into this issue at https://waldmannlighting.com. For each of our products, we have been using wpDataTables. The problem is that very frequently, but not always, we get a AJAX spinning circle and the table won't finish loading. This happens on Firefox and also on Chrome, on PCs and also Macs. It is a real problem and we had just launched the website using your plugin. Is there a way to resolve this? Thanks.

    +Reuben


  • [deleted] replied

    Hi Reuben

    Thank you for reaching out to us.

    These errors can happen for a few reasons, but they always happen for server-side tables (MySQL, manual, or imported tables).

    Check if you have any errors, notices, warnings in your console. If there are, resolve them first because they are interrupting wpDataTables' admin-ajax calls and the errors returned are referring to either bad Ajax or bad JSON response.

    Another thing that could be causing this is cache. If the data is being cached on the page, the returned data is not the same, or not at least what wpDataTables is expecting to see, so the error occurs. Try clearing all cache from your website and browser, and then prevent the pages containing wpDataTables from being cached.

    Last, it could be the data in the table(s) - if the data is not the type that it should be (for example, a non-numerical value in an integer or a float column), or if the data has been changed for a formula column. Try creating a new table from the source table and see if it's going to cause errors. If it doesn't (after excluding cache as the cause), look for differences between data, filters, etc.

    I hope that helps.