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

Undefined index: orderby #21427

Open
3 of 7 tasks
kkmuffme opened this issue Jun 5, 2024 · 2 comments
Open
3 of 7 tasks

Undefined index: orderby #21427

kkmuffme opened this issue Jun 5, 2024 · 2 comments

Comments

@kkmuffme
Copy link

kkmuffme commented Jun 5, 2024

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

Undefined index: orderby
as reported in #21422

To Reproduce

Expected results

no error

Actual results

PHP notice

Technical info

  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • Elementor Editor
  • Classic Editor
  • Other: WooCommerce order page and other pages that don't specify orderby

Used versions

  • PHP version: 8.2.x
  • WordPress version: 6.5.3
  • WordPress Theme: issue is in wp-admin unrelated to theme
  • Yoast SEO version: 22.8
@josevarghese
Copy link
Contributor

Hi @kkmuffme

Thanks for getting back to us.

I cannot replicate this on the new WooCommerce and Yoast SEO plugin installation. So, can you please navigate to the WooCommerce > Settings > Advanced > Features > and let us know what kind of Order data storage is selected? Are you using the legacy version of order data storage or the recommended one (which is High-performance order storage)?

We look forward to hearing from you and are happy to help you.

@kkmuffme
Copy link
Author

kkmuffme commented Jun 5, 2024

The site's using HPOS. However there are lots of plugins, that might filter something there and cause that.

Just validate with isset instead of assuming orderby key exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants