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
Comments
Hi @PH4NTOMiki - I haven't been able to replicate this issue yet with the following:
Could you please try the following troubleshooting steps and let me know how it goes:
|
I was using 2023 theme, and I'm just starting the site, so there isn't any plugins installed/activated |
@PH4NTOMiki Here are some further troubleshooting questions:
Thanks. |
|
Could you please provide a screencast showing the issue? Is it:
|
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? |
@andreaslindahl, can you share an example code to reproduce the issue you're experiencing programmatically? |
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. |
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! |
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
The text was updated successfully, but these errors were encountered: