Title: Fatal errors with deprecated functions
Last modified: May 3, 2024

---

# Fatal errors with deprecated functions

 *  Resolved [sometimeska](https://wordpress.org/support/users/sometimeska/)
 * (@sometimeska)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-errors-with-deprecated-functions/)
 * HI, my website keeps stopping and my provider asked me to make a php error log.
   this error comes up frequently, please can you help, thank you Karin.
 * [03-May-2024 08:25:47 UTC] PHP Fatal error: Allowed memory size of 335544320 
   bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/movingu/wp-
   includes/class-wpdb.php on line 2320
   [03-May-2024 08:25:47 UTC] PHP Fatal error:
   Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes)
   in /usr/www/users/movingu/wp-includes/load.php on line 412[03-May-2024 08:26:
   31 UTC] The WC_Product::get_total_stock function is deprecated since version 
   3.0. Replace with get_stock_quantity on each child. Beware of performance issues
   in doing so..
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-errors-with-deprecated-functions%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [sometimeska](https://wordpress.org/support/users/sometimeska/)
 * (@sometimeska)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-errors-with-deprecated-functions/#post-17731097)
 * Also this error which leads to a timeout error
 *     ```wp-block-code
       [03-May-2024 08:34:49 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:49 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:50 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:51 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:51 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:52 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:34:52 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:35 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:35 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:37 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:37 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:54 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:54 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:54 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:54 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:56 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:38:56 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:39:12 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:39:12 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:39:12 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:39:12 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       [03-May-2024 08:40:23 UTC] PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/movingu/wp-includes/class-wpdb.php on line 2320
       [03-May-2024 08:40:23 UTC] PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/movingu/wp-includes/load.php on line 412
       [03-May-2024 08:47:15 UTC] PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/movingu/wp-includes/class-wpdb.php on line 2320
       [03-May-2024 08:47:15 UTC] PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/movingu/wp-includes/load.php on line 412
       [03-May-2024 08:53:18 UTC] PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/movingu/wp-includes/class-wpdb.php on line 2320
       [03-May-2024 08:53:18 UTC] PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/movingu/wp-includes/load.php on line 412
       ```
   
 *  [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-errors-with-deprecated-functions/#post-17731445)
 * I see this notice all the time too:
 *     ```wp-block-code
       [03-May-2024 08:34:49 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.
       ```
   
 * But it’s a _warning_ only and therefore not likely to be the source of your timeout
   error. Either you legitimately need more memory, or more likely you are doing
   something that is causing an infinite loop (at least that is what is what happens
   to me). 
   Best recommendation would be to start with what were you doing when 
   this timeout happened. Then do “the plugin dance” and start disabling plugins
   until you get things working. Then at least you know where the problem is coming
   from. If you still have this issue with only core Woo installed and a default
   theme, then you might have found a core bug and you’ll want to share steps on
   how to reproduce it so that the woo team can look in to it. /not a woo employee
 *  Thread Starter [sometimeska](https://wordpress.org/support/users/sometimeska/)
 * (@sometimeska)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-errors-with-deprecated-functions/#post-17732577)
 * I think you have it right with infinite loop. But wow, reproducing it… I am not
   sure. I have a hundred visitors or so shopping on my site for very few items (
   one of a kind, second hand) and it gets to a point where the site shuts down.
   Increasing memory definitely doesn’t help, the error msgs continue. I am not 
   sure how to shut down and test, I also have wcfm and multiple vendors… I can 
   only do it on Sundays… but I will try tomorrow.
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/fatal-errors-with-deprecated-functions/#post-17735313)
 * Hi there [@sometimeska](https://wordpress.org/support/users/sometimeska/),
 * > I am not sure how to shut down and test
 * You can create a staging site to make the test. This way you will not impact 
   your live store. You can find steps [to creating a staging site here](https://jetpack.com/blog/create-a-staging-website-on-wordpress/).
 * You can find further details to [running a conflict test here](https://woo.com/document/how-to-test-for-conflicts/).
 * Let us know how it goes.
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years ago](https://wordpress.org/support/topic/fatal-errors-with-deprecated-functions/#post-17762393)
 * 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.

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

The topic ‘Fatal errors with deprecated functions’ 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/)

## Tags

 * [deprecated functions](https://wordpress.org/support/topic-tag/deprecated-functions/)
 * [fatal errors](https://wordpress.org/support/topic-tag/fatal-errors/)

 * 5 replies
 * 4 participants
 * Last reply from: [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/fatal-errors-with-deprecated-functions/#post-17762393)
 * Status: resolved