Blank Screen
-
After the last update, the report is blank and I can’t view anything. White screen on the “reports” tab.
The page I need help with: [log in to see the link]
-
Hi there,
Thanks for letting us know! To check this issue more closely, we’ll need to review your setup directly. Since we don’t request access details in public threads, please open a private ticket here instead.
Once you submit the form, we’ll follow up privately and help you resolve this quickly.
Hi there,
I have the same issue.
A few days ago we’ve updated WooCommerce (Version 10.3.3) and WooCommerce Pre-Orders (Version 2.3.1). Unfortuately the Product Sales Report (now Ninjalytics) doesn’t work anymore. Deactivating WooCommerce Pre-Orders does the trick, but unfortunately I need it.
I’ve already contacted the WooCommerce Support (I guess a KI) and they suggested to get in contact with you.
Thanks!
Hi,
Thanks for reporting this. This issue reported by mydirectb has been already fixed.
Since WooCommerce Pre-Orders is a paid plugin (we don’t have access to it), we need more information to investigate the conflict with WooCommerce Pre-Orders 2.3.1Please provide:
- Site Health Info (Tools → Site Health → Info → copy all)
- debug.log (from wp-content/debug.log) Make sure to have debugging enabled (via WP_DEBUG and WP_DEBUG_LOG in wp-config.php), this file will contain PHP warnings, notices, or fatal errors. Please upload the file or paste only the relevant lines related to Ninjalytics or Pre-Orders.
- Browser Console errors (press F12 → Console → screenshot/copy errors)
- Network errors (F12 → Network → failed requests / responses)
Once we have this data, we can analyze the cause and propose a fix.
Hi,
just to clarify we don’t have a blank screen. The reports load normally, but no sales data are shown.
Environment:
WordPress 6.8.3
WooCommerce 10.3.3
Ninjalytics Free (formerly Product Sales Report) 2.0.3
WooCommerce Pre-Orders 2.3.1
When Pre-Orders is active, Ninjalytics shows no results. As soon as we disable Pre-Orders, all reports work normally again with the same filters.
We analyzed the SQL query used by Ninjalytics and found the following structure:
SELECT
GROUP_CONCAT(DISTINCT order_items.order_item_name) AS field0,
SUM(order_item_meta__line_subtotal.meta_value) AS field1,
SUM(order_item_meta__line_total.meta_value) AS field2,
SUM(order_item_meta__line_tax.meta_value) AS field3,
order_item_meta__product_id.meta_value AS field4,
SUM(order_item_meta__qty.meta_value) AS field5
FROM wp_posts AS posts
LEFT JOIN wp_woocommerce_order_items AS order_items
ON (posts.id = order_items.order_id)
AND (order_items.order_item_type = 'line_item')
LEFT JOIN wp_woocommerce_order_itemmeta AS order_item_meta__line_subtotal
ON (order_items.order_item_id = order_item_meta__line_subtotal.order_item_id)
AND (order_item_meta__line_subtotal.meta_key = '_line_subtotal')
LEFT JOIN wp_woocommerce_order_itemmeta AS order_item_meta__line_total
ON (order_items.order_item_id = order_item_meta__line_total.order_item_id)
AND (order_item_meta__line_total.meta_key = '_line_total')
LEFT JOIN wp_woocommerce_order_itemmeta AS order_item_meta__line_tax
ON (order_items.order_item_id = order_item_meta__line_tax.order_item_id)
AND (order_item_meta__line_tax.meta_key = '_line_tax')
LEFT JOIN wp_woocommerce_order_itemmeta AS order_item_meta__product_id
ON (order_items.order_item_id = order_item_meta__product_id.order_item_id)
AND (order_item_meta__product_id.meta_key = '_product_id')
LEFT JOIN wp_woocommerce_order_itemmeta AS order_item_meta__qty
ON (order_items.order_item_id = order_item_meta__qty.order_item_id)
AND (order_item_meta__qty.meta_key = '_qty')
WHERE
posts.post_type IN ('shop_order')
AND posts.post_status IN ('wc-pre-ordered')
AND posts.post_date_gmt >= '2014-12-31 23:00:00'
AND posts.post_date_gmt <= '2025-12-31 22:59:59'
AND posts.post_status IN ('wc-processing','wc-on-hold','wc-completed')
GROUP BY field4;
As you can see, there are two conflicting post_status conditions. The query requires orders to be both 'wc-pre-ordered' and 'wc-processing'/'wc-completed' etc. at the same time, which is logically impossible — this always returns an empty result set.
This behavior only occurs when the WooCommerce Pre-Orders plugin is active. Once it’s deactivated, the same report runs correctly.
There are no errors in the browser console or in debug.log.
Thanks for looking into this — it seems to be a direct conflict between Ninjalytics and Pre-Orders.Hi there,
Thank you for the additional info, this is super helpful!
Unfortunately Ninjalytics does sometimes experience conflicts with third-party plugins that hook into some of the default WooCommerce reporting hooks. In this case, it appears that the plugin you mentioned is injecting an additional order status into the reporting query, which is causing it to break.
The fix for this is to open the Data & Display report settings toggle, check the Advanced checkbox in the toggle header, and enable the option “Attempt to prevent other plugins or code from changing the export query or output” – this should disable the hook that is interfering with the reporting query.
Please note that some plugins may have legitimate reasons for hooking into the reporting query, and unhooking these may negatively affect reporting accuracy, so it’s important to verify the reporting result, in particular when using the option I mentioned.
Hope this helps!
Thank you very much for the reply.
Unfortunately, the fix you are suggestiong is only possible in the pro version, which we don’t have.
Looks like I have to live with my “fix”: deaktivating the pre-order function – for a short time – to run a report.
The topic ‘Blank Screen’ is closed to new replies.