Common WordPress Gutenberg Editor Issues and Their Solutions

WordPress replaced the old classic editor with a new content editor called Gutenberg in 2019. The editor uses blocks to create content in WordPress, so it's often called "block editor".

What is WordPress Block Editor?

The WordPress Block Editor (or Gutenberg) is a content editor introduced in WordPress version 5.0. Since then, WordPress has improved the editor and added new features and functionality.

It offers more customization than the classic editor. Different blocks can be used to add different elements to the content without having to edit the code to change the appearance and style.

It displays the appearance of blogs and pages in real time by mimicking the same fonts and colors of WordPress themes.

For example, an image block can be used to add an image to a blog post. In addition, the block can be used to get options such as image style, size, alignment, etc.

图片[1]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

In addition to this, manyWordPress PluginBoth add their blocks to the content editor. This makes it easy to embed content such as forms, social media feeds and tables of content with just a few clicks.

As the Gutenberg editor has been upgraded and improved, it has gotten better and better. However, the early block editor was not perfect. Like any other WordPress plugin, different errors or flaws were encountered.

1. Fix WordPress block editor not working error

One of the most common problems users face is "WordPress Block Editor Not Working".

There are various reasons for this error. For example, it could be due to a theme version that is too low, outdated, a faulty plugin, or other technical errors.

The WordPress block editor may also not work if the site is misconfigured, such as disabling the visual editor when creating a user profile.

This can be done by going from the WordPress dashboard to the"User's "profile""to check this out. From here, don't select "Disable the visual editor while writing"Options.

图片[2]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

If the problem persists, then try deactivating the site'sAll plug-ins. This helps to rule out conflicts that the plugin may cause.

Another way to fix this issue is to update the WordPress theme. Themes with too low a version may cause the block editor to not work properly error.

2. WordPress block editor keeps crashing

Another common problem faced by some users is that the WordPress block editor crashes unexpectedly.

When it crashes, it will see "The editor encountered an unexpected error"Error Message. WordPress will then display 3 options including Attempt to Recover, Copy Post Text, and Copy Error.

图片[3]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

There can be multiple reasons for this issue. For example, a plugin may be breaking the block editor and displaying this error, or the WordPress version may not be up-to-date.

This can be fixed by deactivating all plugins and reactivating them one by one. Another solution is to change WordPress toDefault Theme, for example Twenty Twenty-Four, and then see if the problem still exists.

If the problem persists after checking WordPress plugins and themes, try updating your version of WordPress andquietDelete WordPress CacheThe

3. Remove invalid JSON errors in the content editor

When editing a blog post or page, clicking the Update button in the block editor may result in a "Response is not a valid JSON response" error.

图片[4]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

When editing a post on a WordPress website, WordPress communicates continuously with the web server in the background. This error is caused when WordPress cannot receive a response from the server or the response is not in JSON format.

Here are some of the reasons why you may receive invalid JSON errors and how to fix them:

  • Check WordPress URLs in Settings: You need to make sure that your WordPress address and website address are correct in your website settings. Simply go to Settings"Conventional page and check if the URLs are the same. If the website addresses are different, a JSON error may be triggered.
图片[5]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应
  • Fix Fixed Link Settings in WordPress: In WordPress, it's possible to set SEO-friendly URLs for pages and posts, but the wrong settings can make it difficult for the block editor to get a valid JSON response. Just be sure to choose the correct format for your fixed links.
  • Check WordPress .htaccess file settings::The .htaccess file is used as a configuration file in WordPress.For management SEO friendly URLs (fixed links). Normally, WordPress will automatically regenerate and update it. However, incorrect settings or outdated .htaccess files can cause JSON errors.
  • Viewing the REST API Debug Log: The REST API is a set of technologies that WordPress uses to communicate with the site server. a JSON error can also mean that the REST API has encountered an error. This can be checked by looking at the REST API logs on the Site Health page in WordPress.
  • Try deactivating all plugins: Conflicts between different WordPress plugins can also cause invalid JSON errors. Try deactivating all plugins on your site and see if the error reappears.
  • Switch to Classic Editor: If you still can't resolve the JSON error, you can switch back to the classic editor in WordPress. The old content editor did not rely on the REST API to get JSON responses from the web server.

