• Resolved aureliencarp

    (@aureliencarp)


    Hello,

    I just connected to the admin panel in wordpress, and I wanted to access to woocommerce home page but when I try to access it, there is only a blank page with a message : “Critical error, an email as been sent to the admin email”.

    So I turned on the debug with define(‘WP_DEBUG’) and in the debug.log I have this error message :

    
    [22-Mar-2022 18:34:16 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Automattic\WooCommerce\Blocks\StoreApi\Schemas\rest_get_endpoint_args_for_schema() in /home/XXX/www/XXX/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractSchema.php:259
    Stack trace:
    #0 /home/XXX/www/XXX/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Routes/CartCoupons.php(38): Automattic\WooCommerce\Blocks\StoreApi\Schemas\AbstractSchema->get_endpoint_args_for_item_schema('POST')
    #1 /home/XXX/www/XXX/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/RoutesController.php(62): Automattic\WooCommerce\Blocks\StoreApi\Routes\CartCoupons->get_args()
    #2 /home/XXX/www/XXX/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/RestApi.php(46): Automattic\WooCommerce\Blocks\StoreApi\RoutesController->register_routes()
    #3 /home/XXX/www/XXX/wp-includes/class-wp-hook.php(287): Automattic\WooCommerce\ in /home/XXX/www/XXX/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractSchema.php on line 259

    Also I can’t access to the woocommerce system status page because only a blank page appears.

    Wordpress : 5.5.3
    Woocommerce : 6.0.1

    • This topic was modified 2 years, 8 months ago by aureliencarp.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Mirko P.

    (@rainfallnixfig)

    Hello @aureliencarp,

    I understand that you’re seeing a blank page with a critical error when you visit WP Dashboard > WooCommerce > Home and WP Dashboard > WooCommerce > Status.

    This usually happens when there is a conflict with your theme or with another plugin. The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Go to the same pages and check again

    If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    Reactivate the theme first and check again. Then, go on and reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Let us know how it goes.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error: rest_get_endpoint_args_for_schema()’ is closed to new replies.