This alert is triggered by the awesome third-party library for table views called DataTables. It is one of the most popular libraries available online and is used by thousands of companies, including Amazon, NASA, Tesla etc.
So what is the cause of the error?
As you might already noticed, AAM UI has bunch of tables to organize linear data like list of policies, capabilities, roles, users etc. To speed-up AAM UI, I've intentionally preload only the "visual frame" for the UI and other data loads asynchronously one-by-one with the help of AJAX calls. Some calls may silently fail without compromising your user experience, others (more critical) are communicated to you as notification.
For example the DataTables library notifies users with browser alert
DataTables warning: table id=role-list... and this means that AJAX call to fetch the list of roles failed unexpectedly either due to timeout or some sort of PHP error.
How to mitigate the error?
Obviously the best way to fix the problem is to find the actual root cause of it. I personally very interested in the PHP error(s), if any, that break the AJAX call. Typically you can see what the AJAX call returns in browser console however if you are not tech-savvy, you might be able to find some useful information in the PHP error log for your website. Finally if you do not have access to PHP error log or have no clue what is that, there are couple steps that you can do to at least reduce the chance for this error to occur:
- Make sure that your website has DEBUG mode disabled. It is very common mistake made by website developers. They just forget to disable debug mode which is quite bad thing to do for production sites. This basically prints out any PHP errors to the output buffer the same way as any other HTML;
- Make sure that your PHP error_reporting option is optimized for the production site and display_errors directive is disabled in php.ini configuration file