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

Issue with converting paragraph block to heading #49606

Closed
PH4NTOMiki opened this issue Apr 5, 2023 · 9 comments
Closed

Issue with converting paragraph block to heading #49606

PH4NTOMiki opened this issue Apr 5, 2023 · 9 comments
Labels
[Feature] Block Conversion Block transforms from one block to another [Status] Needs More Info Follow-up required in order to be actionable. [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. [Type] Bug An existing feature does not function as intended

Comments

@PH4NTOMiki
Copy link

Description

Everytime I try to convert paragraph to heading, this error shows, this happens in Template Part if that's relevant.
I'm sorry that I can't provide more details now

Step-by-step reproduction instructions

TypeError: Cannot convert undefined or null to object
at Function.entries ()
at Or (https://staging.example.com/wp-includes/js/dist/block-editor.min.js?ver=ed2b2aa3837336baf00f:26:105882)
at https://staging.example.com/wp-includes/js/dist/block-editor.min.js?ver=ed2b2aa3837336baf00f:26:105922
at Array.map ()
at Or (https://staging.example.com/wp-includes/js/dist/block-editor.min.js?ver=ed2b2aa3837336baf00f:26:105893)
at Dr (https://staging.example.com/wp-includes/js/dist/block-editor.min.js?ver=ed2b2aa3837336baf00f:26:106047)
at https://staging.example.com/wp-includes/js/dist/block-editor.min.js?ver=ed2b2aa3837336baf00f:26:106568
at Array.forEach ()
at https://staging.example.com/wp-includes/js/dist/block-editor.min.js?ver=ed2b2aa3837336baf00f:26:106509
at Array.forEach ()

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.2
Microsoft Edge on Windows 11
I also tried on Firefox and the same thing happens

Server is NGINX on private VPS

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

@kathrynwp kathrynwp added [Feature] Block Conversion Block transforms from one block to another [Type] Bug An existing feature does not function as intended [Status] Needs More Info Follow-up required in order to be actionable. labels Apr 5, 2023
@kathrynwp
Copy link

Hi @PH4NTOMiki - I haven't been able to replicate this issue yet with the following:

  • WP 6.2
  • Footer template part
  • Twenty Twenty-Three
  • No plugins active or Gutenberg 15.4.0 active

Could you please try the following troubleshooting steps and let me know how it goes:

  • Is the issue present with all your plugins temporarily deactivated? You can use the Health Check plugin's troubleshooting mode for this, which will not change your live site – If the problem goes away, reactivate your plugins one by one (while still in troubleshooting mode) to find the culprit.
  • Is the issue present with a default theme like Twenty Twenty-Three? Again, you can use the Health Check plugin for this.

@PH4NTOMiki
Copy link
Author

I was using 2023 theme, and I'm just starting the site, so there isn't any plugins installed/activated

@kathrynwp
Copy link

@PH4NTOMiki Here are some further troubleshooting questions:

  • Does this happen in every template part or just one specific one?
  • Does this happen in posts and pages as well?
  • Does it happen in Twenty Twenty-Two?
  • Could you please provide a screencast showing the issue?

Thanks.

@PH4NTOMiki
Copy link
Author

  • It happens in this specific one only, I don't know what's special about it
  • No

@kathrynwp
Copy link

Could you please provide a screencast showing the issue?

Is it:

  • a default template part with no changes
  • a custom template part
  • a default template part to which you've made modifications? If it is, I suggest undoing your customizations and then adding them back one at a time, testing the transform in between each:

Template_Parts_‹_Testing_Testing_123_—_WordPress

@andreaslindahl
Copy link

This is perhaps not the exact same issue, but I got the same error the other day when calling createBlock and passing in an attributes object where one of the attributes had a null value. I had a couple of blocks that had some attributes' default values set to "null" in the block.json files, and once I removed these default values everything worked as it should.

So maybe this is something similar - an attribute with a value of null which for some reason causes createBlock to fail?

@Mamaduka
Copy link
Member

@andreaslindahl, can you share an example code to reproduce the issue you're experiencing programmatically?

@github-actions
Copy link

Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Apr 27, 2023
@priethor
Copy link
Contributor

Closing the issue as it has been stale for a while. Please feel free to reopen if the issue persists and there is more info; thanks @PH4NTOMiki!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block Conversion Block transforms from one block to another [Status] Needs More Info Follow-up required in order to be actionable. [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

5 participants