Title: PHP error with Woocommerce / Divi
Last modified: January 5, 2022

---

# PHP error with Woocommerce / Divi

 *  Resolved [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/)
 * Hi,
 * I get an error code;
 * PHP Fatal error: Uncaught Error: Call to a member function get_sku() on null 
   in /home/XXXpublic_html/XXX/wp-content/plugins/woocommerce/templates/single-product/
   meta.php:28
 * After disabe different plugins, it seems like Advanced Woo Search is the plugin
   that is causing the error. I have used the plugin on the site for 2 years, so
   I was very supprised, but it might have to do with the update 2 weeks ago?
 * Could you help me with a solution, as we are very happy with the plugin?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15223977)
 * Hi,
 * Please tell me what WooCommerce plugin version you are currently using?
 * Regards
 *  Thread Starter [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15224518)
 * Hi,
    We are using 6.0, and are up to date.
 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15227369)
 * Sorry, I can’t reproduce this issue.
 * Please tell me some additional information:
 * 1. What wp theme are you currently using?
 * 2. Do you use any page builder plugin to customize search results pages?
 * 3. For the AWS plugin do you choose to show product variations inside search 
   results?
 * 4. Try to open the plugin settings page, find the ‘Search results page’ section
   and change ‘Query hook’ option.
 *  Thread Starter [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15227540)
 * Hi,
 * Ok, we are using a child theme based on Divi. Also, the page had Rank SEO, but
   it is currently disabled (since a few weeks back).
    We don’t show variations,
   only the main product.
 * Do you want me to change query hook from default to posts_pre_query?
 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15234886)
 * > Do you want me to change query hook from default to posts_pre_query?
 * Yes, please try to change it to ‘posts_pre_query’ value and check will this solve
   the issue.
 *  Thread Starter [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15235807)
 * Hi, sorry that didn’t help. I still can’t save a product after edit.
 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15247691)
 * In this case can you please email directly to [support@advanced-woo-search.com](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/support@advanced-woo-search.com?output_format=md)
   ?
   I need some additional details about that issue.
 * Regards
 *  Thread Starter [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15302356)
 * Hi, that’s done so we can take the issue solving to email 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘PHP error with Woocommerce / Divi’ is closed to new replies.

 * ![](https://ps.w.org/advanced-woo-search/assets/icon-256x256.png?rev=3303984)
 * [Advanced Woo Search - Product Search for WooCommerce](https://wordpress.org/plugins/advanced-woo-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-woo-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-woo-search/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-woo-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-woo-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-woo-search/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Local](https://wordpress.org/support/users/fullctrl/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-woocommerce-divi/#post-15302356)
 * Status: resolved