• Resolved mammadz

    (@mammadz)


    After the latest woocommerce upgrade I’m seeing these after each request:

    Automattic\WooCommerce\Blocks\Domain\Services\ExtendRestApi is deprecated since version 7.2.0! Use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema instead.

    The only plugin using the deprecated class is this:

    plugins/mailchimp-for-woocommerce/blocks/woocommerce-blocks-integration.php:use Automattic\WooCommerce\Blocks\Domain\Services\ExtendRestApi;

    Since it’s spewing on every request it’s cluttering the logs and making it difficult to debug other things. Can you fix this?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The same here, we are detecting tons of this in the debug.log

    [16-Sep-2022 06:53:45 UTC] Automattic\WooCommerce\Blocks\Domain\Services\ExtendRestApi is <strong>deprecated</strong> since version 7.2.0! Use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema instead.

    It should be maybe changed here?

    /plugins/mailchimp-for-woocommerce/blocks/woocommerce-blocks-integration.php:use Automattic\WooCommerce\Blocks\Domain\Services\ExtendRestApi;

    Regards

    Plugin Support khungate

    (@khungate)

    Hi @daweb @mammadz thanks for bringing this up. We’ll look at this in a future release and report back.

    voxoff

    (@voxoff)

    hi guys! same here

    mandm23

    (@mandm23)

    Hi guys, +1000 here, my debug log is jam packed with these errors, which generate at a speed of at least 2 a minute when there are active users on my site.

    This morning the errors were generating at 24 logged errors per minute, see timestamped log example here: https://ibb.co/SmKS0y1

    This has significant site performance ramifications, and I am seeing significant page load delays because of this error writing. Error logging slows down the execution of other site code. See https://pantheon.io/docs/debug-slow-performance

    The change this error is flagging as an issue happened March 15 2022, see https://developer.woocommerce.com/2022/03/15/woocommerce-blocks-7-2-0-release-notes/

    I hope you will consider this less of a problem to get to eventually and more of a priority to fix soon.

    • This reply was modified 2 years ago by mandm23.
    • This reply was modified 2 years ago by mandm23. Reason: clarity
    Plugin Support khungate

    (@khungate)

    Hi @mandm23 @voxoff @daweb @mammadz we wanted to let you know we’ve issued a patch to clear up those deprecated logs you were seeing in a previous version of the plugin. Please let us know if you still have any challenges after upgrading to v2.7.6.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deprecated ExtendRestApi filling logs’ is closed to new replies.