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