Tel: 0115 888 2772

WHMCS Fix DataTables warning: table id=tableInvoicesList – Cannot reinitialise DataTable.

Posted on: February 2nd, 2016 by carnfield

There’s nothing worse for your company than customers viewing Error Messages when they’re trying to view their Invoice – it makes you look bad!

For many of you using WHMCS you might be plagued with the error:-

DataTables warning: table id=tableInvoicesList – Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3

There is usually a very simple fix to this for people using custom skins, generally speaking your templates are out of date.

For example if you duplicated the Six theme and made your own adjustments, you’ll get this issue because they updated something to do with how invoices are displayed, a DB tweak, a code change etc, so how do we fix it?

Well great news if you’re using modified version of the Six theme then all you need to do is update 2 files.

You need to open these files from the updated 6 theme:-

  • six/includes/tablelist.tpl
  • six/clientareainvoices.tpl

And then copy and paste their contents in to your duplicated 6 theme, to the same files, ie:-

  • yourtheme/includes/tablelist.tpl
  • yourtheme/clientareainvoices.tpl

What if I’m using a totally Custom Theme?  Then you should quickly contact the developer of the theme and ask them for an update, doing the above may very well be enough to get it to work correctly – depending how the theme was made, however we refuse to accept any responsibility for messing up your WHMCS theme if you do try that – make sure you keep backup copies of all files!

We hope that helps you!

Tags: , , , , , , ,

Leave a Reply