woocommerce / woocommerce-rest-api

This is the WooCommerce core REST API Package. It runs standalone as a feature plugin too.
70 stars 46 forks source link

Product Paging API Bug - WC v3.7.1 #60

Closed mbaio94 closed 4 years ago

mbaio94 commented 5 years ago

Describe the bug Sending a GET request to <storeUrl>/wp-json/wc/v3/products?page=1&per_page=20 correctly returns the first 20 products. However, changing the page url parameter to any page value, returns the same data set in the result: <storeUrl>/wp-json/wc/v3/products?page=2&per_page=20 returns the SAME 20 products that page 1 returned.

Notes:

To Reproduce Steps to reproduce the behavior:

  1. Send HTTPS GET to <storeUrl>/wp-json/wc/v3/products?page=1&per_page=20
  2. Note the IDs of products returned
  3. Send HTTPS GET to <storeUrl>/wp-json/wc/v3/products?page=2&per_page=20
  4. Note that the 20 IDs of products returned are the same IDs of the 1st page.

Expected behavior

Isolating the problem (mark completed items with an [x]):

WordPress Environment

```json { "environment": { "home_url": "removed for confidentiality", "site_url": "removed for confidentiality", "version": "3.7.1", "log_directory": "removed for confidentiality", "log_directory_writable": true, "wp_version": "5.2.4", "wp_multisite": false, "wp_memory_limit": 1073741824, "wp_debug_mode": false, "wp_cron": true, "language": "en_US", "external_object_cache": null, "server_info": "Apache/2.4.29 (Unix) mod_hive/6.27 OpenSSL/1.0.1e-fips mod_fastcgi/2.4.6", "php_version": "7.1.30", "php_post_max_size": 8388608, "php_max_execution_time": 0, "php_max_input_vars": 1000, "curl_version": "7.59.0, OpenSSL/1.0.2r", "suhosin_installed": false, "max_upload_size": 2097152, "mysql_version": "5.6.36", "mysql_version_string": "5.6.36-82.1-log", "default_timezone": "UTC", "fsockopen_or_curl_enabled": true, "soapclient_enabled": true, "domdocument_enabled": true, "gzip_enabled": true, "mbstring_enabled": true, "remote_post_successful": true, "remote_post_response": "200", "remote_get_successful": true, "remote_get_response": "200" }, "database": { "wc_database_version": "3.7.1", "database_prefix": "knmKzKHE_", "maxmind_geoip_database": "removed for confidentiality", "database_tables": { "woocommerce": { "knmKzKHE_woocommerce_sessions": { "data": "1.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_woocommerce_api_keys": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_woocommerce_attribute_taxonomies": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_woocommerce_downloadable_product_permissions": { "data": "0.02", "index": "0.06", "engine": "InnoDB" }, "knmKzKHE_woocommerce_order_items": { "data": "0.20", "index": "0.09", "engine": "InnoDB" }, "knmKzKHE_woocommerce_order_itemmeta": { "data": "1.52", "index": "3.03", "engine": "InnoDB" }, "knmKzKHE_woocommerce_tax_rates": { "data": "0.02", "index": "0.06", "engine": "InnoDB" }, "knmKzKHE_woocommerce_tax_rate_locations": { "data": "0.02", "index": "0.05", "engine": "InnoDB" }, "knmKzKHE_woocommerce_shipping_zones": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_woocommerce_shipping_zone_locations": { "data": "0.02", "index": "0.05", "engine": "InnoDB" }, "knmKzKHE_woocommerce_shipping_zone_methods": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_woocommerce_payment_tokens": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_woocommerce_payment_tokenmeta": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_woocommerce_log": { "data": "0.02", "index": "0.02", "engine": "InnoDB" } }, "other": { "knmKzKHE_aws_cache": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_aws_index": { "data": "21.53", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_bdp_archives": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_blog_designer_pro_shortcodes": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_bp_activity": { "data": "0.02", "index": "0.16", "engine": "InnoDB" }, "knmKzKHE_bp_activity_meta": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_bp_friends": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_bp_messages_messages": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_bp_messages_meta": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_bp_messages_notices": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_bp_messages_recipients": { "data": "0.02", "index": "0.08", "engine": "InnoDB" }, "knmKzKHE_bp_notifications": { "data": "0.02", "index": "0.11", "engine": "InnoDB" }, "knmKzKHE_bp_xprofile_data": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_bp_xprofile_fields": { "data": "0.02", "index": "0.08", "engine": "InnoDB" }, "knmKzKHE_bp_xprofile_groups": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_bp_xprofile_meta": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_ccpo_post_order_rel": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_cli_cookie_scan": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_cli_cookie_scan_categories": { "data": "0.00", "index": "0.00", "engine": "MyISAM" }, "knmKzKHE_cli_cookie_scan_cookies": { "data": "0.00", "index": "0.00", "engine": "MyISAM" }, "knmKzKHE_cli_cookie_scan_url": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_cli_scripts": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_cli_visitor_details": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_commentmeta": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_comments": { "data": "3.52", "index": "3.06", "engine": "InnoDB" }, "knmKzKHE_duplicator_packages": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_ewwwio_images": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_extrawatch_dm_counter": { "data": "0.02", "index": "0.05", "engine": "InnoDB" }, "knmKzKHE_extrawatch_dm_extension": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_extrawatch_dm_paths": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_extrawatch_dm_referrer": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_extrawatch_ip2c_cache": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_extrawatch_user_log": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_extrawatch_visit2goal": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_failed_jobs": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_FinalTiles_gallery": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_FinalTiles_gallery_images": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_gallery_albums": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_gallery_pics": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_gallery_settings": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_hook_list": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_huge_it_share_params": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_huge_it_share_params_posts": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_knmKzKHE_knmKzKHE_hook_list": { "data": "0.22", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_knmKzKHE_knmKzKHE_knmKzKHE_knmKzKHE_hook_list": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_links": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_mailchimp_carts": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_masterslider_options": { "data": "0.06", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_masterslider_sliders": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_mr_integrator_log": { "data": "4.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_mr_wc_dump_requests": { "data": "0.14", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_mr_wc_imports": { "data": "0.13", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_mr_wc_log": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_mr_wc_stats": { "data": "0.36", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_options": { "data": "19.50", "index": "2.81", "engine": "InnoDB" }, "knmKzKHE_pimwick_gift_card": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_pimwick_gift_card_activity": { "data": "0.05", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_pmxe_exports": { "data": "0.08", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_pmxe_google_cats": { "data": "0.39", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_pmxe_posts": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_pmxe_templates": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_postmeta": { "data": "128.63", "index": "46.17", "engine": "InnoDB" }, "knmKzKHE_posts": { "data": "16.52", "index": "8.03", "engine": "InnoDB" }, "knmKzKHE_profiler_details": { "data": "0.31", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_profiler_functions": { "data": "0.36", "index": "0.59", "engine": "InnoDB" }, "knmKzKHE_profiler_plugins": { "data": "0.33", "index": "0.31", "engine": "InnoDB" }, "knmKzKHE_profiler_requests": { "data": "2.52", "index": "0.30", "engine": "InnoDB" }, "knmKzKHE_queue": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_responsive_menu": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_exclude": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_folders": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_photos": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_photos_pos": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_resources": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_settings_presets": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_settings_sets": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_sliders": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_sorting": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_stats": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_tags": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_rs_videos": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_sbi_instagram_feeds_posts": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_sbi_instagram_posts": { "data": "0.27", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_signups": { "data": "0.02", "index": "0.06", "engine": "InnoDB" }, "knmKzKHE_smack_statistics": { "data": "43.56", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_termmeta": { "data": "0.42", "index": "0.61", "engine": "InnoDB" }, "knmKzKHE_terms": { "data": "0.20", "index": "0.22", "engine": "InnoDB" }, "knmKzKHE_term_relationships": { "data": "24.56", "index": "22.56", "engine": "InnoDB" }, "knmKzKHE_term_taxonomy": { "data": "0.23", "index": "0.27", "engine": "InnoDB" }, "knmKzKHE_usermeta": { "data": "1.52", "index": "3.03", "engine": "InnoDB" }, "knmKzKHE_users": { "data": "0.09", "index": "0.05", "engine": "InnoDB" }, "knmKzKHE_wc_admin_notes": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wc_admin_note_actions": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_wc_category_lookup": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wc_customer_lookup": { "data": "0.13", "index": "0.06", "engine": "InnoDB" }, "knmKzKHE_wc_download_log": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_wc_gpf_render_cache": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_wc_order_coupon_lookup": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_wc_order_product_lookup": { "data": "0.16", "index": "0.19", "engine": "InnoDB" }, "knmKzKHE_wc_order_stats": { "data": "0.13", "index": "0.14", "engine": "InnoDB" }, "knmKzKHE_wc_order_tax_lookup": { "data": "0.06", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_wc_points_rewards_user_points": { "data": "0.06", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_wc_points_rewards_user_points_log": { "data": "0.08", "index": "0.05", "engine": "InnoDB" }, "knmKzKHE_wc_product_meta_lookup": { "data": "2.52", "index": "5.05", "engine": "InnoDB" }, "knmKzKHE_wc_tax_rate_classes": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_wc_webhooks": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_wd_fb_data": { "data": "0.28", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wd_fb_info": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wd_fb_option": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wd_fb_shortcode": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wd_fb_theme": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wonderplugin_carousel": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_woocommerce_gpf_google_taxonomy": { "data": "1.52", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_woocommerce_termmeta": { "data": "0.02", "index": "0.03", "engine": "InnoDB" }, "knmKzKHE_wpforms_entries": { "data": "0.39", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_wpforms_entry_fields": { "data": "0.31", "index": "0.17", "engine": "InnoDB" }, "knmKzKHE_wpforms_entry_meta": { "data": "0.02", "index": "0.02", "engine": "InnoDB" }, "knmKzKHE_wplc_chat_msgs": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wplc_chat_sessions": { "data": "1.52", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_wplc_offline_messages": { "data": "0.02", "index": "0.00", "engine": "InnoDB" }, "knmKzKHE_yoast_seo_links": { "data": "0.11", "index": "0.06", "engine": "InnoDB" }, "knmKzKHE_yoast_seo_meta": { "data": "0.31", "index": "0.00", "engine": "InnoDB" } } }, "database_size": { "data": 281.6599999999995, "index": 98.45999999999997 } }, "active_plugins": [ { "plugin": "query-monitor/query-monitor.php", "name": "Query Monitor", "version": "3.4.0", "version_latest": "3.4.0", "url": "https://querymonitor.com/", "author_name": "John Blackbourn", "author_url": "https://querymonitor.com/", "network_activated": false }, { "plugin": "PW-woo-brand-coupon/main.php", "name": "PW Woocomerce Brands coupon Addons", "version": "1.1", "version_latest": "1.1", "url": "http://proword.net/product/brand-coupon-add-on/", "author_name": "Proword", "author_url": "http://proword.net/", "network_activated": false }, { "plugin": "advanced-woo-search/advanced-woo-search.php", "name": "Advanced Woo Search", "version": "1.83", "version_latest": "1.84", "url": "", "author_name": "ILLID", "author_url": "https://advanced-woo-search.com/", "network_activated": false }, { "plugin": "akismet/akismet.php", "name": "Akismet Anti-Spam", "version": "4.1.3", "version_latest": "4.1.3", "url": "https://akismet.com/", "author_name": "Automattic", "author_url": "https://automattic.com/wordpress-plugins/", "network_activated": false }, { "plugin": "amazon-s3-and-cloudfront-pro/amazon-s3-and-cloudfront-pro.php", "name": "WP Offload Media", "version": "2.2.1", "version_latest": "2.2.1", "url": "https://deliciousbrains.com/wp-offload-media/", "author_name": "Delicious Brains", "author_url": "https://deliciousbrains.com/", "network_activated": true }, { "plugin": "amazon-web-services/amazon-web-services.php", "name": "Amazon Web Services", "version": "1.0.5", "version_latest": "1.0.5", "url": "http://wordpress.org/extend/plugins/amazon-web-services/", "author_name": "Delicious Brains", "author_url": "https://deliciousbrains.com/", "network_activated": true }, { "plugin": "astra-addon/astra-addon.php", "name": "Astra Pro", "version": "2.1.2", "version_latest": "2.1.2", "url": "https://wpastra.com/", "author_name": "Brainstorm Force", "author_url": "https://www.brainstormforce.com", "network_activated": false }, { "plugin": "astra-hooks/astra-hooks.php", "name": "Astra Hooks", "version": "1.0.1", "version_latest": "1.0.1", "url": "https://wpastra.com/", "author_name": "Brainstorm Force", "author_url": "http://www.brainstormforce.com", "network_activated": false }, { "plugin": "blog-designer-pro/blog-designer-pro.php", "name": "Blog Designer Pro", "version": "1.1", "version_latest": "1.1", "url": "https://www.solwininfotech.com/product/wordpress-plugins/blog-designer-pro/", "author_name": "Solwin Infotech", "author_url": "https://www.solwininfotech.com/", "network_activated": false }, { "plugin": "classic-editor/classic-editor.php", "name": "Classic Editor", "version": "1.5", "version_latest": "1.5", "url": "https://wordpress.org/plugins/classic-editor/", "author_name": "WordPress Contributors", "author_url": "https://github.com/WordPress/classic-editor/", "network_activated": false }, { "plugin": "constant-contact-woocommerce/plugin.php", "name": "Constant Contact + WooCommerce", "version": "1.1.0", "version_latest": "1.1.0", "url": "https://github.com/WebDevStudios/constant-contact-woocommerce", "author_name": "Constant Contact", "author_url": "https://www.constantcontact.com/", "network_activated": false }, { "plugin": "custom-product-category/custom-product-category.php", "name": "Custom product category widget", "version": "1.0.0", "version_latest": "1.0.0", "url": "", "author_name": "", "author_url": "", "network_activated": false }, { "plugin": "elementor-pro/elementor-pro.php", "name": "Elementor Pro", "version": "2.7.3", "version_latest": "2.7.3", "url": "https://elementor.com/", "author_name": "Elementor.com", "author_url": "https://elementor.com/", "network_activated": false }, { "plugin": "elementor/elementor.php", "name": "Elementor", "version": "2.7.5", "version_latest": "2.7.5", "url": "https://elementor.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash", "author_name": "Elementor.com", "author_url": "https://elementor.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash", "network_activated": false }, { "plugin": "fraudlabs-pro-for-woocommerce/init.php", "name": "FraudLabs Pro for WooCommerce", "version": "2.13.0", "version_latest": "2.13.0", "url": "https://www.fraudlabspro.com", "author_name": "FraudLabs Pro", "author_url": "https://www.fraudlabspro.com/", "network_activated": false }, { "plugin": "google-maps-widget/google-maps-widget.php", "name": "Maps Widget for Google Maps", "version": "4.17", "version_latest": "4.17", "url": "https://www.gmapswidget.com/", "author_name": "WebFactory Ltd", "author_url": "https://www.gmapswidget.com/", "network_activated": false }, { "plugin": "heartbeat-control/heartbeat-control.php", "name": "Heartbeat Control", "version": "1.2.5", "version_latest": "1.2.5", "url": "https://jeffmatson.net/heartbeat-control", "author_name": "Jeff Matson", "author_url": "http://jeffmatson.net", "network_activated": false }, { "plugin": "hide-featured-image/index.php", "name": "Hide Featured Image", "version": "1.3.1", "version_latest": "1.3.1", "url": "http://shahpranav.com/2015/05/hide-featured-image-on-single-post/", "author_name": "shahpranaf", "author_url": "http://shahpranav.com/", "network_activated": false }, { "plugin": "hide-title/dojo-digital-hide-title.php", "name": "Hide Title", "version": "1.0.9", "version_latest": "1.0.9", "url": "http://dojodigital.com", "author_name": "Dojo Digital", "author_url": "http://dojodigital.com", "network_activated": false }, { "plugin": "hw-image-widget/hw-image-widget.php", "name": "HW Image Widget", "version": "4.4", "version_latest": "4.4", "url": "http://wordpress.org/extend/plugins/hw-image-widget/", "author_name": "Håkan Wennerberg", "author_url": "http://webartisan.se/", "network_activated": false }, { "plugin": "image-widget/image-widget.php", "name": "Image Widget", "version": "4.4.7", "version_latest": "4.4.7", "url": "http://wordpress.org/plugins/image-widget/", "author_name": "Modern Tribe, Inc.", "author_url": "http://m.tri.be/iwpdoc", "network_activated": false }, { "plugin": "instagram-feed/instagram-feed.php", "name": "Smash Balloon Instagram Feed", "version": "2.1", "version_latest": "2.1.1", "url": "https://smashballoon.com/instagram-feed", "author_name": "Smash Balloon", "author_url": "https://smashballoon.com/", "network_activated": false }, { "plugin": "masterslider/masterslider.php", "name": "Master Slider Pro", "version": "3.2.14", "version_latest": "3.2.14", "url": "http://codecanyon.net/item/masterslider-pro/7467925?ref=averta", "author_name": "averta", "author_url": "http://averta.net", "network_activated": false }, { "plugin": "megamenu-pro/megamenu-pro.php", "name": "Max Mega Menu - Pro Addon", "version": "1.9.1", "version_latest": "1.9.1", "url": "https://www.megamenu.com", "author_name": "megamenu.com", "author_url": "https://www.megamenu.com", "network_activated": false }, { "plugin": "megamenu-storefront/megamenu-storefront.php", "name": "Max Mega Menu - StoreFront Integration", "version": "1.0.3", "version_latest": "1.0.3", "url": "https://www.megamenu.com", "author_name": "megamenu.com", "author_url": "https://www.megamenu.com", "network_activated": false }, { "plugin": "megamenu/megamenu.php", "name": "Max Mega Menu", "version": "2.7.2", "version_latest": "2.7.2", "url": "https://www.megamenu.com", "author_name": "megamenu.com", "author_url": "https://www.megamenu.com", "network_activated": false }, { "plugin": "meks-quick-plugin-disabler/meks-quick-plugin-disabler.php", "name": "Meks Quick Plugin Disabler", "version": "1.0", "version_latest": "1.0", "url": "https://mekshq.com", "author_name": "Meks", "author_url": "https://mekshq.com", "network_activated": false }, { "plugin": "mr-brands/mr-brands.php", "name": "MR Brands", "version": "1.4.0", "version_latest": "1.4.0", "url": "", "author_name": "Modern Retail", "author_url": "http://www.modernretail.com", "network_activated": false }, { "plugin": "mr-wc-integrator-plugin/mr-woocommerce-integration.php", "name": "WooCommerce Integrator", "version": "3.2.9", "version_latest": "3.2.9", "url": "", "author_name": "Modern Retail", "author_url": "https://www.modernretail.com", "network_activated": false }, { "plugin": "pw-black-friday/pw-black-friday.php", "name": "Black Friday and Cyber Monday for WooCommerce Pro", "version": "1.56", "version_latest": "1.56", "url": "https://www.pimwick.com/black-friday/", "author_name": "Pimwick, LLC", "author_url": "https://www.pimwick.com", "network_activated": false }, { "plugin": "pw-bogo/pw-woocommerce-bogo-free.php", "name": "PW WooCommerce BOGO Pro", "version": "2.107", "version_latest": "2.107", "url": "https://www.pimwick.com/pw-bogo/", "author_name": "Pimwick, LLC", "author_url": "https://www.pimwick.com", "network_activated": false }, { "plugin": "pw-bulk-edit/pw-bulk-edit.php", "name": "PW WooCommerce Bulk Edit Pro", "version": "2.213", "version_latest": "2.213", "url": "https://www.pimwick.com/pw-bulk-edit/", "author_name": "Pimwick, LLC", "author_url": "https://www.pimwick.com", "network_activated": false }, { "plugin": "pw-gift-cards/pw-gift-cards.php", "name": "PW WooCommerce Gift Cards Pro", "version": "1.143", "version_latest": "1.143", "url": "https://www.pimwick.com/gift-cards/", "author_name": "Pimwick, LLC", "author_url": "https://www.pimwick.com", "network_activated": false }, { "plugin": "regenerate-thumbnails/regenerate-thumbnails.php", "name": "Regenerate Thumbnails", "version": "3.1.1", "version_latest": "3.1.1", "url": "https://alex.blog/wordpress-plugins/regenerate-thumbnails/", "author_name": "Alex Mills (Viper007Bond)", "author_url": "https://alex.blog/", "network_activated": false }, { "plugin": "sg-cachepress/sg-cachepress.php", "name": "SG Optimizer", "version": "5.3.6", "version_latest": "5.3.6", "url": "https://siteground.com", "author_name": "SiteGround", "author_url": "https://www.siteground.com", "network_activated": false }, { "plugin": "shortcode-pagination-for-woocommerce/jck-woo-shortcode-pagination.php", "name": "Shortcode Pagination for WooCommerce", "version": "1.0.10", "version_latest": "1.0.10", "url": "https://iconicwp.com/products/shortcode-pagination-woocommerce/", "author_name": "James Kemp", "author_url": "https://iconicwp.com", "network_activated": false }, { "plugin": "sp-woocommerce-featured-product-by-category/sp-woocommerce-best-selling-products-by-category.php", "name": "WP woocommerce featured product by category", "version": "1.1", "version_latest": "1.1", "url": "", "author_name": "WP Online Support", "author_url": "http://wponlinesupport.com", "network_activated": false }, { "plugin": "tablepress-responsive-tables/tablepress-responsive-tables.php", "name": "TablePress Extension: Responsive Tables", "version": "1.5", "version_latest": "1.5", "url": "https://tablepress.org/extensions/responsive-tables/", "author_name": "Tobias Bäthge", "author_url": "https://tobias.baethge.com/", "network_activated": false }, { "plugin": "tablepress/tablepress.php", "name": "TablePress", "version": "1.9.2", "version_latest": "1.9.2", "url": "https://tablepress.org/", "author_name": "Tobias Bäthge", "author_url": "https://tobias.baethge.com/", "network_activated": false }, { "plugin": "the-events-calendar/the-events-calendar.php", "name": "The Events Calendar", "version": "4.9.10", "version_latest": "4.9.10", "url": "", "author_name": "Modern Tribe, Inc.", "author_url": "http://m.tri.be/1x", "network_activated": false }, { "plugin": "tinymce-advanced/tinymce-advanced.php", "name": "TinyMCE Advanced", "version": "5.2.1", "version_latest": "5.2.1", "url": "http://www.laptoptips.ca/projects/tinymce-advanced/", "author_name": "Andrew Ozz", "author_url": "http://www.laptoptips.ca/", "network_activated": false }, { "plugin": "ups-woocommerce-shipping/ups-woocommerce-shipping.php", "name": "UPS WooCommerce Shipping", "version": "3.10.11", "version_latest": "3.10.11", "url": "https://www.pluginhive.com/product/woocommerce-ups-shipping-plugin-with-print-label/", "author_name": "PluginHive", "author_url": "https://www.pluginhive.com/about/", "network_activated": false }, { "plugin": "woo-brand/main.php", "name": "Woocomerce Brands Pro", "version": "4.0", "version_latest": "4.0", "url": "http://proword.net/Woocommerce_Brands_pro/", "author_name": "Proword", "author_url": "http://proword.net/", "network_activated": false }, { "plugin": "woo-product-slider-and-carousel-with-category-pro/woo-product-slider-carousel.php", "name": "Woo Product Slider and Carousel with Category Pro", "version": "1.3", "version_latest": "1.3", "url": "https://www.wponlinesupport.com/", "author_name": "WP OnlineSupport", "author_url": "https://www.wponlinesupport.com/", "network_activated": false }, { "plugin": "woo-related-products-refresh-on-reload/woo-related-products.php", "name": "Related Products for WooCommerce", "version": "3.3.3", "version_latest": "3.3.3", "url": "http://woorelated.eboxnet.com", "author_name": "Vagelis P.", "author_url": "http://eboxnet.com", "network_activated": false }, { "plugin": "woocommerce-360-image/woocommerce-360-image.php", "name": "WooCommerce 360° Image", "version": "1.1.9", "version_latest": "1.1.11", "url": "https://woocommerce.com/products/woocommerce-360-image/", "author_name": "WooCommerce", "author_url": "https://woocommerce.com/", "network_activated": false }, { "plugin": "woocommerce-additional-variation-images/woocommerce-additional-variation-images.php", "name": "WooCommerce Additional Variation Images", "version": "1.7.16", "version_latest": "1.7.17", "url": "https://woocommerce.com/products/woocommerce-additional-variation-images/", "author_name": "WooCommerce", "author_url": "http://www.woocommerce.com/", "network_activated": false }, { "plugin": "woocommerce-admin/woocommerce-admin.php", "name": "WooCommerce Admin", "version": "0.21.0", "version_latest": "0.21.0", "url": "https://github.com/woocommerce/woocommerce-admin", "author_name": "WooCommerce", "author_url": "https://woocommerce.com/", "network_activated": false }, { "plugin": "woocommerce-cart-tab/cart-tab.php", "name": "WooCommerce Cart Tab", "version": "1.1.2", "version_latest": "1.1.2", "url": "http://jameskoster.co.uk/tag/cart-tab/", "author_name": "jameskoster", "author_url": "http://jameskoster.co.uk", "network_activated": false }, { "plugin": "woocommerce-gateway-authorize-net-cim/woocommerce-gateway-authorize-net-cim.php", "name": "WooCommerce Authorize.Net Gateway", "version": "3.1.0", "version_latest": "3.1.0", "url": "http://www.woocommerce.com/products/authorize-net-cim/", "author_name": "SkyVerge", "author_url": "http://www.woocommerce.com/", "network_activated": false }, { "plugin": "woocommerce-google-ads/woocommerce-google-ads.php", "name": "Google Ads for WooCommerce", "version": "1.0.2", "version_latest": "1.0.2", "url": "https://woo.kliken.com/", "author_name": "Kliken", "author_url": "http://kliken.com/", "network_activated": false }, { "plugin": "woocommerce-google-analytics-integration/woocommerce-google-analytics-integration.php", "name": "WooCommerce Google Analytics Integration", "version": "1.4.14", "version_latest": "1.4.15", "url": "http://wordpress.org/plugins/woocommerce-google-analytics-integration/", "author_name": "WooCommerce", "author_url": "https://woocommerce.com", "network_activated": false }, { "plugin": "woocommerce-name-your-price/woocommerce-name-your-price.php", "name": "WooCommerce Name Your Price", "version": "2.10.0", "version_latest": "2.10.0", "url": "http://www.woocommerce.com/products/name-your-price/", "author_name": "Kathy Darling", "author_url": "http://kathyisawesome.com", "network_activated": false }, { "plugin": "woocommerce-order-custom/woocommerce-order-custom.php", "name": "WooCommerce Order Custom", "version": "1.0", "version_latest": "1.0", "url": "", "author_name": "Modernretail", "author_url": "https://www.modernretail.com", "network_activated": false }, { "plugin": "woocommerce-pip/woocommerce-pip.php", "name": "WooCommerce Print Invoices/Packing Lists", "version": "3.7.1", "version_latest": "3.7.1", "url": "http://www.woocommerce.com/products/print-invoices-packing-lists/", "author_name": "SkyVerge", "author_url": "http://www.woocommerce.com/", "network_activated": false }, { "plugin": "woocommerce-points-and-rewards/woocommerce-points-and-rewards.php", "name": "WooCommerce Points and Rewards", "version": "1.6.24", "version_latest": "1.6.25", "url": "https://woocommerce.com/products/woocommerce-points-and-rewards/", "author_name": "WooCommerce", "author_url": "https://woocommerce.com", "network_activated": false }, { "plugin": "woocommerce-product-filters/woocommerce-product-filters.php", "name": "Product Filters for WooCommerce", "version": "1.1.16", "version_latest": "1.1.16", "url": "https://woocommerce.com/products/product-filters/", "author_name": "Nexter", "author_url": "http://woocommerce.com/", "network_activated": false }, { "plugin": "woocommerce-simple-registration/woocommerce-simple-registration.php", "name": "Simple Registration for WooCommerce", "version": "1.5.2", "version_latest": "1.5.2", "url": "https://astoundify.com/products/woocommerce-simple-registration/", "author_name": "Astoundify", "author_url": "https://astoundify.com/", "network_activated": false }, { "plugin": "woocommerce/woocommerce.php", "name": "WooCommerce", "version": "3.7.1", "version_latest": "3.7.1", "url": "https://woocommerce.com/", "author_name": "Automattic", "author_url": "https://woocommerce.com", "network_activated": false }, { "plugin": "wp-all-export-pro/wp-all-export-pro.php", "name": "WP All Export Pro", "version": "1.5.6", "version_latest": "1.5.6", "url": "http://www.wpallimport.com/export/", "author_name": "Soflyy", "author_url": "", "network_activated": false }, { "plugin": "wp-crontrol/wp-crontrol.php", "name": "WP Crontrol", "version": "1.7.1", "version_latest": "1.7.1", "url": "https://wordpress.org/plugins/wp-crontrol/", "author_name": "John Blackbourn & crontributors", "author_url": "https://github.com/johnbillion/wp-crontrol/graphs/contributors", "network_activated": false }, { "plugin": "wp-seopress-pro/seopress-pro.php", "name": "SEOPress PRO", "version": "3.7.3", "version_latest": "3.7.3", "url": "https://www.seopress.org/seopress-pro/", "author_name": "SEOPress", "author_url": "https://www.seopress.org/seopress-pro/", "network_activated": false }, { "plugin": "wp-seopress/seopress.php", "name": "SEOPress", "version": "3.7.3", "version_latest": "3.7.3", "url": "https://www.seopress.org/", "author_name": "SEOPress", "author_url": "https://www.seopress.org/", "network_activated": false }, { "plugin": "wpforms/wpforms.php", "name": "WPForms", "version": "1.5.6.1", "version_latest": "1.5.6.1", "url": "https://wpforms.com", "author_name": "WPForms", "author_url": "https://wpforms.com", "network_activated": false }, { "plugin": "yith-woocommerce-bulk-product-editing-premium/init.php", "name": "YITH WooCommerce Bulk Product Editing Premium", "version": "1.2.18", "version_latest": "1.2.18", "url": "https://yithemes.com/themes/plugins/yith-woocommerce-bulk-product-editing/", "author_name": "YITH", "author_url": "https://yithemes.com/", "network_activated": false } ], "inactive_plugins": [], "dropins_mu_plugins": { "dropins": [ { "plugin": "advanced-cache.php", "name": "advanced-cache.php" }, { "plugin": "db.php", "name": "LudicrousDB" } ], "mu_plugins": [] }, "theme": { "name": "Astra", "version": "2.1.2", "version_latest": "2.1.2", "author_url": "https://wpastra.com/about/", "is_child_theme": false, "has_woocommerce_support": true, "has_woocommerce_file": false, "has_outdated_templates": false, "overrides": [], "parent_name": "", "parent_version": "", "parent_version_latest": "", "parent_author_url": "" }, "settings": { "api_enabled": true, "force_ssl": true, "currency": "USD", "currency_symbol": "$", "currency_position": "left", "thousand_separator": ",", "decimal_separator": ".", "number_of_decimals": 2, "geolocation_enabled": true, "taxonomies": { "external": "external", "grouped": "grouped", "pw-gift-card": "pw gift card", "simple": "simple", "variable": "variable" }, "product_visibility_terms": { "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" }, "woocommerce_com_connected": "yes" }, "security": { "secure_connection": true, "hide_errors": true }, "pages": [ { "page_name": "Shop base", "page_id": "15", "page_set": true, "page_exists": true, "page_visible": true, "shortcode": "", "shortcode_required": false, "shortcode_present": false }, { "page_name": "Cart", "page_id": "3451", "page_set": true, "page_exists": true, "page_visible": true, "shortcode": "[woocommerce_cart]", "shortcode_required": true, "shortcode_present": true }, { "page_name": "Checkout", "page_id": "3454", "page_set": true, "page_exists": true, "page_visible": true, "shortcode": "[woocommerce_checkout]", "shortcode_required": true, "shortcode_present": true }, { "page_name": "My account", "page_id": "3457", "page_set": true, "page_exists": true, "page_visible": true, "shortcode": "[woocommerce_my_account]", "shortcode_required": true, "shortcode_present": true }, { "page_name": "Terms and conditions", "page_id": "", "page_set": false, "page_exists": false, "page_visible": false, "shortcode": "", "shortcode_required": false, "shortcode_present": false } ], "wc_authorize_net_cim": { "is_payment_gateway": true, "lifecycle_events": [ { "name": "upgrade", "time": 1572513181, "version": "3.1.0", "data": { "from_version": "3.0.7" } }, { "name": "upgrade", "time": 1568277771, "version": "3.0.7", "data": { "from_version": "3.0.6" } }, { "name": "upgrade", "time": 1565683631, "version": "3.0.6", "data": { "from_version": "3.0.5" } }, { "name": "upgrade", "time": 1562830057, "version": "3.0.5", "data": { "from_version": "3.0.4" } }, { "name": "upgrade", "time": 1560411994, "version": "3.0.4", "data": { "from_version": "3.0.3" } }, { "name": "upgrade", "time": 1557394811, "version": "3.0.3", "data": { "from_version": "3.0.2" } }, { "name": "upgrade", "time": 1555491273, "version": "3.0.2", "data": { "from_version": "3.0.1" } }, { "name": "upgrade", "time": 1553762720, "version": "3.0.1", "data": { "from_version": "3.0.0" } }, { "name": "upgrade", "time": 1553250159, "version": "3.0.0", "data": { "from_version": "2.10.2" } } ], "gateways": { "authorize_net_cim_credit_card": { "is_enabled": true, "is_available": true, "environment": "production", "debug_mode": false, "supports_tokenization": true, "is_tokenization_enabled": true, "form_type": "inline", "has_client_key": true }, "authorize_net_cim_echeck": { "is_enabled": false, "is_available": false, "environment": "production", "debug_mode": false, "supports_tokenization": true, "is_tokenization_enabled": false, "form_type": "inline", "has_client_key": true } } }, "wc_pip": { "is_payment_gateway": false, "lifecycle_events": [ { "name": "upgrade", "time": 1567587220, "version": "3.7.1", "data": { "from_version": "3.7.0" } }, { "name": "upgrade", "time": 1565683631, "version": "3.7.0", "data": { "from_version": "3.6.7" } }, { "name": "upgrade", "time": 1561019657, "version": "3.6.7", "data": { "from_version": "3.6.6" } }, { "name": "upgrade", "time": 1560156161, "version": "3.6.6", "data": { "from_version": "3.6.5" } }, { "name": "upgrade", "time": 1559829078, "version": "3.6.5", "data": { "from_version": "3.6.3" } }, { "name": "upgrade", "time": 1554301377, "version": "3.6.3", "data": { "from_version": "3.6.2" } } ] } } ```
issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label type: bug to this issue, with a confidence of 0.97. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

juliaamosova commented 4 years ago

@mbaio94 thanks for reporting the issue. However, I can't reproduce it on my end.

My findings:

1) GET Request: /wp-json/wc/v3/products?page=1&per_page=20

First product on Page 1 in Postman:

get1

First product on Page 1 on the site:

get4

Last product on Page 1 in Postman:

get2

Last product on Page 1 on the site:

get5

2) GET Request: /wp-json/wc/v3/products?page=2&per_page=20

First and only product on Page 2 in Postman:

get3

First and only product on Page 2 on the site:

get6

Most likely one of the plugins on the site is causing the request not to work as expected. I recommend testing on the staging site (if you can't test on live site and you shouldn't) with all plugins deactivated except for WooCommerce.

juliaamosova commented 4 years ago

@mbaio94 I am closing this issue due to inactivity. Please feel free to comment on it in case we missed something. We'd be happy to take another look.

Mobashir1995 commented 2 years ago

I am facing the same issue reported by @mbaio94 . The first two page of the pagination query is working fine, but from third page I am finding previous products. I'm using per_page=3.