Null exception in get_parent_id() in unit-of-measure/class-main.php
-
Hello Woodmart team,
since the latest updates I noticed that I’m getting an error page when filtering on a woocommerce product archive page and the result is 0 products. Then the WordPress “There was a critical error on your site.” error page gets displayed.
Previously a “no products found” error message was displayed. But now this error message is never shown … only the wp error page.
Steps to reproduce:
1. Go to https://devstaging.tegards.com/shop/c/verglasungen-sichtschutz/glasschiebewaende-deluxe/
2. Input the following filter parameters:
– Einbaubreite in mm: 1250
– Farben: default value (alle Farben)
– Mitnehmer: nothing selected
– versperrbar: ja
– Öffnungsvariante: beiseitig symmetrisch
– Glasvarianten: lagernde Gläser mit Fixmaßen
3. Press “Produkte anzeigen”
4. The error page should be displayed.
In the debug.log file I looked at the error trace and found that this problem probably originated from Woodmart’s unit-of-measure code. The log is in the private section.
How can I fix this?
Best regards
Bernhard
Hello,
To troubleshoot this, please deactivate all plugins except the essential ones:
– WoodMart Core
– WooCommerce
– WPBakery Page Builder or Elementor
If the issue disappears, reactivate the others one by one to find the conflict.
If it persists with everything else off, please share your admin credentials in the Private content field and confirm we may temporarily deactivate plugins and switch themes for testing (15 to 20 minutes). Please back up your site before granting access.
Best regards,
XTemos Studio
Hello Serg,
thanks for your quick response. When deactivating all plugin except the ones you mentioned, I still get the error in the log and no products are shown.
Please take a look at it. It is a staging env, so you can try around as you like 😉
Beste regards
Bernhard