woocommerce Rest api not work in Multiple sites mode
-
woocommerce Rest api not work in Multiple sites mode
Hi team,
My webiste was build in the Multiple Sites mode. I create a woocommerce Rest API(read/write) in one of the sub-site, but the result show”Error: Sorry, you cannot list resources.”This error only appears in the sub-site in Multiple Sites mode.
My other website that bulid in single site mode did not have such error. The woocommerce rest api work in single site mode.So please help how to solve the error in the Multiple Sites mode.
-
Hey there, @raymondlv! Thanks for contacting us. I’m happy to help you.
It seems you are encountering an issue related to the permissions set for the user role in the REST API. The API uses its own set of permissions, which are separate from the permissions set in WordPress or WooCommerce.
The error message you’re receiving,?
Sorry, you cannot list resources
, typically indicates that the user role assigned doesn’t have the necessary permissions to view or retrieve the data from the endpoint.What user role were you using? Are you using any plugins that modify user roles?
Furthermore, I’d like to understand your site properly. Please share with us the System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
Looking forward to your reply.
Have a wonderful day!
Hi team, I had try to use admin and super admin to create the woocommerce rest api from the woocommerce-setting-Advanced-rest api
check my screenshot, this is a sub-sites woocommerce in the multisites mode. the website is https://vadania.ca/
I had try to create the rest api from my other website that build on single side mode and they work.
please check the my other website that build on single mode. https://vadania.co.uk/
I am using the api to request the woocommerce order data. And the second website work and get the data successfully, but the first webiste that build on multiple website mode did not work.
So I wonder if the multi-site model has an additional layer of identity recognition or security recognition, not like the single site mode, which makes it impossible to obtain the woocommerce order data directly through the sub-site’s API.
Please help
` WordPress Environment</p> <p class=””>WordPress address (URL): https://vadania.ca<br>Site address (URL): https://vadania.ca<br>WC Version: 8.5.2<br>REST API Version: ? 8.5.2<br>WC Blocks Version: ? 11.8.0-dev<br>Action Scheduler Version: ? 3.7.1<br>Log Directory Writable: ?<br>WP Version: 6.4.3<br>WP Multisite: ?<br>WP Memory Limit: 256 MB<br>WP Debug Mode: –<br>WP Cron: –<br>Language: en_CA<br>External object cache: – Server Environment</p> <p class=””>Server Info: Apache<br>PHP Version: 7.4.33<br>PHP Post Max Size: 256 MB<br>PHP Time Limit: 0<br>PHP Max Input Vars: 3000<br>cURL Version: 8.2.1<br>OpenSSL/3.1.1</p> <p class=””>SUHOSIN Installed: –<br>MySQL Version: 8.0.34-26<br>Max Upload Size: 100 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database</p> <p class=””>WC Database Version: 5.5.2<br>WC Database Prefix: cuf_<br>Total Database Size: 111.89MB<br>Database Data Size: 77.54MB<br>Database Index Size: 34.35MB<br>cuf_woocommerce_sessions: Data: 2.02MB + Index: 0.08MB + Engine InnoDB<br>cuf_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>cuf_woocommerce_order_itemmeta: Data: 0.30MB + Index: 0.20MB + Engine InnoDB<br>cuf_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_actionscheduler_actions: Data: 1.05MB + Index: 0.56MB + Engine InnoDB<br>cuf_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_actionscheduler_logs: Data: 1.02MB + Index: 0.30MB + Engine InnoDB<br>cuf_aioseo_cache: Data: 0.17MB + Index: 0.03MB + Engine InnoDB<br>cuf_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_aioseo_posts: Data: 1.52MB + Index: 0.08MB + Engine InnoDB<br>cuf_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_atum_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_atum_product_data: Data: 0.33MB + Index: 0.19MB + Engine InnoDB<br>cuf_aws_cache: Data: 1.52MB + Index: 0.00MB + Engine InnoDB<br>cuf_aws_index: Data: 6.03MB + Index: 5.08MB + Engine InnoDB<br>cuf_blogmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_blogs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_cartflows_ca_cart_abandonment: Data: 0.13MB + Index: 0.02MB + Engine InnoDB<br>cuf_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_commentmeta: Data: 1.52MB + Index: 0.83MB + Engine InnoDB<br>cuf_comments: Data: 2.52MB + Index: 1.80MB + Engine InnoDB<br>cuf_content_tabs_ultimate_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_content_tabs_ultimate_style: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_feedmanager_channel: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_feedmanager_country: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_feedmanager_feed_status: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_feedmanager_field_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_feedmanager_product_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_feedmanager_product_feedmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_feedmanager_source: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB<br>cuf_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_links: Data: 0.06MB + Index: 0.08MB + Engine InnoDB<br>cuf_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_templates: Data: 8.52MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_newsletters: Data: 0.27MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_scheduled_task_subscribers: Data: 0.31MB + Index: 0.14MB + Engine InnoDB<br>cuf_mailpoet_scheduled_tasks: Data: 0.11MB + Index: 0.11MB + Engine InnoDB<br>cuf_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_sending_queues: Data: 0.52MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_statistics_newsletters: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>cuf_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB<br>cuf_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_nx_entries: Data: 0.09MB + Index: 0.03MB + Engine InnoDB<br>cuf_nx_posts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_nx_stats: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_options: Data: 6.38MB + Index: 0.34MB + Engine InnoDB<br>cuf_oxi_div_import: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_postmeta: Data: 12.52MB + Index: 14.38MB + Engine InnoDB<br>cuf_posts: Data: 17.48MB + Index: 0.66MB + Engine InnoDB<br>cuf_registration_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_rich_web_video_slider_effects_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_font_family: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_id: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_videos: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_1: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_1_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_3: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_3_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_4: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_4_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_6: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_6_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_7: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_7_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_8: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_8_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_9: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_9_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_site: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_sitemeta: Data: 4.52MB + Index: 0.03MB + Engine InnoDB<br>cuf_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_statistics_exclusions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_statistics_historical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_statistics_pages: Data: 0.50MB + Index: 1.70MB + Engine InnoDB<br>cuf_statistics_search: Data: 0.09MB + Index: 0.16MB + Engine InnoDB<br>cuf_statistics_useronline: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_statistics_visit: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>cuf_statistics_visitor: Data: 1.52MB + Index: 1.66MB + Engine InnoDB<br>cuf_statistics_visitor_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB<br>cuf_term_taxonomy: Data: 0.13MB + Index: 0.03MB + Engine InnoDB<br>cuf_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_userfeedback_survey_responses: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_userfeedback_surveys: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_usermeta: Data: 0.20MB + Index: 0.16MB + Engine InnoDB<br>cuf_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_wc_admin_note_actions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB<br>cuf_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_order_product_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB<br>cuf_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB<br>cuf_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>cuf_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_product_meta_lookup: Data: 0.23MB + Index: 0.44MB + Engine InnoDB<br>cuf_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_woo_shippment_provider: Data: 0.13MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpf_meta_data: Data: 1.52MB + Index: 1.34MB + Engine InnoDB<br>cuf_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpf_meta_values: Data: 0.13MB + Index: 0.14MB + Engine InnoDB<br>cuf_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpf_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpf_modules_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpf_usage_stat: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>cuf_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_bounceVisits: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_browsers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_countries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wsm_dailyHourlyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_dateWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_datewise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_hourWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_logUniqueVisit: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_wsm_logVisit: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wsm_monthWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthlyDailyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_monthwise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_oSystems: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_pageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_regions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_resolutions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_searchEngines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_toolBars: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_uniqueVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_url_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wsm_visitorInfo: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_yearlyMonthlyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_yearwise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_yoast_indexable: Data: 0.23MB + Index: 0.13MB + Engine InnoDB<br>cuf_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_yoast_seo_links: Data: 0.31MB + Index: 0.16MB + Engine InnoDB Post Type Counts</p> <p class=””>attachment: 2802<br>custom_css: 3<br>customize_changeset: 5<br>elementor_library: 2<br>mailpoet_page: 1<br>ml-slide: 24<br>ml-slider: 6<br>nav_menu_item: 64<br>notificationx: 1<br>oembed_cache: 11<br>page: 22<br>post: 19<br>product: 222<br>product_variation: 1344<br>product-feed: 1<br>revision: 822<br>shop_coupon: 16<br>shop_order: 444<br>shop_order_refund: 40<br>slideshowck: 1<br>sp_wps_shortcodes: 1<br>stocktend_object: 257<br>stocktend_tryst: 1<br>wp_global_styles: 1<br>wpforms: 2<br>wppopups: 1 Security</p> <p class=””>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (48)</p> <p class=””>Astra Widgets: by Brainstorm Force – 1.2.12<br>Carousel Upsells and Related Product for Woocommerce: by Dan Zakirov – 0.4.6<br>Site Kit by Google: by Google – 1.119.0<br>HubSpot All-In-One Marketing – Forms, Popups, Live Chat: by HubSpot – 10.2.23<br>OptinMonster: by OptinMonster Popup Builder Team – 2.15.3<br>Really Simple Featured Video: by Small Town Dev<br>Krishna Kant Chourasiya – 0.8.2</p> <p class=””>Speed Optimizer: by SiteGround – 7.4.6<br>Video Slider Rich: by Slider by Rich-Web – 1.5.3<br>UserFeedback Lite: by UserFeedback Team – 1.0.13<br>WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.26<br>Product Filter by WBW: by WBW – 2.5.2 (update to version 2.5.5 is available)<br>WooCommerce Breadcrumbs: by Anthony Hortin – 1.0.8<br>WooCommerce Stripe Gateway: by WooCommerce – 7.9.1<br>WooCommerce Shipping & Tax: by WooCommerce – 2.4.2 (update to version 2.5.3 is available)<br>WooCommerce: by Automattic – 8.5.2 (update to version 8.6.1 is available)<br>SiteGround Central: by SiteGround – 3.0.2<br>WPC Buy Now Button for WooCommerce: by WPClever – 2.0.2<br>WPC Estimated Delivery Date for WooCommerce: by WPClever – 2.3.4<br>WPForms Lite: by WPForms – 1.8.6.3<br>Menu Image: by Freshlight Lab – 3.11<br>WP Add Mime Types: by Kimiya Kitani – 3.1.1<br>MetaSlider: by MetaSlider – 3.60.1<br>WP Statistics: by VeronaLabs – 14.3.5<br>Advanced Shipment Tracking for WooCommerce: by zorem – 3.6.5<br>Custom Order Numbers for WooCommerce: by Tyche Softwares – 1.7.0<br>Customer Reviews for WooCommerce: by CusRev – 5.38.12<br>Advanced Order Export For WooCommerce: by AlgolPlus – 3.4.5<br>ATUM Inventory Management for WooCommerce: by Stock Management Labs? – 1.9.36<br>WP Mail SMTP: by WP Mail SMTP – 3.11.1<br>Yoast SEO: by Team Yoast – 21.9.1<br>WooCommerce: by Automattic – 8.5.2 (update to version 8.6.1 is available)<br>WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.26<br>WooCommerce Shipping & Tax: by WooCommerce – 2.4.2 (update to version 2.5.3 is available)<br>WooCommerce Stripe Gateway: by WooCommerce – 7.9.1<br>Speed Optimizer: by SiteGround – 7.4.6<br>SiteGround Central: by SiteGround – 3.0.2<br>Astra Widgets: by Brainstorm Force – 1.2.12<br>AMZ Syncer: by Nguyen Ngo – 0.0.1<br>WPB Product Slider for WooCommerce: by wpbean – 2.0.9.8<br>Advanced Woo Search: by ILLID – 2.98<br>WPS Menu Exporter: by WPServeur<br>NicolasKulka<br>wpformation<br>benoti – 1.3.6</p> <p class=””>Perfect Brands WooCommerce: by QuadLayers – 3.3.2<br>WP Product Feed Manager: by WP Marketing Robot – 2.3.0<br>Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.5.1<br>Product Feed Manager for WooCommerce: by RexTheme – 7.3.26<br>WPForms Lite: by WPForms – 1.8.6.3<br>Site Kit by Google: by Google – 1.119.0<br>WooCommerce Google Analytics Integration: by WooCommerce – 1.8.13 Inactive Plugins (1)</p> <p class=””>Conditional Payment Methods for WooCommerce: by theDotstore – 1.1.4 Settings</p> <p class=””>API Enabled: ?<br>Force SSL: –<br>Currency: CAD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)</p> <p class=””>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)</p> <p class=””>Connected to Woo.com: ?<br>Enforce Approved Product Download Directories: –<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages</p> <p class=””>Shop base: #2053 – /shop/<br>Cart: #2054 – /cart/<br>Checkout: #2055 – /checkout/<br>My account: #2056 – /my-account-2/<br>Terms and conditions: ? Page not set Theme</p> <p class=””>Name: Astra<br>Version: 2.6.2 (update to version 4.6.8 is available)<br>Author URL: https://wpastra.com/about/<br>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<br>WooCommerce Support: ? Templates</p> <p class=””>Overrides: astra/woocommerce/archive-product.php<br>astra/woocommerce/loop/rating.php version 3.0.0 is out of date. The core version is 3.6.0</p> <p class=””>Outdated Templates: ?</p> <pre class=”wp-block-code”><code> Learn how to update</code></pre> <p class=””>Admin</p> <p class=””>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>product-virtual-downloadable<br>product-external-affiliate<br>product-grouped<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page</p> <p class=””>Disabled Features: customize-store<br>minified-js<br>new-product-management-experience<br>product-linked<br>settings<br>async-product-editor-category-field</p> <p class=””>Daily Cron: ? Next scheduled: 2024-03-16 08:09:07 +00:00<br>Options: ?<br>Notes: 208<br>Onboarding: completed Action Scheduler</p> <p class=””>Complete: 1,449<br>Oldest: 2024-02-14 01:46:01 +0000<br>Newest: 2024-03-16 01:06:02 +0000</p> <p class=””>Failed: 56<br>Oldest: 2023-02-15 09:38:02 +0000<br>Newest: 2023-09-26 08:18:14 +0000</p> <p class=””>Pending: 12<br>Oldest: 2024-03-16 01:58:02 +0000<br>Newest: 2024-03-21 19:06:02 +0000 Status report information</p> <p class=””>Generated at: 2024-03-16 01:32:49 +00:00<br>`
Hey, @raymondlv!
Thank you for the report and the information.
So I wonder if the multi-site model has an additional layer of identity recognition or security recognition, not like the single site mode, which makes it impossible to obtain the woocommerce order data directly through the sub-site’s API.
It is possible to obtain data from API on multisite.
I see you have outdated version of WooCommerce.
We recommend keeping everything updated. Regularly updating plugins helps maintain your site’s security, performance, and compatibility while ensuring you benefit from the latest features and improvements.
Please update WooCommerce and the theme and any other plugin that needs it and check if the issue persists.
Also, I found a thread where the user got the same error message as you, on the error message do you get the error code 401?
You can take a look at the thread and how it was solved here.
The workaround?involves modifying the authorization header. If you want to try it, please try it at your own risk as I’m not fully sure if this will produce any security issues, and code customization is out of our scope of support.You can also visit the WooCommerce Facebook group or the
#developers
channel of the WooCommerce Community Slack for further assistance with coding. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.Have a wonderful day!
Hi @carolm29
I have tried to update the woocommerce and the 401 error rest API solve method, still now work. Keep showing ” Error: Sorry, you cannot list resources.”
I guess it should be some bugs for multi-sites mode. My other single site mode will work and can get order info from rest API
Should I uninstall the multi-sites mode? Could you please let me know how to uninstall multi-site mode and change back to single site?
I only have 1 sub-site in this multi-site code.
Thank you
` WordPress Environment</p> <p class=””>WordPress address (URL): https://vadania.ca<br>Site address (URL): https://vadania.ca<br>WC Version: 8.6.1<br>REST API Version: ? 8.6.1<br>WC Blocks Version: ? 11.8.0-dev<br>Action Scheduler Version: ? 3.7.1<br>Log Directory Writable: ?<br>WP Version: 6.4.3<br>WP Multisite: ?<br>WP Memory Limit: 256 MB<br>WP Debug Mode: –<br>WP Cron: –<br>Language: en_CA<br>External object cache: – Server Environment</p> <p class=””>Server Info: Apache<br>PHP Version: 7.4.33<br>PHP Post Max Size: 256 MB<br>PHP Time Limit: 0<br>PHP Max Input Vars: 3000<br>cURL Version: 8.2.1<br>OpenSSL/3.1.1</p> <p class=””>SUHOSIN Installed: –<br>MySQL Version: 8.0.34-26<br>Max Upload Size: 100 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database</p> <p class=””>WC Database Version: 5.5.2<br>WC Database Prefix: cuf_<br>Total Database Size: 110.44MB<br>Database Data Size: 76.05MB<br>Database Index Size: 34.39MB<br>cuf_woocommerce_sessions: Data: 2.02MB + Index: 0.08MB + Engine InnoDB<br>cuf_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>cuf_woocommerce_order_itemmeta: Data: 0.30MB + Index: 0.20MB + Engine InnoDB<br>cuf_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_actionscheduler_actions: Data: 1.05MB + Index: 0.56MB + Engine InnoDB<br>cuf_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_actionscheduler_logs: Data: 1.02MB + Index: 0.30MB + Engine InnoDB<br>cuf_aioseo_cache: Data: 0.17MB + Index: 0.03MB + Engine InnoDB<br>cuf_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_aioseo_posts: Data: 1.52MB + Index: 0.08MB + Engine InnoDB<br>cuf_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_atum_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_atum_product_data: Data: 0.33MB + Index: 0.19MB + Engine InnoDB<br>cuf_aws_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_aws_index: Data: 6.03MB + Index: 5.08MB + Engine InnoDB<br>cuf_blogmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_blogs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_cartflows_ca_cart_abandonment: Data: 0.13MB + Index: 0.02MB + Engine InnoDB<br>cuf_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_commentmeta: Data: 1.52MB + Index: 0.83MB + Engine InnoDB<br>cuf_comments: Data: 2.52MB + Index: 1.80MB + Engine InnoDB<br>cuf_content_tabs_ultimate_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_content_tabs_ultimate_style: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_feedmanager_channel: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_feedmanager_country: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_feedmanager_feed_status: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_feedmanager_field_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_feedmanager_product_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_feedmanager_product_feedmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_feedmanager_source: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB<br>cuf_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_links: Data: 0.06MB + Index: 0.08MB + Engine InnoDB<br>cuf_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_newsletter_templates: Data: 8.52MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_newsletters: Data: 0.27MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_scheduled_task_subscribers: Data: 0.31MB + Index: 0.14MB + Engine InnoDB<br>cuf_mailpoet_scheduled_tasks: Data: 0.11MB + Index: 0.11MB + Engine InnoDB<br>cuf_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_sending_queues: Data: 0.52MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_statistics_newsletters: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>cuf_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB<br>cuf_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_nx_entries: Data: 0.09MB + Index: 0.03MB + Engine InnoDB<br>cuf_nx_posts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_nx_stats: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_options: Data: 6.38MB + Index: 0.38MB + Engine InnoDB<br>cuf_oxi_div_import: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_postmeta: Data: 12.52MB + Index: 14.38MB + Engine InnoDB<br>cuf_posts: Data: 17.48MB + Index: 0.66MB + Engine InnoDB<br>cuf_registration_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_rich_web_video_slider_effects_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_font_family: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_id: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_video_slider_videos: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_1: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_1_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_3: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_3_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_4: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_4_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_6: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_6_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_7: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_7_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_8: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_8_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_9: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_rich_web_vs_effect_9_loader: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_site: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_sitemeta: Data: 4.52MB + Index: 0.03MB + Engine InnoDB<br>cuf_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_statistics_exclusions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_statistics_historical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_statistics_pages: Data: 0.50MB + Index: 1.70MB + Engine InnoDB<br>cuf_statistics_search: Data: 0.09MB + Index: 0.16MB + Engine InnoDB<br>cuf_statistics_useronline: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_statistics_visit: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>cuf_statistics_visitor: Data: 1.52MB + Index: 1.66MB + Engine InnoDB<br>cuf_statistics_visitor_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB<br>cuf_term_taxonomy: Data: 0.13MB + Index: 0.03MB + Engine InnoDB<br>cuf_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_userfeedback_survey_responses: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_userfeedback_surveys: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_usermeta: Data: 0.20MB + Index: 0.16MB + Engine InnoDB<br>cuf_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_wc_admin_note_actions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB<br>cuf_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>cuf_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_order_product_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB<br>cuf_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB<br>cuf_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>cuf_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_product_meta_lookup: Data: 0.23MB + Index: 0.44MB + Engine InnoDB<br>cuf_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_woo_shippment_provider: Data: 0.13MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpf_meta_data: Data: 1.52MB + Index: 1.34MB + Engine InnoDB<br>cuf_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpf_meta_values: Data: 0.13MB + Index: 0.14MB + Engine InnoDB<br>cuf_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpf_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpf_modules_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpf_usage_stat: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>cuf_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_bounceVisits: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_browsers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_countries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_wsm_dailyHourlyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_dateWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_dateWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_datewise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_hourWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_hourWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_logUniqueVisit: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_wsm_logVisit: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wsm_monthWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_monthlyDailyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_monthwise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_oSystems: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_pageViews: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_regions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_resolutions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_searchEngines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_toolBars: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_uniqueVisitors: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_url_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_wsm_visitorInfo: Data: 0.00MB + Index: 0.00MB + Engine<br>cuf_wsm_yearlyMonthlyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wsm_yearwise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>cuf_yoast_indexable: Data: 0.23MB + Index: 0.13MB + Engine InnoDB<br>cuf_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>cuf_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>cuf_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>cuf_yoast_seo_links: Data: 0.31MB + Index: 0.16MB + Engine InnoDB Post Type Counts</p> <p class=””>attachment: 2804<br>custom_css: 3<br>customize_changeset: 6<br>elementor_library: 2<br>mailpoet_page: 1<br>ml-slide: 24<br>ml-slider: 6<br>nav_menu_item: 64<br>notificationx: 1<br>oembed_cache: 11<br>page: 22<br>post: 19<br>product: 222<br>product_variation: 1344<br>product-feed: 1<br>revision: 824<br>shop_coupon: 16<br>shop_order: 448<br>shop_order_refund: 40<br>slideshowck: 1<br>sp_wps_shortcodes: 1<br>stocktend_object: 257<br>stocktend_tryst: 1<br>wp_global_styles: 1<br>wpforms: 2<br>wppopups: 1 Security</p> <p class=””>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (48)</p> <p class=””>Astra Widgets: by Brainstorm Force – 1.2.12<br>Carousel Upsells and Related Product for Woocommerce: by Dan Zakirov – 0.4.6<br>Site Kit by Google: by Google – 1.119.0<br>HubSpot All-In-One Marketing – Forms, Popups, Live Chat: by HubSpot – 10.2.23<br>OptinMonster: by OptinMonster Popup Builder Team – 2.15.3<br>Really Simple Featured Video: by Small Town Dev<br>Krishna Kant Chourasiya – 0.8.2</p> <p class=””>Speed Optimizer: by SiteGround – 7.4.6<br>Video Slider Rich: by Slider by Rich-Web – 1.5.3<br>UserFeedback Lite: by UserFeedback Team – 1.0.13<br>WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.26<br>Product Filter by WBW: by WBW – 2.5.2 (update to version 2.5.5 is available)<br>WooCommerce Breadcrumbs: by Anthony Hortin – 1.0.8<br>WooCommerce Stripe Gateway: by WooCommerce – 7.9.1<br>WooCommerce Shipping & Tax: by WooCommerce – 2.4.2 (update to version 2.5.3 is available)<br>WooCommerce: by Automattic – 8.6.1<br>SiteGround Central: by SiteGround – 3.0.2<br>WPC Buy Now Button for WooCommerce: by WPClever – 2.0.2<br>WPC Estimated Delivery Date for WooCommerce: by WPClever – 2.3.4<br>WPForms Lite: by WPForms – 1.8.6.3<br>Menu Image: by Freshlight Lab – 3.11<br>WP Add Mime Types: by Kimiya Kitani – 3.1.1<br>MetaSlider: by MetaSlider – 3.60.1<br>WP Statistics: by VeronaLabs – 14.3.5<br>Advanced Shipment Tracking for WooCommerce: by zorem – 3.6.5<br>Custom Order Numbers for WooCommerce: by Tyche Softwares – 1.7.0<br>Customer Reviews for WooCommerce: by CusRev – 5.38.12<br>Advanced Order Export For WooCommerce: by AlgolPlus – 3.4.5<br>ATUM Inventory Management for WooCommerce: by Stock Management Labs? – 1.9.36<br>WP Mail SMTP: by WP Mail SMTP – 3.11.1<br>Yoast SEO: by Team Yoast – 21.9.1<br>WooCommerce: by Automattic – 8.6.1<br>WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.26<br>WooCommerce Shipping & Tax: by WooCommerce – 2.4.2 (update to version 2.5.3 is available)<br>WooCommerce Stripe Gateway: by WooCommerce – 7.9.1<br>Speed Optimizer: by SiteGround – 7.4.6<br>SiteGround Central: by SiteGround – 3.0.2<br>Astra Widgets: by Brainstorm Force – 1.2.12<br>AMZ Syncer: by Nguyen Ngo – 0.0.1<br>WPB Product Slider for WooCommerce: by wpbean – 2.0.9.8<br>Advanced Woo Search: by ILLID – 2.98<br>WPS Menu Exporter: by WPServeur<br>NicolasKulka<br>wpformation<br>benoti – 1.3.6</p> <p class=””>Perfect Brands WooCommerce: by QuadLayers – 3.3.2<br>WP Product Feed Manager: by WP Marketing Robot – 2.3.0<br>Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.5.1<br>Product Feed Manager for WooCommerce: by RexTheme – 7.3.26<br>WPForms Lite: by WPForms – 1.8.6.3<br>Site Kit by Google: by Google – 1.119.0<br>WooCommerce Google Analytics Integration: by WooCommerce – 1.8.13 Inactive Plugins (1)</p> <p class=””>Conditional Payment Methods for WooCommerce: by theDotstore – 1.1.4 Settings</p> <p class=””>API Enabled: ?<br>Force SSL: –<br>Currency: CAD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)</p> <p class=””>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)</p> <p class=””>Connected to Woo.com: ?<br>Enforce Approved Product Download Directories: –<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages</p> <p class=””>Shop base: #2053 – /shop/<br>Cart: #2054 – /cart/<br>Checkout: #2055 – /checkout/<br>My account: #2056 – /my-account-2/<br>Terms and conditions: ? Page not set Theme</p> <p class=””>Name: Astra<br>Version: 2.6.2 (update to version 4.6.8 is available)<br>Author URL: https://wpastra.com/about/<br>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<br>WooCommerce Support: ? Templates</p> <p class=””>Overrides: astra/woocommerce/archive-product.php<br>astra/woocommerce/loop/rating.php version 3.0.0 is out of date. The core version is 3.6.0</p> <p class=””>Outdated Templates: ?</p> <pre class=”wp-block-code”><code> Learn how to update</code></pre> <p class=””>Admin</p> <p class=””>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>product-virtual-downloadable<br>product-external-affiliate<br>product-grouped<br>product-linked<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page</p> <p class=””>Disabled Features: customize-store<br>minified-js<br>new-product-management-experience<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field</p> <p class=””>Daily Cron: ? Next scheduled: 2024-03-19 08:09:07 +00:00<br>Options: ?<br>Notes: 208<br>Onboarding: completed Action Scheduler</p> <p class=””>Complete: 1,483<br>Oldest: 2024-02-16 09:22:01 +0000<br>Newest: 2024-03-18 08:31:02 +0000</p> <p class=””>Failed: 56<br>Oldest: 2023-02-15 09:38:02 +0000<br>Newest: 2023-09-26 08:18:14 +0000</p> <p class=””>Pending: 13<br>Oldest: 2024-03-18 09:16:01 +0000<br>Newest: 2024-03-25 07:47:38 +0000 Status report information</p> <p class=””>Generated at: 2024-03-18 08:40:14 +00:00<br>`
Hey @raymondlv,
In a multisite setup, permissions can be a bit more complex. Even if you are a super admin, you might not have the correct permissions on the sub-site to access the API.
I have tried to update the woocommerce and the 401 error rest API solve method, still now work. Keep showing ” Error: Sorry, you cannot list resources.”
I noticed that you are using HTTP, not HTTPS. The 401 error you are getting is because you are using basic auth even though your website is not secure (does not have https). To resolve this issue, either use OAuth 1.0 or install SSL on your site and send the request over https.
Additionally, ensure that the user whose keys you are using has “read” and “write” permissions on the specific sub-site.
- https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https
- https://stackoverflow.com/questions/42593704/cannot-list-resources-error-from-woocommerce-rest-api
- https://discourse.roots.io/t/woocommerce-rest-api-multisite-issues-401-403/21276/3
Could you please let me know how to uninstall multi-site mode and change back to single site?
It’s a complex process and can potentially lead to data loss. I would recommend trying to resolve the permissions issue first before considering this step.
- https://progressus.io/switching-woocommerce-multisite-single-site/
- https://kinsta.com/blog/wordpress-multisite-to-single-site/
- https://www.cloudways.com/blog/wordpress-multisite-to-single-site/
I hope this helps! Please let us know how it goes or if you need further assistance.
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.
- The topic ‘woocommerce Rest api not work in Multiple sites mode’ is closed to new replies.