Title: Fix the plugin
Last modified: May 5, 2025

---

# Fix the plugin

 *  Resolved [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fix-the-plugin-2/)
 * Can you fix this error?
 *     ```wp-block-code
       The Automattic\WooCommerce\Admin\API\Reports\Products\Query::get_data function is deprecated since version 9.3.0. Replace with GenericQuery, \WC_Object_Query, or direct DataStore use.
       ```
   
 * It is generated by /class/class-mainwp-child-woocommerce-status.php, line 389.
   The solution involves replacing this:
 *     ```wp-block-code
                   $report = new \Automattic\WooCommerce\Admin\API\Reports\Products\Query( $args );
   
                   $product_data = $report->get_data();
       ```
   
 * With something along the lines of this:
 *     ```wp-block-code
       use Automattic\WooCommerce\Admin\API\Reports\Products\DataStore;$data_store = new DataStore();$product_data = $data_store->get_data( $args );
       ```
   
 * Thank you!
 * Best regards.

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

 *  Plugin Support [Bojan Katusic](https://wordpress.org/support/users/bojankatusic/)
 * (@bojankatusic)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fix-the-plugin-2/#post-18452767)
 * Hey [@artprojectgroup](https://wordpress.org/support/users/artprojectgroup/)
 * Thanks for reporting this to us.
 * It will be fixed in an upcoming MainWP Child release.
 *  Plugin Support [Bojan Katusic](https://wordpress.org/support/users/bojankatusic/)
 * (@bojankatusic)
 * [1 year ago](https://wordpress.org/support/topic/fix-the-plugin-2/#post-18464047)
 * The fix for this issue was included in the v5.4.0.7 of the MainWP Child plugin
   released on 13-05-2025.
 * Thanks again for reporting this to us.
 *  Thread Starter [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * (@artprojectgroup)
 * [1 year ago](https://wordpress.org/support/topic/fix-the-plugin-2/#post-18464065)
 * Yes, I’ve seen it and updated it.
 * Thank you very much.
 * Best regards.

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

The topic ‘Fix the plugin’ is closed to new replies.

 * ![](https://ps.w.org/mainwp-child/assets/icon-256x256.png?rev=2734948)
 * [MainWP Child - Securely Connects to the MainWP Dashboard to Manage Multiple Sites](https://wordpress.org/plugins/mainwp-child/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mainwp-child/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mainwp-child/)
 * [Active Topics](https://wordpress.org/support/plugin/mainwp-child/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mainwp-child/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mainwp-child/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Art Project Group](https://wordpress.org/support/users/artprojectgroup/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/fix-the-plugin-2/#post-18464065)
 * Status: resolved