4. Resolving update failure/release failure errors

Another error you may see when updating or publishing a blog post or page in the WordPress block editor is "The update failed. You may be offline."

When the WordPress REST API fails to communicate with the WordPress databaseThis problem will occur.

更新失败错误

If the block editor is unable to send and receive requests from the WordPress database, different parts of the site will not work. This includes the block editor.

The REST API may stop working if there is no unconnected or lost connection to the Internet. It is relatively easy to fix this problem by making sure the internet connection is working and then trying to update or publish the page.

In addition to this, it is possible to go from the WordPress dashboard to the"Tools" ""Site Health""and view the REST API logs. If there is a problem with the REST API, it will be reported in the "Build" section.debate on improving"See it under the part.

图片[7]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

The error log will show you what happened to the REST API and provide you with hints about the cause of the problem.

For information on resolving this issue, check out our guide to theHow to Fix WordPress Update Failure ErrorThe

5. Adding or removing spaces between WordPress blocks

When creating custom pages and posts using the WordPress Block Editor, you may notice that there is too much or too little space between blocks.

Normally, spacing is controlled by the WordPress theme. However, there are some options in the block editor to control the page layout and provide a better user experience.

For example, you can add a Spacer block to add whitespace. Simply click the "+" button, then just add the Spacer block anywhere in the content.

图片[8]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

This allows extra space to be added between blocks.

WordPress also allows you to resize the spacing block. You can zoom in and out of the block by dragging it up and down.

图片[9]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

If you want to remove the extra whitespace between the blocks, then you need to enter custom CSS in your WordPress theme or use a CSS plugin like CSS Hero.

The plugin allows editing the CSS of a website without having to edit the code. It offers different spacing options that can be used to adjust the white space between blocks.

图片[10]-常见的 WordPress 古腾堡(Gutenberg)编辑器问题及其解决方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

It's also possible to use SeedProd to create custom pages in WordPress and have full control over the design.

6. Copy and paste content to avoid formatting problems

I don't know if you guys have noticed that when copying and pasting content from a desktop application or web page into a block editor, you end up pasting unwanted formatting as well?

It will be noticed that the fonts and colors of the pasted content do not match the WordPress theme. This is common if content is written using Microsoft Word or Google Docs and then entered into a block editor.

Some simple tips for preserving original formatting include using Word and Google Docs heading styles. This way, WordPress automatically selects the heading level when pasting content into the block editor.

Apart from this, after pasting the content, you should check the HTML code of the page or post. In WordPress content editor, you can select a block and click on the 3 vertical dots option.

From the drop-down menu, simply select "Editing in HTML format"Options.

在 WordPress 块编辑器中切换到块的 HTML 视图

This should make it possible to find any formatting errors such as incorrect bold and italics, unwanted text, and so on.

7. fix image uploading issues in WordPress

Next, you may see an error when uploading images in the WordPress block editor. This is one of the most common image issues in WordPress.

The main reason for this error isIncorrect file permissions. All of the site's files are stored on the server and require specific file and directory permissions to run.

If these permissions are incorrect, it may prevent WordPress from reading the file and uploading it to the server. As a result, one will notice that images disappear from the media library on upload or may see an error message:

'Unable to create directory wp-content/uploads/2019/04. Is its parent directory writable by the server?'

To resolve this issue, you need to edit thefile permissions. It is possible to useFTP client and access to the /wp-content/ folder. From here, you can right-click the folder and change the file permissions.

检查 WP-Content 文件夹的文件权限

8. Fix HTTP image upload error

Another problem you may encounter when uploading images in the WordPress block editor is theHTTP errorThe

When uploading images in the media library, WordPress will display the generic "HTTP" error and will not be able to see a preview of the image.

HTTP 图片上传错误

There are multiple reasons that could cause this problem. The head-scratcher is that the error message provides no clue as to the actual cause.

