Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP notice when viewing product page for a product with variations #3815

Open
annemirasol opened this issue Jan 31, 2025 · 0 comments
Open
Labels
priority: medium The issue/PR is medium priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.

Comments

@annemirasol
Copy link
Contributor

annemirasol commented Jan 31, 2025

Describe the bug
When loading the product page for a variable product, e.g. product/hoodie/, we see this notice on the PHP logs:

PHP Notice:  Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1700

This may or may not be Stripe extension-related. Further investigation is needed.

To Reproduce
Steps to reproduce the behavior:

  1. Visit the product page of a variable product, e.g. https://mytestshop.com/product/hoodie/ if you have the WooCommerce sample product dataset loaded.
  2. See PHP notice in your logs.

Environment (please complete the following information):

  • WordPress Version: 6.7.1
  • WooCommerce Version: 9.6.0
  • Stripe Plugin Version: latest develop

Additional context
This may or may not be Stripe extension-related. Further investigation is needed.

@annemirasol annemirasol added the type: bug The issue is a confirmed bug. label Jan 31, 2025
@annemirasol annemirasol added the priority: medium The issue/PR is medium priority—it affects lots of customers substantially, but not critically. label Jan 31, 2025
@annemirasol annemirasol changed the title PHP notice when accessing a product with variations PHP notice when viewing product page for a product with variations Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium The issue/PR is medium priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant