Title: Fatal PHP Error
Last modified: April 3, 2023

---

# Fatal PHP Error

 *  Resolved [clawson](https://wordpress.org/support/users/clawson/)
 * (@clawson)
 * [3 years ago](https://wordpress.org/support/topic/fatal-php-error-32/)
 * Whenever I try to edit a product, the page says “There has been a critical error
   on this website.”. I navigate to the error logs on WPEngine, and this error pops
   up:
 * `PHP Fatal error: Uncaught Error: Call to a member function get_method_id() on
   null in /nas/content/live/airsupplyco/wp-content/plugins/woocommerce/src/Utilities/
   ArrayUtil.php:146#012Stack trace:#012#0 [internal function]: Automattic\WooCommerce\
   Utilities\ArrayUtil::Automattic\WooCommerce\Utilities\{closure}(NULL)#012#1 /
   nas/content/live/airsupplyco/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.
   php(181): array_map(Object(Closure), Array)#012#2 /nas/content/live/airsupplyco/
   wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Shipping/ShippingController.
   php(328): Automattic\WooCommerce\Utilities\ArrayUtil::select(Array, 'get_method_id',
   1)#012#3 [internal function]: Automattic\WooCommerce\Blocks\Shipping\ShippingController-
   >Automattic\WooCommerce\Blocks\Shipping\{closure}(Array)#012#4 /nas/content/live/
   airsupplyco/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Shipping/
   ShippingController.php(330): array_filter(Array, Object(Closure))#012#5 /nas/
   content/live/airsupplyco/wp-includes/class-wp-hook.php(308): Automatti in /nas/
   content/live/airsupplyco/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.
   php on line 146`
 * Using Woocommerce version 7.5.0 and using a custom theme
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-php-error-32%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years ago](https://wordpress.org/support/topic/fatal-php-error-32/#post-16623810)
 * Hi [@clawson](https://wordpress.org/support/users/clawson/)
 * Thanks for reaching out!
 * I understand that you received the error logs above when trying to edit a product
   on your site, correct?
 * Can you please try to switch to the [default Storefront theme](https://woocommerce.com/storefront/)
   and only WooCommerce plugin is enabled and see if this works?
 * If so, then this kind of problem is usually caused by your theme or a third-party
   plugin present on your site. We can run a conflict test to verify this. I’d recommend
   cloning your site to a staging environment and performing the tests described
   on this [guide](https://woocommerce.com/document/how-to-test-for-conflicts/) 
   without modifying your live site or impacting customers. Many hosts provide staging
   facilities, so it’s worth checking in with them. It’s also possible to do it 
   using the free [WP Staging](https://wordpress.org/plugins/wp-staging/) plugin.
 * If this was caused by a third-party plugin present on your site, it would be 
   best to reach out to the developers for further assistance here.
 * If this did not resolve the issue, please share your **System Status Report**,
   that will help us further troubleshoot.
 * You can find it via `WooCommerce > Status`. Select `Get system report` and then`
   Copy for support`. Once you’ve done that, you can paste it into your reply here.
 * You could copy and paste your reply here or paste it via [https://gist.github.com/](https://gist.github.com/)
   and send the link here.
 * Let us know how it goes!
 *  [Igor H](https://wordpress.org/support/users/ihereira/)
 * (@ihereira)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/fatal-php-error-32/#post-16645042)
 * Hi,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.
   Thanks.

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

The topic ‘Fatal PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 4 participants
 * Last reply from: [Igor H](https://wordpress.org/support/users/ihereira/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/fatal-php-error-32/#post-16645042)
 * Status: resolved