Title: PHP error
Last modified: May 29, 2022

---

# PHP error

 *  Resolved [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php-error-528/)
 * Hello,
 * I got this PHP error log:
    The Automattic\WooCommerce\Admin\API\Options::get_options
   function is deprecated since version 3.1.
 * What is REST API use for?
 * How can fix the error?
 * Please kindly advise and help. Thanks in advance!

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

 *  [Juan G. (woo-hc)](https://wordpress.org/support/users/judagutor/)
 * (@judagutor)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php-error-528/#post-15690122)
 * Hi [@cfm168](https://wordpress.org/support/users/cfm168/)!
 * > What is REST API use for?
 * In simple terms, in this case, REST API is for making integrations or plugins;
   it requests information it needs from WooCommerce and provides then a response
   or product with it.
 * > How can fix the error?
 * There’s a report for that bug on Github, and a fix is coming within the next 
   WooCommerce core update (6.6.0). Read more on this thread:
 * [https://github.com/woocommerce/woocommerce/issues/32863](https://github.com/woocommerce/woocommerce/issues/32863)
 * I hope this helps!
 *  [Juan G. (woo-hc)](https://wordpress.org/support/users/judagutor/)
 * (@judagutor)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php-error-528/#post-15713681)
 * Hi there,
 * We haven’t heard back from you in a while, so I’m marking this thread as resolved.
 * Hopefully, the provided information was helpful, and we answered your queries.
   If you have any further questions, we recommend [creating a new thread](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Cheers!

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

The topic ‘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
 * 2 participants
 * Last reply from: [Juan G. (woo-hc)](https://wordpress.org/support/users/judagutor/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/php-error-528/#post-15713681)
 * Status: resolved