WOOT - WooCommerce Active Products Tables

WooCommerce products table stuck on Loading: causes and fixes

A WooCommerce products table stuck on Loading ... is not a slow table. Its start-up broke somewhere between the page and the server, and the plugin shows no error when that happens: the placeholder simply stays. The cause is almost never in the table settings. Below is how the two loading steps work, how to see in a few minutes which one failed, and the fix for each case.

How a products table loads, and where it gets stuck

The [woot] shortcode does not print products. It prints an empty table frame with the Loading ... text and, next to it, a hidden block with the table's settings (columns, sorting, pagination, language) written as JSON. The rest happens in the visitor's browser:

  1. When the page has finished loading (the browser's load event), the plugin's script reads every hidden settings block with JSON.parse() and creates a table from it.
  2. Each table then asks the server for its rows: a POST request to /wp-admin/admin-ajax.php with action=woot_get_table_data. The server answers with JSON that starts with {"rows":, and the rows replace the placeholder.

Both failures look the same on the page: if step 1 fails, no request is sent; if step 2 fails (an error code, an error page, an empty answer), the script silently drops the answer. The settings blocks are read one after another, so one damaged block stops its own table and every table after it.

Find the failing step in five minutes

Open the page in a private window, where you are not logged in. Security rules and page caches usually skip logged-in administrators, so a table that works for you can still be broken for every visitor. Then open the browser's developer tools (F12, or Cmd+Option+I on a Mac) and check three things.

  1. Console. Reload the page and look for red errors. Uncaught SyntaxError: Expected property name or '}' in JSON pointing to general.js means a damaged settings block (step 1).
  2. The settings blocks. Paste this into the console and press Enter. Every table should report OK; BROKEN followed by curly quotes such as “ or „ means WordPress converted the quotes, which is covered in the next section.
    document.querySelectorAll('.woot-table-json-data').forEach(function (el) {
        try {
            JSON.parse(el.innerText);
            console.log('OK', el.dataset.tableId);
        } catch (e) {
            console.log('BROKEN', el.dataset.tableId, el.innerText.slice(0, 60));
        }
    });
  3. Network. Reload, type admin-ajax into the filter field and click the request whose payload contains woot_get_table_data. Read its status code and its Response tab.
What you see in NetworkWhat it means
No woot_get_table_data request at allThe table never started: damaged settings block or a script problem
401The /wp-admin/ folder is password-protected on the server
403A firewall or security plugin refused the request
429, 503 or 509Hosting rate limits or resource limits
500A PHP fatal error while building the rows
502, 504, or pending for a long timeThe server ran out of time
200 with an empty responseThe rows could not be encoded as JSON
200 with text or HTML before {"rows":Something printed output into the answer

A damaged settings block: quotes, block themes and Elementor

WordPress has a function, wptexturize(), that turns straight quotes into typographic ones: “…” in English, „…“ in Czech, Slovak or German. JSON only accepts straight quotes, so a texturized settings block can no longer be read. In a classic theme this never happens to shortcode output, because WordPress texturizes the page content before shortcodes run. It happens when something texturizes the finished HTML:

  • Block themes. With themes built for the Site Editor (Twenty Twenty-Four, Twenty Twenty-Five and similar), WordPress texturizes the whole rendered template, shortcode output included, in every site language. This is why a table can work with Storefront and stay on Loading ... after switching to a block theme. The FAQ on display issues with localized WordPress shows the same mechanism with Czech, Slovak, German and French quotes.
  • Elementor. The Text Editor widget (and the Accordion and Toggle widgets) runs shortcodes and then texturizes the result. The Shortcode widget does not, so put [woot id=...] into a Shortcode widget. More in WOOT and Elementor.

For block themes, or any case where moving the shortcode is not enough, switch texturizing off:

/*
 * Products tables: stop WordPress from converting straight quotes
 * into typographic ones. Child theme functions.php or a code snippets plugin.
 */
add_filter('run_wptexturize', '__return_false');

This removes automatic curly quotes, dashes and ellipses from the whole site. To keep them everywhere except the pages with tables, limit the filter:

add_filter('run_wptexturize', function ($run) {
    // IDs of the pages that show products tables
    if (is_page([123, 456])) {
        return false;
    }
    return $run;
});

WordPress reads this filter once per page view, at the first texturize call. If another plugin texturizes something very early, the page check runs too soon to match; use the unconditional line in that case. Reload the page logged out and run the console check again: every block should report OK.

The rows request is blocked or fails

When the request exists but does not return rows, the status code tells you where to look.

401 or 403: the request is refused

If tables load for administrators and not for visitors, a rule is blocking admin-ajax.php for anonymous requests. Typical sources are a security plugin's firewall or rate limiting, a hosting firewall (ModSecurity rules), a CDN firewall rule, or server-level password protection of /wp-admin/, which also locks admin-ajax.php. Deactivating the security plugin is a test, not a fix: find the blocked request in its log and allow /wp-admin/admin-ajax.php with the action woot_get_table_data, or ask the hosting to exclude it from the rule. With folder protection, exclude admin-ajax.php from the password.

429, 503 or 509: limits

Every table, page change, sort and filter sends one request. Strict hosting limits on requests or bandwidth can start refusing them on busy pages. The hosting control panel or support shows which limit was hit.

500: a PHP fatal error

Turn on the WordPress debug log in wp-config.php, above the line that says to stop editing:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

Reload the table, then open wp-content/debug.log. The last PHP Fatal error names the file, and the path shows which plugin or theme it belongs to. Remove the lines when you are done. The WordPress debugging guide explains the options.

200, but the response is empty or polluted

An empty answer with status 200 means PHP could not encode the rows as JSON. The usual reason is a product whose title, description or attribute contains text in a broken encoding, for example after an import. The typical sign: only one page of the table, one category or one filter result hangs while the rest load. Put the same shortcode with per_page=1 added on a draft page and page through it; the page that hangs shows the product to fix. Retype the odd characters in its texts and save it. If the response has text or HTML before {"rows":, that text names the problem: a notice, a debugging message or stray output from a plugin or theme file.

502, 504 or a request that never finishes

The server stopped before the rows were ready. Lower the number of products per page, check heavy filters, and read the server error log. If the table loads but slowly, that is a speed question; for text search see how to make search by product title faster.

Script problems, optimizers and single-browser failures

When there is no request and the settings blocks are fine, the table script itself did not run. It needs data-table-23.js, generated-tables.js and general.js from /wp-content/plugins/profit-products-tables-for-woocommerce/assets/js/, in that order, and it starts on the load event.

  • Type typeof DataTable23 in the console. "undefined" means the table library never loaded: look in Network for a 404 or a blocked file.
  • Optimization features that delay JavaScript until the first click or scroll, or that defer and combine scripts, can start the plugin's code after the load event has already fired, or out of order. Exclude the folder above from delay, defer and combine, then clear every cache.
  • An error in another script matters when it sits in the same combined file as the table code or breaks something the table needs. Fix first the errors that name one of the files above or a combined file; report others to the author of the script that throws them.
  • If the table fails only in Safari, read Safari's own console: enable Show features for web developers in Safari's Advanced settings, then open the Develop menu. For an iPhone, turn on Web Inspector in the iPhone's Safari settings and connect it to a Mac.
  • Tables inserted after the page has loaded (themes with AJAX page transitions, content loaded on scroll) are not started, because the plugin looks for tables once, on load. Disable that navigation for pages with tables.

When the table does not appear at all

  • The shortcode is printed as plain text: the place where it sits does not run shortcodes. Use a Shortcode block or widget.
  • Table #12 does not exists!: no table with this ID exists (deleted, or IDs changed after moving the site). Check the IDs in WOOT → Tables.
  • Table 12 is not active!: the Published switch of the table is off in the Tables list.
  • Nothing at all: view the page source and search for woot-table-json-data. If it is missing, the block or section that holds the shortcode is not rendered for this visitor or device.

Checklist

  • Tested logged out, in a private window, after clearing caches.
  • The console snippet reports OK for every table; no JSON error from general.js.
  • On a block theme or in an Elementor Text Editor widget: the shortcode moved or run_wptexturize switched off.
  • The woot_get_table_data request returns 200 and a response that starts with {"rows":.
  • The plugin's assets/js folder is excluded from JavaScript delay, defer and combine.

If all five are true and the table still shows Loading ..., open a topic on the WOOT support forum with the page link, the console errors and the status and response of the admin-ajax request, and we will look at it.