There are a number of things you can try to fix this problem. First, you can wait for a few minutes and then try to re-upload the images. Sometimes, the web server may experience problems such as abnormal traffic and insufficient server resources.

In addition to thisIncrease WordPress memory limitTo prevent out-of-memory from causing HTTP errors, try changing the image editor library and editing the .htaccess file. Other things you can try include changing the image editor library used by WordPress and editing the .htaccess file.

Outside of this, the login information may be out of date, and sometimes the error will go away simply by going to the login screen and entering your username and password again.

9. Remove Missed Publishing Schedule Errors in WordPress

Did you know that WordPress offers built-in options for scheduling blog posts?

In the WordPress Content Editor, it is possible to change the date and time of publishing a blog post. However, sometimes scheduled content may not be published at the set time.

帖子可以立即发布或安排在将来发布

The main reason for this error is due to the WordPress operating environment or theplug-in conflictWordPress uses a technique called "cron" to automatically publish posts at scheduled times.

If the plugin or the web server is affecting the cron job, then it can cause a missed scheduled release error in WordPress.

This can be resolved by checking the time zone of your WordPress website. The website time zone may not match the time zone that you want to use for the intended blog.

Simply go toSettings" General, then scroll down to the Time Zone section.

编辑时区设置

Also try passing theClear WordPress Cacherespond in singingIncrease WordPress Memory Limitto solve this problem.

10. fix alignment issues in WordPress block editor

Another common WordPress block editor error that may be encountered is that the content and images may not be properly aligned.

For example, suppose you add a bulleted list to a blog post and center align it. However, when editing the post, the list appears left-aligned in the block editor. Similarly, a center-aligned image block may appear left-aligned or right-aligned.

If the Gutenberg plugin is installed and activated on a WordPress site, it may cause block alignment issues. We recommend deactivating the Gutenberg plugin to see if it resolves the issue.

Another solution is to add the following custom CSS code for text that you want to center-align:

.has-text-align-center {
text-align: center;
}

11. Solve Facebook incorrect thumbnail problem

Ever notice that when sharing a post on Facebook, the post thumbnail is incorrect?

This issue may be caused by a plugin conflict, a content delivery network (CDN) issue, or Facebook's lack of Open Graph meta tags.

Now, this is not an issue seen in the WordPress block editor. However, it is possible to specify Open Graph images for Facebook using the content editor.

It is possible to useAll in One SEO (AIOSEO) PluginA quick fix for this issue. It is an SEO plugin for WordPress that helps optimize websites for search engines and social media.

Once activated, you see the AIOSEO Settings meta box in the WordPress content editor. Simply go to "socialize" tab is sufficient.

前往社交标签

Next, scroll down to "image source"Part.

From the drop-down menu, you can choose which images to display on Facebook and other social media sites when sharing your post.

选择图片来源

12. fix Facebook and Instagram oEmbed issues

Another social media related block editor issue that will be faced is adding Facebook and Instagram content to WordPress.

Previously, it was easy to embed Instagram or Facebook posts in WordPress. However, Facebook has now changed the way oEmbed works.

It is no longer possible to embed videos, images, updates and other content in WordPress. It will instead display the content as a plain URL.

WordPress 中 oEmbed 错误的示例

This can be solved by using a social media WordPress plugin like Smash Balloon. It helps to easily embed content from Facebook and Instagram using oEmbed and also display social media feeds on your website.

13. Unable to see embedded content preview in block editor

This is an issue in WordPress version 5.7. Whenever embedding videos from YouTube and Vimeo or adding audio from Spotify and SoundCloud, the preview does not appear in the block editor.

Instead, one will only see the block that says "Preview not available"or"This block encountered an error and could not be previewed". The main cause of this issue is the default delayed loading feature.

In WordPress 5.5, iFrames are delayed loading by default, which means that embedded content (such as images) will only load when the visitor scrolls down to the content location.

An easy way to fix this issue is to update the WordPress version. This error has now been resolved.

I hope this article will help you guys understand common block editor problems and their solutions.


Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by Harry
THE END
If you like it, support it.
kudos0 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments