• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • @aureliencarp

    Can you update your WordPress and WooCommerce to the latest version to see if it fixes the issue?

    You can set up a staging site for this test using the guide below:
    https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    I look forward to hearing from you.

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved – we’ll be here if and/or when you are ready to continue.

    Thread Starter aureliencarp

    (@aureliencarp)

    Hello,

    Yes sorry I forgot to give a feedback about this issue.

    I updated woocommerce and WordPress to the latest version but some woocommerce pages were still blank. So, I just went on Chrome instead of Firefox to test, and on Chrome I didn’t get any blank page.

    So it seems that Firefox has some bugs with Woocommerce.

    It is great that you were able to find a way forward.
    Thank you for your feedback.

    So it seems that Firefox has some bugs with Woocommerce.

    This should be a local issue. If you still want to try with Firefox, please troubleshoot as follows:
    1. Clear your browser’s cache.
    2. Update your browser to the latest version.
    3. Disable any browser extension you’re using.
    4. Test your site again

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error: Woocommerce blocks package’ is closed to new replies.