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

Bug: Console error when using "Sort by" or "Order by" on the Patterns page #68562

Open
3 of 6 tasks
Gulamdastgir-Momin opened this issue Jan 9, 2025 · 5 comments · May be fixed by #68565
Open
3 of 6 tasks

Bug: Console error when using "Sort by" or "Order by" on the Patterns page #68562

Gulamdastgir-Momin opened this issue Jan 9, 2025 · 5 comments · May be fixed by #68565
Labels
[Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended

Comments

@Gulamdastgir-Momin
Copy link

Gulamdastgir-Momin commented Jan 9, 2025

Description

When interacting with the "Sort by" or "Order by" dropdowns on the Patterns page, an error appears in the browser console. The error prevents the proper functioning of the Patterns page and impacts the user experience. I have tested this issue with multiple themes, and the same error occurs consistently.

PS: I am unsure whether to report this issue in Core or here, so I have created this ticket here :)

Step-by-step reproduction instructions

  1. Go to the Patterns page in the WordPress admin.
  2. Interact with the "Sort by" or "Order by" dropdown to change the sorting order.
  3. Check the browser console for errors.

Screenshots, screen recording, code snippet

https://www.awesomescreenshot.com/video/35353642?key=61801b613292042fe287aa45aa78f1dc

Environment info

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.27
  • Server: nginx/1.27.3
  • Database: mysqli (Server: 8.4.3 / Client: mysqlnd 8.2.27)
  • Browser: Chrome 131.0.0.0
  • OS: Linux
  • Theme: Twenty Twenty 2.8
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@Gulamdastgir-Momin Gulamdastgir-Momin added the [Type] Bug An existing feature does not function as intended label Jan 9, 2025
@devansh016
Copy link
Contributor

devansh016 commented Jan 9, 2025

Hi @Gulamdastgir-Momin

Thanks for reporting this issue. I was able to reproduce this issue and raised a PR #68565 which should fix this issue.

@Gulamdastgir-Momin
Copy link
Author

Gulamdastgir-Momin commented Jan 9, 2025

Hey @devansh016,

I have question, in which theme you have tested your code?

Can you try testing your code in "Twenty Twenty Theme" or any other "Classic Theme"

@devansh016
Copy link
Contributor

I have question, in which theme you have tested your code?

Can you try testing your code in "Twenty Twenty Theme" or any other "Classic Theme"

I tested it for Twenty Twenty-Five theme.

@Gulamdastgir-Momin
Copy link
Author

Gulamdastgir-Momin commented Jan 10, 2025

Can you try testing your code in "Twenty Twenty Theme" or any other "Classic Theme"

@devansh016 Can you try this.

@devansh016
Copy link
Contributor

@Gulamdastgir-Momin

I tested this for the below themes and was able to reproduce this console error on all of them.

  • Twenty Fifteen
  • Twenty Seventeen
  • Twenty Nineteen
  • Twenty Twenty
  • Twenty Twenty-Five
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants