Skip to content

Product Attribute Filter Redirects to a Post #36309

@Endda

Description

@Endda

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

Before today, using the product filters feature on my website would work flawlessly. But I woke up this morning to an Adsense error saying they are unable to show ads on pages that worked before.

When looking into the issue, I noticed when I use the product filters feature on my home page of the woocommerce shop, I’m always redirected to the “Hello World” default post that come with WordPress.

However, if I use the product attribute filter feature while viewing a woocommerce category, then the filters work as they should

It’s only when trying to use the attribute filter on the index page of the woocommerce shop, that I’m seeing this redirect issue cropping up now.

I’ve tried switching my theme back to to the default storefront and the issue still persists.

Expected behavior

when selecting one of the many woocommerce product filter attributes, I normally see a filtered list of products based on the attribute that was selected

Actual behavior

instead, if I try to use a product attribute filter on the home page of the woocommerce shop, then I am getting redirected to the hello world post

Steps to reproduce

  1. Visit home page of the website
  2. Select a product filter
  3. watch as the website redirects you to the hello world post instead of filtering the products

WordPress Environment

`

WordPress Environment

WordPress address (URL): https://playstorefinder.com
Site address (URL): https://playstorefinder.com
WC Version: 7.2.2
REST API Version: ✔ 7.2.2
WC Blocks Version: ✔ 8.9.2
Action Scheduler Version: ✔ 3.4.0
Log Directory Writable: ✔
WP Version: 6.1.1
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

Server Environment

Server Info: nginx/1.22.1
PHP Version: 8.1.13
PHP Post Max Size: 100 MB
PHP Time Limit: 300
PHP Max Input Vars: 20000
cURL Version: 7.64.0
OpenSSL/1.1.1n

SUHOSIN Installed: –
MySQL Version: 10.5.18-MariaDB-1:10.5.18+maria~deb10-log
Max Upload Size: 100 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

Database

WC Database Version: 7.2.2
WC Database Prefix: wp_
Total Database Size: 47.47MB
Database Data Size: 35.38MB
Database Index Size: 12.09MB
wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
wp_aiowps_debug_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_aiowps_failed_logins: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_aiowps_login_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_check_email_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_options: Data: 6.52MB + Index: 0.25MB + Engine InnoDB
wp_podsrel: Data: 0.09MB + Index: 0.19MB + Engine InnoDB
wp_postmeta: Data: 14.52MB + Index: 6.03MB + Engine InnoDB
wp_posts: Data: 4.52MB + Index: 0.86MB + Engine InnoDB
wp_termmeta: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
wp_term_relationships: Data: 1.52MB + Index: 0.30MB + Engine InnoDB
wp_term_taxonomy: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
wp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_toolset_associations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_toolset_connected_elements: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_toolset_relationships: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
wp_toolset_type_sets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_attributes_lookup: Data: 0.38MB + Index: 0.27MB + Engine InnoDB
wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.11MB + Index: 0.17MB + Engine InnoDB
wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wpdm_social_shares: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpr_rucss_resources: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wpr_rucss_used_css: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_yoast_indexable: Data: 5.52MB + Index: 1.61MB + Engine InnoDB
wp_yoast_indexable_hierarchy: Data: 0.42MB + Index: 0.52MB + Engine InnoDB
wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_yoast_primary_term: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
wp_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB

Post Type Counts

_pods_field: 4
_pods_group: 1
_pods_pod: 1
acf-field: 1
acf-field-group: 1
astra_adv_header: 1
astra-advanced-hook: 13
attachment: 5643
blockslider: 1
custom_css: 2
customize_changeset: 1
feedback: 3
filter-field: 1
filter-set: 1
nav_menu_item: 55
oembed_cache: 317
option-tree: 1
page: 16
post: 4
product: 1018
revision: 3
wp_block: 13
wp_global_styles: 2
wp-types-group: 3
wpforms: 1

Security

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

Active Plugins (22)

Astra Pro: by Brainstorm Force – 3.9.4
Duplicate Page: by mndpsingh287 – 4.5
Site Kit by Google: by Google – 1.90.1
Gutenslider — The last WordPress slider you will ever need.: by eedee – 5.10.1
ThumbPress - Stop Generating Unnecessary Thumbnails: by Codexpert
Inc – 3.6.1

Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 2.4.22
Nginx Helper: by rtCamp – 2.2.2
NinjaFirewall (WP Edition): by The Ninja Technologies Network – 4.5.5
Performance Lab: by WordPress Performance Team – 1.8.0
Pods - Custom Content Types and Fields: by Pods Framework Team – 2.9.10.2
Super Progressive Web Apps: by SuperPWA – 2.2.11
SVG Support: by Benbodhi – 2.5.5
UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 2.22.25.0

WooCommerce External Product New Tab: by Stuart Duff – 1.0.4
Show product atributes table: by Lo?c de Marc? (LoicTheAztec in Stack Overflow) – 1.0.0
Premmerce Permalink Manager for WooCommerce: by premmerce – 2.3.7
WooCommerce: by Automattic – 7.2.2
Yoast SEO: by Team Yoast – 19.13
WP Mail SMTP: by WPForms – 3.7.0
WP Rocket: by WP Media – 3.9.5
WPForms Lite: by WPForms – 1.7.9
Related Products for WooCommerce: by WebToffee – 1.4.6

Inactive Plugins (5)

Advanced AJAX Product Filters for WooCommerce: by BeRocket – 1.6.3.4
Filter Everything — WooCoomerce Product & WordPress Filter: by Andrii Stepasiuk – 1.7.3
Front Page Scheduler: by Ederson Peka – 0.1.7
Gutenberg: by Gutenberg Team – 14.9.0
ProductX Pro - Gutenberg Product Blocks for WooCommerce: by wpxpo – 1.2.0

Dropin Plugins (2)

advanced-cache.php: advanced-cache.php
object-cache.php: object-cache.php

Must Use Plugins (1)

0-ninjafirewall.php: by The Ninja Technologies Network – 1.0

Settings

API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)

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: –
Enforce Approved Product Download Directories: –
Order datastore: WC_Order_Data_Store_CPT

WC Pages

Shop base: #8 - /
Cart: #9 - /cart/
Checkout: #10 - /checkout/
My account: #11 - /my-account/
Terms and conditions: ❌ Page not set

Theme

Name: Play Store Finder
Version: 1.0.0
Author URL: https://playstorefinder.com/
Child Theme: ✔
Parent Theme Name: Astra
Parent Theme Version: 3.9.4
Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
WooCommerce Support: ✔

Templates

Overrides: playstorefinder-child/woocommerce/single-product/meta.php

Admin

Enabled Features: activity-panels
analytics
coupons
customer-effort-score-tracks
experimental-products-task
experimental-import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
multichannel-marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page

Disabled Features: minified-js
new-product-management-experience
settings

Daily Cron: ✔ Next scheduled: 2023-01-05 22:21:46 +00:00
Options: ✔
Notes: 34
Onboarding: skipped

Action Scheduler

Complete: 231
Oldest: 2022-12-05 15:35:30 +0000
Newest: 2023-01-05 15:09:16 +0000

Pending: 7
Oldest: 2023-01-05 18:50:47 +0000
Newest: 2023-01-09 14:38:12 +0000

Status report information

Generated at: 2023-01-05 15:19:03 +00:00
`

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThe issue is a confirmed bug.Product/Inventory ManagementIssues related to product or product page.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions