Changing REST prefix breaks Woocommerce
-
### WordPress Environment ### WordPress address (URL): https://www.example.com Site address (URL): https://www.example.com WC Version: 4.5.2 REST API Version: ? 4.5.2 WC Blocks Version: ? 3.1.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.5.0 Log Directory Writable: ? WP Version: 5.5.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: – Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache/2.2.21 (Unix) PHP/7.4.10 PHP Version: 7.4.10 PHP Post Max Size: 64 MB PHP Time Limit: 30 PHP Max Input Vars: 10000 cURL Version: 7.66.0 OpenSSL/1.1.1g SUHOSIN Installed: – MySQL Version: 5.6.10-log Max Upload Size: 64 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.5.2 WC Database Prefix: ttt953002_ Total Database Size: 5.53MB Database Data Size: 3.19MB Database Index Size: 2.34MB ttt953002_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB ttt953002_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB ttt953002_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB ttt953002_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB ttt953002_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB ttt953002_csp3_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_cspv5_pages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_ewwwio_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_options: Data: 1.03MB + Index: 0.08MB + Engine InnoDB ttt953002_oses_attachments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_oses_clicks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_oses_emails: Data: 0.23MB + Index: 0.08MB + Engine InnoDB ttt953002_oses_email_attachments: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_oses_failures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_oses_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_postmeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB ttt953002_posts: Data: 0.05MB + Index: 0.06MB + Engine InnoDB ttt953002_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_usermeta: Data: 0.03MB + Index: 0.03MB + Engine InnoDB ttt953002_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ttt953002_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB ttt953002_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ttt953002_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB ttt953002_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ttt953002_wfconfig: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ttt953002_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB ttt953002_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB ttt953002_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ttt953002_wfstatus: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_woocommerce_subscription_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ttt953002_yoast_indexable: Data: 0.02MB + Index: 0.08MB + Engine InnoDB ttt953002_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ttt953002_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ttt953002_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ttt953002_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 8 oembed_cache: 9 page: 6 post: 2 product: 6 product_variation: 12 shop_order: 5 ### Security ### Secure connection (HTTPS): ? Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ? ### Active Plugins (7) ### Classic Editor: by WordPress Contributors – 1.6 WooCommerce Stripe Gateway: by WooCommerce – 4.5.3 – Installed version not tested with active version of WooCommerce 4.5.2 WooCommerce: by Automattic – 4.5.2 Wordfence Security: by Wordfence – 7.4.11 Yoast SEO: by Team Yoast – 15.0 WP Offload SES Lite: by Delicious Brains – 1.4.3 ### Inactive Plugins (10) ### Parcel2Go Shipping: by Parcel2Go.com – 1.0.4 – Installed version not tested with active version of WooCommerce 4.5.2 SeedProd Coming Soon Page Pro: by SeedProd – 5.12.8 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.0 WooCommerce Subscription Downloads: by WooCommerce – 1.1.28 – Installed version not tested with active version of WooCommerce 4.5.2 WooCommerce Subscriptions: by WooCommerce – 3.0.8 ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #6 - /shop/ Basket: #7 - /basket/ Checkout: #8 - /checkout/ My account: #9 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Storefront Version: 2.7.0 Author URL: https://woocommerce.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Canceled: 1 Oldest: 2020-10-03 13:50:32 +0100 Newest: 2020-10-03 13:50:32 +0100 Complete: 29 Oldest: 2020-10-03 13:50:32 +0100 Newest: 2020-10-09 19:37:09 +0100
If the REST API prefix is changed from the default wp-json by using the ‘rest_url_prefix’ filter hook then several WC admin function calls fail with a 404.
For example the Woocommerce admin ‘home’ page – wp-admin/admin.php?page=wc-admin – these calls will fail:-
Not all requests fail just some – seems to be related to the wc-analytics reports packages/modules – another example is the customers report which also fails:-
- The topic ‘Changing REST prefix breaks Woocommerce’ is closed to new replies.