常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

2022-09-18 0 347

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

常见前端bug及其修复方法

While WordPress is really easy to use, there are some common WordPress errors that can make you panic. The good thing is that the WordPress error you are seeing on your site is most likely been reported and resolved by someone before you. At WPBeginner, we have written tutorials on how to fix several popular WordPress errors. In this article, we will cover the 40 most common WordPress errors along with showing you how to fix all of these common WordPress errors.

虽然WordPress确实非常易于使用,但有些常见的WordPress错误可能会让您感到恐慌。 好消息是,您在网站上看到的WordPress错误很可能是您之前的某人报告并解决的。 在WPBeginner,我们编写了有关如何修复几个流行的WordPress错误的教程。 在本文中,我们将介绍40种最常见的WordPress错误,并向您展示如何修复所有这些常见的WordPress错误。

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Important: Before trying to fix any WordPress error, make sure that you have a complete WordPress backup. You can use UpdraftPlus or use this tutorial to manually create a WordPress backup.

重要提示:在尝试修复任何WordPress错误之前,请确保您具有完整的WordPress备份 。 您可以使用UpdraftPlus或使用本教程手动创建WordPress备份

In case you are unable to resolve your issue from the steps mentioned in this article, then please contact your WordPress hosting company.

如果您无法通过本文中提到的步骤解决问题,请与WordPress托管公司联系。

Since this is a lengthy article, we have created a table of contents below for easy navigation.

由于这是一篇冗长的文章,因此我们在下面创建了一个目录以便于导航。

目录 (Table of Contents)

  1. How to fix internal server error如何修复内部服务器错误
  2. This site is experiencing technical difficulties该站点遇到技术难题
  3. How to fix syntax error in WordPress如何修复WordPress中的语法错误
  4. How to fix the error establishing database connection in WordPress如何修复在WordPress中建立数据库连接的错误
  5. How to fix WordPress white screen of death如何修复WordPress白屏死机
  6. How to fix WordPress posts returning 404 error如何修复WordPress帖子返回404错误
  7. How to fix sidebar below content error in WordPress如何修复WordPress中内容错误下方的侧边栏
  8. How to fix white text and missing buttons in WordPress visual editor 如何在WordPress可视编辑器中修复白色文本和缺少的按钮
  9. How to fix WordPress memory exhausted error by increasing PHP memory limit如何通过增加PHP内存限制来修复WordPress内存耗尽错误
  10. What to do when you are locked out of WordPress admin area当您被锁定在WordPress管理区域之外时该怎么办
  11. How to fix WordPress login page refreshing/redirecting issue如何解决WordPress登录页面刷新/重定向问题
  12. How to fix image upload issue in WordPress如何修复WordPress中的图片上传问题
  13. How to fix common image issues in WordPress如何修复WordPress中的常见图像问题
  14. How to fix “Are you sure you want to do this” error in WordPress如何修复WordPress中的“确定要执行此操作”错误
  15. How to fix briefly unavailable for scheduled maintenance error in WordPress如何在WordPress中短暂修复计划的维护错误不可用
  16. How to fix WordPress not sending email issue如何修复WordPress不发送电子邮件的问题
  17. How to fix WordPress RSS feed errors如何修复WordPress RSS feed错误
  18. How to fix 403 forbidden error in WordPress如何修复WordPress中的403禁止错误
  19. How to fix error too many redirects issue in WordPress如何修复WordPress中的错误太多重定向问题
  20. How to fix “Upload: failed to write file to disk” error in WordPress如何修复WordPress中的“上传:无法将文件写入磁盘”错误
  21. How to fix “This site ahead contains harmful programs” error in WordPress如何修复WordPress中的“此站点前面包含有害程序”错误
  22. How to fix missed scheduled post error in WordPress如何修复WordPress中错过的预定发帖错误
  23. How to fix fatal error: Maximum execution time exceeded in WordPress如何修复致命错误:WordPress中超过了最大执行时间
  24. How to fix Facebook incorrect thumbnail issue in WordPress如何在WordPress中修复Facebook不正确的缩略图问题
  25. How to fix WordPress keeps logging out problem如何修复WordPress不断注销问题
  26. How to Fix the Mixed Content Error in WordPress如何修复WordPress中的混合内容错误
  27. How to Fix Add Media Button Not Working in WordPress如何修复添加媒体按钮在WordPress中不起作用
  28. How to Fix the 502 Bad Gateway Error in WordPress如何修复WordPress中的502 Bad Gateway错误
  29. How to Fix 503 Service Unavailable Error in WordPress如何修复WordPress中的503服务不可用错误
  30. How to Fix the 504 Gateway Timeout Error in WordPress如何修复WordPress中的504网关超时错误
  31. How to Fix the WordPress Failed to Open Stream Error如何修复WordPress无法打开流错误
  32. How to Fix the WordPress 429 Too Many Requests Error如何修复WordPress 429请求过多错误
  33. How to Fix the 413 Request Entity Too large Error in WordPress如何修复WordPress中的413请求实体太大错误
  34. How to Turn Off PHP Errors in WordPress如何关闭WordPress中PHP错误
  35. How to Fix Secure Connection Error in WordPress如何修复WordPress中的安全连接错误
  36. How to Fix Destination Folder Already Exists Error in WordPress如何修复WordPress中的目标文件夹已存在错误
  37. How to Fix ‘Another Update in Process’ Error in WordPress如何修复WordPress中的“正在处理的其他更新”错误
  38. How to Fix Password Reset Key Error in WordPress如何修复WordPress中的密码重置密钥错误
  39. How to Fix “Missing a Temporary Folder” Error in WordPress如何修复WordPress中的“缺少临时文件夹”错误
  40. How to Fix Pluggable.php File Errors in WordPress如何修复WordPress中的Pluggable.php文件错误
  41. How to fix common SSL issues in WordPress如何修复WordPress中常见的SSL问题
  42. How to fix file and folder permissions error in WordPress如何修复WordPress中的文件和文件夹权限错误
  43. How fix HTTP error when uploading images in WordPress在WordPress中上传图片时如何解决HTTP错误
  44. How to fix your connection is not private error in WordPress如何修复您的连接不是WordPress中的私人错误
  45. How to fix “The link you followed has expired” error in WordPress如何修复WordPress中的“您关注的链接已过期”错误
  46. How to fix WordPress website not updating right away issue如何修复WordPress网站不立即更新的问题
  47. How To fix “Failed to load resource” error In WordPress如何修复WordPress中的“无法加载资源”错误
  48. How to fix “Missing a temporary folder” error in WordPress如何修复WordPress中的“缺少临时文件夹”错误
  49. How to fix “Googlebot cannot access CSS and JS files” error in WordPress如何修复WordPress中的“ Googlebot无法访问CSS和JS文件”错误
  50. Troubleshooting WordPress errors on your own自行排除WordPress错误

Let’s take a look at how to solve the most common WordPress errors (one by one).

让我们看一下如何解决最常见的WordPress错误(一个一个)。

1.如何修复内部服务器错误 (1. How to Fix Internal Server Error)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Perhaps the most confusing WordPress error that a beginner may come across is “Internal Server Error”, or sometimes “500 Internal Server Error”.

初学者可能遇到的最令人困惑的WordPress错误是“内部服务器错误”,有时甚至是“ 500内部服务器错误”。

This error usually appears when there is something wrong, but the server is unable to identify where the problem is. Since the error message does not indicate where you should look for the error, it is pretty much up to you to figure this out.

当出现问题时通常会出现此错误,但是服务器无法确定问题出在哪里。 由于错误消息没有指示您应在哪里寻找错误,因此完全由您自己决定是什么。

We have compiled a list of solutions that you can try and one of them will help you resolve it. See how to fix internal server error in WordPress.

我们已经列出了您可以尝试的解决方案列表,其中一个将帮助您解决问题。 了解如何修复WordPress中的内部服务器错误

[Back to top ↑]

[ 返回页首↑ ]

2.该站点遇到技术难题 (2. This Site is Experiencing Technical Difficulties)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress introduced a fatal error protection feature in WordPress 5.2. This feature displays a simple error message stating that “This site is experiencing technical difficulties”.

WordPress在WordPress 5.2中引入了致命的错误保护功能。 此功能显示一条简单的错误消息,指出“此站点遇到技术难题”。

For full details, WordPress then sends an email notification on your WordPress admin email address. This email message contains a link to access the backend and attempt to fix the error.

有关完整的详细信息,WordPress然后在您的WordPress管理员电子邮件地址上发送电子邮件通知。 此电子邮件包含访问后端并尝试修复错误的链接。

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error message can be triggered by any of the fatal errors mentioned in this article. If you don’t have access to the admin email or can’t get WordPress emails then it becomes harder to find out what error is occurring.

这篇文章中提到的任何致命错误都可以触发此错误消息。 如果您无权访问管理员电子邮件或无法获得WordPress电子邮件,那么将很难发现发生了什么错误。

The easiest way to fix this is to make sure that your WordPress admin email address is correct and that you can receive WordPress notification emails. If you can’t get WordPress emails then see our guide on fixing the WordPress not sending email issue.

解决此问题的最简单方法是确保您的WordPress管理员电子邮件地址正确无误,并且可以接收WordPress通知电子邮件。 如果您无法收到WordPress电子邮件,请参阅有关修复WordPress不发送电子邮件问题的指南

[Back to top ↑]

[ 返回页首↑ ]

3.如何修复WordPress中的语法错误 (3. How to Fix Syntax Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error usually occurs when you are trying to add code snippets into WordPress and have accidentally missed something or the code has incorrect syntax. This will result into a PHP parse error and you will see a notice like:

当您尝试将代码段添加到WordPress并意外丢失某些内容或代码语法错误时,通常会发生此错误。 这将导致PHP解析错误,并且您将看到类似以下的通知:

Parse error- syntax error, unexpected $end in /public_html/site1/wp-content/themes/my-theme/functions.php on line 278

Parse error- syntax error, unexpected $end in /public_html/site1/wp-content/themes/my-theme/functions.php on line 278

The error message would indicate the unexpected thing found in the code and the location of the script where the error occurred with line number. To fix this issue you will have to correct the syntax. Most of the time it is a missing bracket, or some unexpected character in the code. [Fix syntax error in WordPress]

该错误消息将指示在代码中发现的意外内容以及该行发生错误的脚本位置。 要解决此问题,您必须更正语法。 大多数情况下,它是缺少的括号或代码中的某些意外字符。 [ 修复WordPress中的语法错误 ]

[Back to top ↑]

[ 返回页首↑ ]

4.如何解决在WordPress中建立数据库连接的错误 (4. How to Fix the Error Establishing a Database Connection in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error message is clear that your website is unable to connect to the database. However solving this error can be tricky for beginners.

此错误消息很清楚,您的网站无法连接到数据库。 但是,对于初学者来说,解决此错误可能很棘手。

Usually this occurs when a user has entered or modified their database credentials (database host, database username, and database password) incorrectly. Sometimes your database server could be unresponsive, or your database may have corrupted.

通常,这种情况发生在用户错误输入或修改其数据库凭据(数据库主机,数据库用户名和数据库密码)时。 有时您的数据库服务器可能没有响应,或者您的数据库可能已损坏。

However, mostly it is incorrect database login credentials. Take a look at common solutions for this problem. [Fix error establishing database connection in WordPress]

但是,大多数情况是错误的数据库登录凭据。 看一下此问题的常见解决方案。 [ 修复在WordPress中建立数据库连接时出现的错误 ]

[Back to top ↑]

[ 返回页首↑ ]

5.如何修复WordPress死亡白屏 (5. How to Fix the WordPress White Screen of Death)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error usually results into a plain white screen with no error message. This makes it the most puzzling because you have no clue where to look and what to fix.

此错误通常导致显示纯白色屏幕,没有错误消息。 这使您最困惑,因为您不知道在哪里看以及要解决什么。

Most of the time it is caused when a script exhausts PHP memory limit. It can also happen due to a configuration on the server. It is also possible that a user would only see white screen of death on certain sections of their site. [See how to fix WordPress white screen of death]

在大多数情况下,它是由脚本用尽PHP内存限制引起的。 它还可能由于服务器上的配置而发生。 用户在其站点的某些区域可能只会看到死亡的白屏。 [查看如何修复WordPress死亡白屏 ]

[Back to top ↑]

[ 返回页首↑ ]

6.如何修复返回404错误的WordPress帖子 (6. How to Fix WordPress Posts Returning 404 Error)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

The symptoms of this error is that when a user visits a single post on their site they get a 404 page – not found error.

此错误的症状是,当用户访问其网站上的单个帖子时,他们会得到404页面-未找到错误。

The user can browse all other sections of their site including the admin area. The most common cause of this issue is permalink settings in WordPress. To solve this issue a user would need to reconfigure their permalinks settings or manually update their rewrite rules. [Fix WordPress posts returning 404 error]

用户可以浏览其站点的所有其他部分,包括管理区域。 此问题的最常见原因是WordPress中的永久链接设置。 为了解决此问题,用户将需要重新配置其永久链接设置或手动更新其重写规则。 [ 修复WordPress帖子返回404错误 ]

[Back to top ↑]

[ 返回页首↑ ]

7.如何修复WordPress中内容错误下方的侧边栏 (7. How to Fix the Sidebar Below Content Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Another common issue beginners face is when the sidebar appears below the content when it is supposed to appear next to the content. This issue is mostly caused by WordPress themes.

初学者面临的另一个常见问题是,当工具条应显示在内容旁边时,它会出现在内容下方。 此问题主要是由WordPress主题引起的。

Sometimes when users are adding code snippets to their site, they may accidentally forget to close an html div tag or add an extra closing div which may result into breaking the theme layout. Another common cause is using disproportionate width in CSS or not clearing float properly. [Fix sidebar appearing below content error in WordPress]

有时,当用户在其网站上添加代码段时,他们可能会意外忘记关闭html div标签或添加额外的关闭div,这可能会导致主题布局中断。 另一个常见原因是在CSS中使用了不成比例的宽度或未正确清除浮点数。 [ 修复侧栏出现在WordPress中的内容错误下方 ]

[Back to top ↑]

[ 返回页首↑ ]

8.如何在WordPress可视编辑器中修复白色文本和缺少的按钮 (8. How to Fix White Text and Missing Buttons in WordPress Visual Editor)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

If you’re using the classic WordPress editor, then sometimes buttons from the visual editor may disappear or start showing blank white spaces instead of buttons.

如果您使用的是经典WordPress编辑器 ,则有时视觉编辑器中的按钮可能会消失或开始显示空白而不是按钮。

This problem may occur when concatenated JavaScript is not working. It may also caused by missing or corrupt TinyMCE files, or conflict with some other plugin that modifies or extends the TinyMCE shipped with WordPress. [Fix white text and missing buttons in WordPress visual editor]

当串联JavaScript不起作用时,可能会出现此问题。 它也可能是由于TinyMCE文件丢失或损坏,或与其他修改或扩展WordPress附带的TinyMCE的插件发生冲突。 [修复WordPress可视编辑器中的白色文本和缺少的按钮 ]

[Back to top ↑]

[ 返回页首↑ ]

9.修复:WordPress内存耗尽错误–增加PHP内存 (9. Fix: WordPress Memory Exhausted Error – Increase PHP Memory)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Indications of this error could be a white screen of death, or an error message like this one:

此错误的迹象可能是死亡白屏,或者是类似以下错误消息:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home/username/public_html/site1/wp-includes/plugin.php on line xxx

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home/username/public_html/site1/wp-includes/plugin.php on line xxx

This error occurs when a WordPress script or a plugin exhausts the default allocated memory size limit. [Fix WordPress memory exhausted error]

当WordPress脚本或插件用尽默认分配的内存大小限制时,会发生此错误。 [ 修复WordPress内存耗尽错误 ]

[Back to top ↑]

[ 返回页首↑ ]

10.当您被锁定WordPress管理员(wp-admin)时该怎么办 (10. What To Do When You Are Locked Out of WordPress Admin (wp-admin))

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Sometimes you may find yourself locked out of the WordPress admin area. This could happen if you forgot your password and don’t have to access to password recovery email.

有时您可能会发现自己被锁定在WordPress管理区域之外 。 如果您忘记了密码,而不必访问密码恢复电子邮件,则可能会发生这种情况。

A plugin or code that incorrectly tries to make some changes into admin section can also lock you out. You may also lose access to admin area due to a hacked WordPress site. [Fix locked out of WordPress admin issue]

错误地尝试对管理部分进行某些更改的插件或代码也可能会将您拒之门外。 您也可能由于WordPress网站被黑而无法访问管理区域。 [ 修复了WordPress管理员问题的锁定 ]

[Back to top ↑]

[ 返回页首↑ ]

11.如何解决WordPress登录页面刷新和重定向问题 (11. How to Fix WordPress Login Page Refreshing and Redirecting Issue)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Symptoms of this issue are that when a user attempts to login to the WordPress dashboard, they are redirected by WordPress back to the login page.

此问题的症状是,当用户尝试登录WordPress仪表板时,它们会被WordPress重定向回到登录页面。

Most of the time it happens due to incorrect values for site url and home url fields in WordPress options table. It can also be caused by poorly configured permalink settings or redirects setup in the .htaccess file. [Fix WordPress login page refreshing and redirecting issue]

大多数情况下,这种情况的发生是由于WordPress选项表中网站网址和主网址字段的值不正确。 也可能是由于永久链接设置配置不当或重定向.htaccess文件中的设置而引起的。 [ 修复WordPress登录页面刷新和重定向问题 ]

[Back to top ↑]

[ 返回页首↑ ]

12.如何解决WordPress中的图片上传问题 (12. How to Fix Image Upload Issue in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Sometimes a user would suddenly notice that all the images from their site are gone and are showing broken image placeholders. When the user tries to upload an image to a post using the media uploader, it results into an error.

有时,用户可能突然注意到他们站点中的所有图像都消失了,并显示了损坏的图像占位符。 当用户尝试使用媒体上传器将图像上传到帖子时,会导致错误。

All these files in the media library will appear as broken. This error occurs due to incorrect file and directory permissions in a WordPress installation. A number of factors may cause this issue. [Fix image upload issues in WordPress]

媒体库中的所有这些文件将显示为已损坏。 发生此错误是由于WordPress安装中的文件和目录权限不正确。 许多因素可能导致此问题。 [ 修复WordPress中的图片上传问题 ]

[Back to top ↑]

[ 返回页首↑ ]

13.如何修复WordPress中的常见图像问题 (13. How to Fix Common Image Issues in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Uploading images to a WordPress site can be confusing for someone new to WordPress. A user may be unable to find out how to align images, resize or crop them, or display them in a gallery format.

将图像上传到WordPress网站可能会使WordPress新手感到困惑。 用户可能无法找出如何对齐图像,调整图像大小或裁剪图像或以画廊格式显示它们。

This is not an error or issue in WordPress. You just need to familiarize yourself with how WordPress handles media. [Fix common image issues in WordPress]

这不是WordPress中的错误或问题。 您只需要熟悉WordPress处理媒体的方式即可。 [ 修复WordPress中常见的图像问题 ]

[Back to top ↑]

[ 返回页首↑ ]

14.如何修复WordPress中的“您确定要这样做吗”错误 (14. How to Fix “Are You Sure You Want to Do This” Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Users may come across this error in WordPress admin area. The most common cause of this error is a plugin or theme failing to use Nonce properly.

用户可能会在WordPress管理区域中遇到此错误。 导致此错误的最常见原因是插件或主题无法正确使用Nonce。

Nonce are special security keys which may be appended to URLs when performing an admin action in WordPress. Sometimes a plugin or theme may use it incorrectly which may result into users seeing this error. [Fix are you sure you want to do this error in WordPress]

Nonce是特殊的安全密钥,可以在WordPress中执行管理操作时附加到URL。 有时插件或主题可能会错误地使用它,这可能导致用户看到此错误。 [ 修复您确定要在WordPress中执行此错误 ]

[Back to top ↑]

[ 返回页首↑ ]

15.如何简单地修复WordPress中计划的维护错误不可用的问题 (15. How to Fix Briefly Unavailable for Scheduled Maintenance Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Sometimes due to an unfinished or interrupted WordPress update, you might see “Briefly Unavailable for Scheduled Maintenance” error in WordPress.

有时由于未完成或中断的WordPress更新,您可能会在WordPress中看到“根本无法进行计划的维护”错误。

What happens there is that WordPress puts your site in maintenance mode during an update. If for some reason the update is interrupted, then WordPress does not get the chance to put your site out of the maintenance mode. This error would lock down your entire site and make it unavailable for admins as well as visitors. [Fix briefly unavailable for scheduled maintenance error]

发生的情况是WordPress在更新期间将您的网站置于维护模式。 如果由于某种原因更新被中断,则WordPress将无法使您的网站退出维护模式。 此错误将锁定您的整个网站,并使其对管理员和访客均不可用。 [ 暂时修复无法用于计划的维护错误 ]

[Back to top ↑]

[ 返回页首↑ ]

16.如何修复WordPress不发送电子邮件的问题 (16. How to Fix WordPress Not Sending Email Issue)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

The most common symptom of this problem is not receiving any contact form or WordPress notification emails from your site.

此问题的最常见症状是未从您的站点收到任何联系表或WordPress通知电子邮件。

This issue is usually caused because most shared hosting providers disable or limit the module used for sending emails to prevent their servers from abuse. [Fix WordPress not sending email issue]

通常是由于大多数共享主机提供商禁用或限制用于发送电子邮件的模块以防止其服务器滥用而引起的。 [ 修复WordPress无法发送电子邮件的问题 ]

[Back to top ↑]

[ 返回页首↑ ]

17.如何修复WordPress RSS feed错误 (17. How to Fix WordPress RSS Feed Errors)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Most WordPress RSS feed errors are caused by poor formatting. You may see errors like these:

大多数WordPress RSS提要错误都是由格式错误引起的。 您可能会看到以下错误:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://example.com/feed
Line Number 2, Column 1:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://example.com/feed
Line Number 2, Column 1:

Depending on what browser you are using, your RSS feed error message may vary. You can also see this error message when visiting your feed in a browser.

根据您使用的浏览器,您的RSS feed错误消息可能会有所不同。 在浏览器中访问Feed时,您还会看到此错误消息。

Warning: Cannot modify header information – headers already sent by (output started at /home/username/example.com/wp-content/themes/twentysixteen/functions.php:433) in /home/username/example.com/wp-includes/pluggable.php on line 1228

Warning: Cannot modify header information – headers already sent by (output started at /home/username/example.com/wp-content/themes/twentysixteen/functions.php:433) in /home/username/example.com/wp-includes/pluggable.php on line 1228

WordPress outputs RSS feeds in XML which is a strict markup language. A missing line break or an extra tab can break your RSS feed. [Fix WordPress RSS feed errors]

WordPress以严格的标记语言XML输出RSS feed。 缺少换行符或多余的选项卡可能会破坏您的RSS feed。 [ 修复WordPress RSS feed错误 ]

[Back to top ↑]

[ 返回页首↑ ]

18.如何修复WordPress中的403禁止错误 (18. How to Fix 403 Forbidden Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

403 Forbidden error code is shown when your server permissions don’t allow access to a specific page. This is why the error is usually accompanied by the text:

当您的服务器权限不允许访问特定页面时,将显示403禁止错误代码。 这就是错误通常伴随文本的原因:

403 Forbidden – You don’t have permission to access ‘/’ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

403 Forbidden – You don't have permission to access '/' on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

There are different scenarios when you can see this error. Incorrect file permissions, poorly coded security plugins, or server configuration are the most common culprits. [Fix 403 Forbidden error in WordPress]

在不同的情况下,您可以看到此错误。 最常见的罪魁祸首是文件权限不正确,安全插件编码不正确或服务器配置。 [ 修复WordPress中的403禁止错误 ]

[Back to top ↑]

[ 返回页首↑ ]

19.如何修复WordPress中的错误过多重定向问题 (19. How to Fix Error Too Many Redirects Issue in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error usually occurs due to a misconfigured redirection issue. As you know that WordPress has SEO friendly URL Structure which uses the redirect function. Several other popular WordPress plugins also use the redirect functionality as well.

通常由于配置错误的重定向问题而发生此错误。 如您所知WordPress具有使用重定向功能的SEO友好URL结构。 其他一些流行的WordPress插件也使用重定向功能。

Due to a misconfiguration in any of these redirection tools, your site may end up redirecting users to a URL that is actually redirecting them back to the referring URL. In that case the user’s browser is trapped between two pages causing a redirect loop. [Fix too many redirects issue in WordPress]

由于这些重定向工具中的任何一个配置不正确,您的网站最终可能会将用户重定向到一个URL,而该URL实际上是将用户重定向回引用URL。 在这种情况下,用户的浏览器被困在两个页面之间,从而导致重定向循环。 [ 修复WordPress中过多的重定向问题 ]

[Back to top ↑]

[ 返回页首↑ ]

20.如何解决WordPress中的“上传:无法将文件写入磁盘”错误 (20. How to Fix “Upload: Failed to Write File to Disk” Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error can occur due to a number of reasons. However, the most common one is incorrect folder permissions.

由于多种原因,可能会发生此错误。 但是,最常见的一种是不正确的文件夹权限。

Each file and folder on your website has a set of permissions. Your web server controls access to the files based on these permissions. Incorrect permissions to a folder can take away your ability to write files on server. This means your web server cannot create or add new files to that particular folder. [Fix Upload: Failed to write file to disk error]

您网站上的每个文件和文件夹都有一组权限。 您的Web服务器根据这些权限控制对文件的访问。 对文件夹的错误权限可能会使您无法在服务器上写入文件。 这意味着您的Web服务器无法创建新文件或将新文件添加到该特定文件夹。 [ 修复上载:无法将文件写入磁盘错误 ]

[Back to top ↑]

[ 返回页首↑ ]

21.如何修复“前面的站点包含有害程序”,WordPress中的错误 (21. How to Fix “This site ahead contains harmful programs” Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Google marks a website with this warning if they find any suspicious code that could be a malware or trojan. Sometimes the reason for this is that your website is hacked and is now used to distribute malicious code.

如果Google发现任何可疑代码,可能是恶意软件或特洛伊木马,则Google会用此警告标记该网站。 有时,这样做的原因是您的网站被黑了,现在已用于分发恶意代码。

Another common reason for this error is showing ads from low quality advertising networks. These networks may sometime display ads linking to websites distributing malicious code. [Fix site ahead contains harmful programs error in WordPress]

出现此错误的另一个常见原因是显示来自低质量广告网络的广告。 这些网络有时可能会显示链接到分发恶意代码的网站的广告。 [ 修复前面的站点在WordPress中包含有害程序错误 ]

[Back to top ↑]

[ 返回页首↑ ]

22.如何修复WordPress中缺少的计划发布错误 (22. How to Fix the Missed Schedule Post Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress has this wonderful feature that allows you to schedule posts to be automatically published at a specified time. Most bloggers rely on the future to manage their publishing schedule.

WordPress具有这项出色的功能,可让您安排帖子在指定时间自动发布。 大多数博客作者依靠未来来管理其发布时间表。

However, sometimes WordPress can miss scheduled posts due to a number of reasons. If this has happened to you more than a few times then you need to address this issue. [Fix missed schedule post error in WordPress]

但是,由于多种原因,有时WordPress可能会错过预定的帖子。 如果您多次遇到这种情况,则需要解决此问题。 [ 修复WordPress中错过的日程安排发布错误 ]

[Back to top ↑]

[ 返回页首↑ ]

23.如何修复致命错误:WordPress中超过了最大执行时间 (23. How to Fix Fatal Error: Maximum Execution Time Exceeded in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress is coded mainly in PHP programming language. To protect web servers from abuse, there is a time limit set for how long a PHP script can run.

WordPress主要使用PHP编程语言进行编码。 为了保护Web服务器免受滥用,对PHP脚本可以运行多长时间设置了时间限制。

Some WordPress hosting providers have set this value to a higher level while others may have set it to a lower level. When a script reaches the maximum execution time limit, it results into maximum execution time exceeded error. [Fix maximum execution time exceeded error in WordPress]

一些WordPress托管提供商已将此值设置为较高的级别,而其他人可能已将其设置为较低的级别。 当脚本达到最大执行时间限制时,它将导致超出最大执行时间错误。 [ 修复WordPress中的最大执行时间超出错误 ]

[Back to top ↑]

[ 返回页首↑ ]

24.如何修复WordPress中的Facebook错误缩略图问题 (24. How to Fix Facebook Incorrect Thumbnail Issue in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

There are many reasons that can prevent Facebook from correctly guessing the right thumbnail image. One of the most common reason is having multiple images set in the og:image tag where your featured image is smaller than rest of the images.

有很多原因可以阻止Facebook正确猜测正确的缩略图。 最常见的原因之一是在og:image标记中设置了多个图像,其中您的特色图像小于其余图像。

Facebook uses Open Graph (og) tags, and plugins like Yoast SEO automatically adds them to your site to prevent missing thumbnail issue. [Fix Facebook incorrect thumbnail issue in WordPress]

Facebook使用Open Graph(og)标签,并且Yoast SEO之类的插件会自动将它们添加到您的网站,以防止丢失缩略图问题。 [ 修复WordPress中Facebook不正确的缩略图问题 ]

[Back to top ↑]

[ 返回页首↑ ]

25.如何修复WordPress不断注销问题 (25. How to Fix WordPress Keeps Logging Out Problem)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress sets a cookie in your browser to authenticate a login session. This cookie is set for the WordPress URL stored in your settings section. If you are accessing from a URL that does not match the one in your WordPress settings, then WordPress will not be able to authenticate your session. [Fix WordPress keeps logging out problem]

WordPress在浏览器中设置一个cookie来验证登录会话。 此cookie是为存储在“设置”部分中的WordPress URL设置的。 如果您从与WordPress设置中的URL不匹配的URL访问,则WordPress将无法对您的会话进行身份验证。 [ 修复WordPress不断注销问题 ]

[Back to top ↑]

[ 返回页首↑ ]

26.如何解决WordPress中的混合内容错误 (26. How to Fix the Mixed Content Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Mixed content errors are caused by incorrect HTTPs / SSL settings on your WordPress site. They may or may not affect your website’s functionality, but they can affect your website’s SEO and user experience.

混合内容错误是由WordPress网站上的错误HTTP / SSL设置引起的。 它们可能会或可能不会影响您网站的功能,但会影响您网站的SEO和用户体验。

Basically, on an SSL enabled website all resources should be loaded using an HTTPs URL. Your site may have content with HTTP URLs, or a plugin or theme may be loading a file with HTTP. This causes the mixed content error as those resources are not loaded using a secure protocol.

基本上,在启用SSL的网站上,所有资源都应使用HTTPs URL加载。 您的站点可能包含带有HTTP URL的内容,或者某个插件或主题可能正在使用HTTP加载文件。 这将导致混合内容错误,因为未使用安全协议加载那些资源。

To fix this, you need to find out which resources are loaded insecurely, and then fix their URLs. You can do this with a plugin or you can do this manually as well. [Fix mixed content errors in WordPress]

要解决此问题,您需要找出不安全地加载了哪些资源,然后修复其URL。 您可以使用插件执行此操作,也可以手动执行此操作。 [ 修复WordPress中的混合内容错误 ]

[Back to top ↑]

[ 返回页首↑ ]

27.如何修复添加媒体按钮在WordPress中不起作用 (27. How to Fix Add Media Button Not Working in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Add Media button in WordPress post edit screens uses JavaScript to launch the media library and uploader. However, sometimes a plugin or theme’s code conflict with WordPress core can prevent JavaScript from working.

WordPress帖子编辑屏幕中的“添加媒体”按钮使用JavaScript启动媒体库和上传器。 但是,有时插件或主题的代码与WordPress核心冲突会阻止JavaScript工作。

What happens is that WordPress combines all scripts inside the WordPress admin area to improve performance. A plugin or theme’s script can disrupt this which will make other code in the script stop working. [Fix add media button not working in WordPress]

事实是,WordPress将WordPress管理区域内的所有脚本组合在一起以提高性能。 插件或主题的脚本可能会破坏此功能,这将使脚本中的其他代码停止工作。 [ 修复添加媒体按钮在WordPress中不起作用 ]

[Back to top ↑]

[ 返回页首↑ ]

28.如何修复WordPress中的502 Bad Gateway错误 (28. How to Fix the 502 Bad Gateway Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

502 Bad gateway error is another puzzling error that may appear on your WordPress website. It is usually caused when a user’s request to a server takes too long to process without giving any other error.

502错误的网关错误是另一个令人困惑的错误,可能会在您的WordPress网站上显示。 通常是由于用户对服务器的请求花费的时间太长而没有给出任何其他错误而导致的。

This delay can be a temporary glitch caused by high traffic. It could also be caused by a poorly coded WordPress theme or plugin. Last but not least, a server misconfiguration can also produce this error. [Fix 502 bad gateway error in WordPress]

此延迟可能是由高流量引起的暂时故障。 也可能是由于WordPress主题或插件编码不正确造成的。 最后但并非最不重要的一点是,服务器配置错误也会产生此错误。 [ 修复WordPress中的502错误的网关错误 ]

[Back to top ↑]

[ 返回页首↑ ]

29.如何修复WordPress中的503服务不可用错误 (29. How to Fix 503 Service Unavailable Error in WordPress)

The 503 ‘service unavailable’ error is often caused by an unresponsive PHP script. This could be a WordPress plugin, a theme, or a misbehaving custom code snippet.

503“服务不可用”错误通常是由PHP脚本无响应引起的。 这可能是WordPress插件,主题或行为不正确的自定义代码段。

It can also be triggered by heavy server load, a server glitch, or a brute force attack. In that case, it could automatically disappear in a few minutes. If it doesn’t disappear, then you would need to troubleshoot and fix it. [Fix 503 service unavailable error in WordPress]

服务器负载过重,服务器故障或蛮力攻击也可能触发此事件 。 在这种情况下,它可能会在几分钟后自动消失。 如果它没有消失,那么您需要进行故障排除和修复。 [ 修复WordPress中的503服务不可用错误 ]

[Back to top ↑]

[ 返回页首↑ ]

30.如何修复WordPress中的504网关超时错误 (30. How to Fix the 504 Gateway Timeout Error in WordPress)

The 504 gateway timeout error is often caused when a request to your server is processed through a proxy or firewall but fails to connect with the upstream server.

当通过代理或防火墙处理对服务器的请求但无法与上游服务器连接时,通常会导致504网关超时错误。

You are more likely to see this error, if you are using a WordPress firewall like Sucuri or Cloudflare. [Fix 504 gateway timeout error in WordPress]

如果您使用的是Sucuri或Cloudflare等WordPress防火墙 ,则更有可能看到此错误。 [ 修复WordPress中的504网关超时错误 ]

[Back to top ↑]

[ 返回页首↑ ]

31.如何修复WordPress无法打开流错误 (31. How to Fix the WordPress Failed to Open Stream Error)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

The ‘Failed to open stream’ error occurs when WordPress is unable to load a file mentioned in website code. Sometimes WordPress will continue loading the site and only show a warning message, while other times it would result in a fatal error.

当WordPress无法加载网站代码中提到的文件时,发生“无法打开流”错误。 有时WordPress会继续加载该网站并仅显示警告消息,而其他时候会导致致命错误。

The error message can be different, depending on where the error is triggered in the code and what caused it. In each instance, failed to open stream phrase would be followed by a reason. For example, permission denied, no such file or directory, operation failed, and more. [Fix the WordPress failed to open stream error]

错误消息可能有所不同,具体取决于在代码中触发错误的位置以及引起错误的原因。 在每种情况下,打开流词组失败都会有一个原因。 例如,权限被拒绝,没有此类文件或目录,操作失败等等。 [ 修复WordPress无法打开流错误 ]

[Back to top ↑]

[ 返回页首↑ ]

32.如何修复WordPress 429请求过多错误 (32. How to Fix the WordPress 429 Too Many Requests Error)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

The 429 error is a preventive measure to protect servers from abuse. This error is triggered when a bot, script, or a user is making too many requests to the server.

429错误是一种防止服务器滥用的预防措施。 当机器人,脚本或用户向服务器发出过多请求时,将触发此错误。

However, if it is not properly configured, then it can block search engines and other APIs from accessing your website. To fix this you will need to find the misbehaving code, plugin, or service that’s causing the error. [Fix WordPress 429 too many requests error]

但是,如果配置不正确,则会阻止搜索引擎和其他API访问您的网站。 要解决此问题,您需要查找导致错误的行为异常的代码,插件或服务。 [ 修复WordPress 429请求过多错误 ]

[Back to top ↑]

[ 返回页首↑ ]

33.如何修复WordPress中的413请求实体太大错误 (33. How to Fix the 413 Request Entity Too large Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Normally, most WordPress hosting companies have their servers configured, so that WordPress users can easily upload large images and other media. However, sometimes this setting is not high enough to upload large theme or plugin files.

通常,大多数WordPress托管公司都配置了服务器,以便WordPress用户可以轻松上传大图像和其他媒体。 但是,有时此设置不够高,无法上传大型主题或插件文件。

It would also stop you from uploading large files in the media library. In that case, you will see a different message, clearly stating that the file size exceeds maximum allowed limit. [Fix 414 request entity too large error in WordPress]

这也将阻止您上载媒体库中的大文件。 在这种情况下,您将看到不同的消息,明确指出文件大小超出了允许的最大限制。 [ 修复414请求实体在WordPress中的错误太大 ]

[Back to top ↑]

[ 返回页首↑ ]

34.如何关闭WordPress中PHP错误 (34. How to Turn Off PHP Errors in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Your WordPress site may sometimes show errors and warnings inside WordPress admin area or your website. These errors do not stop WordPress from displaying your website. They are helpful in debugging issues but your website will look really unprofessional if it is showing these errors on the front-end.

您的WordPress网站有时可能会在WordPress管理区域或您的网站内显示错误和警告。 这些错误不会阻止WordPress显示您的网站。 它们对于调试问题很有帮助,但是如果您的网站在前端显示这些错误,您的网站将看起来非常专业。

WordPress comes with easy configuration tricks to control PHP errors and how they are displayed or logged on your website. You just need to turm them off and PHP errors will disappear from your site. [Fix PHP Errors in WordPress]

WordPress附带简单的配置技巧 ,可控制PHP错误以及它们在您的网站上的显示或登录方式。 您只需要关闭它们,PHP错误将从您的站点中消失。 [ 修复WordPress中PHP错误 ]

[Back to top ↑]

[ 返回页首↑ ]

35.如何修复WordPress中的安全连接错误 (35. How to Fix Secure Connection Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress comes with an updates management system which regularly checks for available updates on WordPress.org website. Your website may fail to connect with WordPress.org website, due to a misconfiguration on your hosting server, which will cause the secure connection error.

WordPress带有更新管理系统,该系统会定期检查WordPress.org网站上的可用更新。 由于托管服务器上的配置错误,您的网站可能无法与WordPress.org网站连接,这将导致安全连接错误。

Updates play an important role in WordPress security and performance. This is why you need to fix this error to resume WordPress updates. [Fix secure connection error in WordPress]

更新在WordPress的安全性和性能中起着重要作用。 这就是为什么您需要修复此错误以恢复WordPress更新的原因。 [ 修复WordPress中的安全连接错误 ]

[Back to top ↑]

[ 返回页首↑ ]

36.如何修复WordPress中的目标文件夹已存在错误 (36. How to Fix Destination Folder Already Exists Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error occurs during the installation of a WordPress theme or plugin. WordPress extracts your plugin or theme’s zip file into a folder named after the file itself.

在安装WordPress主题或插件的过程中会发生此错误。 WordPress将您的插件或主题的zip文件提取到以该文件本身命名的文件夹中。

If a folder with the same name already exists, then WordPress aborts the installation with the following error message.

如果已经存在相同名称的文件夹,则WordPress会中止安装并显示以下错误消息。

Destination folder already exists. /home/user/example.com/wp-content/plugins/wpforms/

目标文件夹已存在。 /home/user/example.com/wp-content/plugins/wpforms/

Plugin install failed.

插件安装失败。

To fix this, you simply need to delete the existing folder and then continue installation. [Fix folder already exists error in WordPress]

要解决此问题,您只需要删除现有文件夹,然后继续安装即可。 [ 修复WordPress中文件夹已存在的错误 ]

[Back to top ↑]

[ 返回页首↑ ]

37.如何修复WordPress中的“进程中的另一个更新”错误 (37. How to Fix ‘Another Update in Process’ Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error usually appears during the WordPress core update process. If a user initiates another update process while an update is already underway, then you’ll see this error message.

此错误通常在WordPress核心更新过程中出现。 如果用户在更新正在进行的同时启动另一个更新过程,那么您将看到此错误消息。

What happens is that WordPress automatically sets an update lock option in the database. This database option prevents you from running simultaneous updates on your website. This option automatically disappears after a while. However, if it doesn’t or you don’t want to wait, then you can also manually fix it. [Fix another update in process error in WordPress]

发生的事情是WordPress自动在数据库中设置了更新锁定选项。 此数据库选项可防止您在网站上同时运行更新。 此选项会在一段时间后自动消失。 但是,如果不这样做或您不想等待,则也可以手动修复它。 [ 修复WordPress中处理错误的另一个更新 ]

[Back to top ↑]

[ 返回页首↑ ]

38.如何修复WordPress中的密码重置密钥错误 (38. How to Fix Password Reset Key Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error forces the login page to keep refreshing and wouldn’t allow you to save the password reset key. While the front-end of your website works normally, you wouldn’t be able to login and work on your website.

此错误会强制登录页面保持刷新,并且不允许您保存密码重置密钥。 网站的前端正常工作时,您将无法登录并在网站上工作。

It is caused by the lack of disk space on your WordPress hosting account. Since there is no more disk space, WordPress fails to save new data into the database. The easy way to fix this is to simply delete a few unnecessary files from your website. [Fix password reset key error in WordPress]

这是由于WordPress托管帐户上的磁盘空间不足所致。 由于没有更多的磁盘空间,WordPress无法将新数据保存到数据库中。 解决此问题的简单方法是从您的网站中删除一些不必要的文件。 [ 修复WordPress中的密码重置密钥错误 ]

[Back to top ↑]

[ 返回页首↑ ]

39.如何修复WordPress中的“缺少临时文件夹”错误 (39. How to Fix “Missing a Temporary Folder” Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error is caused when WordPress does not have access to the folder PHP uses to store temporary files. The error disrupts your WordPress media uploads, plugins, and theme installations.

当WordPress无法访问PHP用于存储临时文件的文件夹时,将导致此错误。 该错误会破坏您的WordPress媒体上传,插件和主题安装。

To fix this error, you will need to define a temporary folder for WordPress to use or ask your WordPress hosting provider to fix it for you. [Fix missing a temporary folder error in WordPress]

要修复此错误,您将需要为WordPress定义一个临时文件夹,以供使用或要求WordPress托管提供商为您修复它。 [ 修复了在WordPress中丢失临时文件夹错误 ]

[Back to top ↑]

[ 返回页首↑ ]

40.如何修复WordPress中的Pluggable.php文件错误 (40. How to Fix Pluggable.php File Errors in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Pluggable.php file contains some core WordPress functions that users and developers can override in their own code. However, if a WordPress plugin or a custom code snippet fails to correctly handle one of these functions, then you will see an error like this one:

Pluggable.php文件包含一些WordPress核心功能,用户和开发人员可以在自己的代码中覆盖这些功能。 但是,如果WordPress插件或自定义代码段未能正确处理以下功能之一,则您将看到类似以下错误:

Warning: Cannot modify header information – headers already sent by (output started at /home/username/demosite/wp-content/themes/mytheme/functions.php:1035) in /home/username/demosite/wp-includes/pluggable.php on line 1179

警告:无法修改标头信息–已在/ home / username / demosite / wp-includes / pluggable中发送过标头(输出始于/home/username/demosite/wp-content/themes/mytheme/functions.php:1035)。 1179行上的php

Sometimes you would be able to continue working on your site despite the error, sometimes the error would be fatal and make your site completely inaccessible. [Fix pluggable.php file errors in WordPress]

有时尽管出现错误,您仍可以继续在网站上工作,有时错误将是致命的,并使您的网站完全无法访问。 [ 修复WordPress中的pluggable.php文件错误 ]

41.如何解决WordPress中常见的SSL问题 (41. How to Fix Common SSL Issues in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

SSL / HTTPS enabled sites use a unique SSL certificate for identification purposes. If a server is pretending to be on HTTPS, and its certificate doesn’t match, then most modern browsers will warn the user from connecting to the website.

启用S​​SL / HTTPS的网站使用唯一的SSL证书进行识别。 如果服务器假装使用HTTPS,并且其证书不匹配,则大多数现代浏览器都会警告用户不要连接到网站。

The easiest way to fix this is to ask your WordPress hosting provider to properly install your SSL certificate. For more details and other errors caused by SSL misconfiguration, see our guide on how to fix common SSL issues in WordPress.

解决此问题的最简单方法是让您的WordPress托管提供商正确安装SSL证书。 有关SSL错误配置导致的更多详细信息和其他错误,请参阅有关如何解决WordPress中常见SSL问题的指南。

[Back to top ↑]

[ 返回页首↑ ]

42.如何修复WordPress中的文件和文件夹权限错误 (42. How to Fix File and Folder Permissions Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress needs specific file and folder permissions to work properly. Most WordPress hosting companies already set them up but these permissions could change accidentally or due to a misconfiguration.

WordPress需要特定的文件和文件夹权限才能正常工作。 大多数WordPress托管公司已经设置了它们,但是这些权限可能会意外更改或由于配置错误而更改。

You can set these permissions manually by using an FTP client. Simply select all WordPress files and folders and then apply permissions to folders and files recursively.

您可以使用FTP客户端手动设置这些权限。 只需选择所有WordPress文件和文件夹,然后以递归方式将权限应用于文件夹和文件。

You will need to set all folder permissions to 755 and all file permissions to 655. For more details, see our article on how to fix file and folder permissions in WordPress.

您将需要将所有文件夹权限设置为755,并将所有文件权限设置为655。有关更多详细信息,请参见有关如何在WordPress中修复文件和文件夹权限的文章。

[Back to top ↑]

[ 返回页首↑ ]

43.如何修复WordPress中的HTTP图像上传错误 (43. How to Fix the HTTP Image Upload Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Are you seeing HTTP error when trying to upload images or media to your WordPress website? There are a number of things that could lead to an HTTP error when uploading files using the WordPress media uploader.

尝试将图像或媒体上传到WordPress网站时是否看到HTTP错误? 使用WordPress媒体上传器上传文件时,有很多情况可能导致HTTP错误。

Most of the time, this error is a temporary issue and resolves in a few minutes. However, other times it becomes persistent and needs further investigation.

在大多数情况下,该错误是一个临时性问题,可在几分钟后解决。 但是,有时它变得持久并且需要进一步调查。

For step by step instructions, see our complete guide on fixing the HTTP image upload error in WordPress.

有关逐步说明,请参阅有关修复WordPress中HTTP图像上传错误的完整指南。

[Back to top ↑]

[ 返回页首↑ ]

44.如何解决您的连接不是私人错误 (44. How to Fix Your Connection is Not Private Error)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

‘Your connection is not private’ error appears on websites using the SSL / HTTPs protocol when your browser is unable to validate the SSL certificate issued by the website.

当您的浏览器无法验证网站发布的SSL证书时,使用SSL / HTTPs协议的网站上会出现“您的连接不是私人的”错误。

Most popular browsers will display the error message instead of your website, this results in sudden drop in website traffic and damage to your brand image.

最受欢迎的浏览器将显示错误消息,而不是您的网站,这会导致网站流量突然下降并损害您的品牌形象。

The problem is figuring out the cause of this error. We have prepared a step by step guide to easily fix connection is not private error on your website.

问题正在找出此错误的原因。 我们已准备了逐步指南,可轻松修复您网站上的连接不是私人错误

[Back to top ↑]

[ 返回页首↑ ]

45.如何修复WordPress中的“您关注的链接已过期”错误 (45. How To Fix “The Link You Followed Has Expired” Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

This error usually occurs when you are trying to upload a WordPress theme or a plugin to your website from the WordPress admin area.

当您尝试从WordPress管理区域将WordPress主题或插件上传到您的网站时,通常会发生此错误。

WordPress hosting companies put a limit on file sizes you can upload and how long a script can run on a website. If the file you are uploading is large or taking longer to upload, then you’ll see the ‘Link you followed has expired’ error.

WordPress托管公司限制了您可以上传的文件大小以及脚本可以在网站上运行多长时间。 如果您要上传的文件很大或需要更长的时间上传,那么您会看到“您关注的链接已过期”错误。

Depending on what’s causing the error you need to increase memory limit and file upload size in WordPress. For detailed instructions, see our article on how to fix the link you followed has expired error in WordPress.

根据导致错误的原因,您需要增加WordPress中的内存限制和文件上传大小。 有关详细说明,请参阅我们的文章,了解如何解决WordPress中您遵循的链接已过期错误

[Back to top ↑]

[ 返回页首↑ ]

46. WordPress网站未立即更新问题 (46. WordPress Website Not Updating Right Away Issue)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Is your WordPress website not showing the recent changes you made? The most common reason for this issue is caching.

您的WordPress网站是否未显示您最近所做的更改? 此问题的最常见原因是缓存。

Basically, your browser or WordPress caching plugin temporarily stores a version of each page viewed on your website. This allows them to quickly serve pages instead of requesting a fresh copy from your server.

基本上,您的浏览器或WordPress缓存插件会临时存储您在网站上查看的每个页面的版本。 这样一来,他们可以快速提供页面,而不必从服务器中请求新副本。

If your website is not updating right away, then the most likely cause is that you are viewing a cached version. We have compiled a detailed guide that shows how to clear WordPress cache on all popular browsers and caching plugins.

如果您的网站没有立即更新,则最可能的原因是您正在查看缓存的版本。 我们已经编写了一份详细的指南,其中显示了如何清除所有流行的浏览器和缓存插件上的WordPress缓存

[Back to top ↑]

[ 返回页首↑ ]

47.如何修复WordPress中的“无法加载资源”错误 (47. How To Fix “Failed To Load Resource” Error In WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress includes several files when loading any page on your website. Behind the scenes, each page load contains several images, scripts, stylesheets, and more. These files are then loaded by user’s browser.

当您在网站上加载任何页面时,WordPress都会包含多个文件。 在幕后,每个页面加载都包含多个图像,脚本,样式表等。 这些文件然后由用户的浏览器加载。

However, if these files are not found, then you’ll see the “Failed to resource” error in the browser’s Inspect tool.

但是,如果找不到这些文件,那么您将在浏览器的检查工具中看到“资源失败”错误。

The easiest solution is to make sure that the file actually exists on your website. However, if that doesn’t work then you need to check your WordPress URLs to make sure they are correct.

最简单的解决方案是确保文件确实存在于您的网站上。 但是,如果这不起作用,则需要检查WordPress URL以确保它们正确。

For detailed instructions, see our guide on how to fix “Failed to load resource” error in WordPress.

有关详细说明,请参阅有关如何解决 WordPress中“无法加载资源”错误的指南。

[Back to top ↑]

[ 返回页首↑ ]

48.如何修复WordPress中的“缺少临时文件夹”错误 (48. How to Fix “Missing a Temporary Folder” Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

WordPress temporarily stores files in a temporary folder when you are uploading media, upgrading plugins, and themes. If it is unable to create or write in the temporary folder then your uploads fail with the error message ‘Missing a temporary folder’.

当您上传媒体,升级插件和主题时,WordPress会将文件临时存储在一个临时文件夹中。 如果无法创建或写入临时文件夹,则您的上传将失败,并显示错误消息“缺少临时文件夹”。

To fix this, you need to add the following code in your wp-config.php file.

要解决此问题,您需要在wp-config.php文件中添加以下代码。


define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

After that, you need to connect to your website using an FTP client and create a new folder named ‘temp’ inside the wp-content folder.

之后,您需要使用FTP客户端连接到您的网站,并在wp-content文件夹中创建一个名为“ temp”的新文件夹。

For more details, see our guide on how to fix missing a temporary folder error in WordPress.

有关更多详细信息,请参阅有关如何解决 WordPress中缺少临时文件夹错误的指南。

[Back to top ↑]

[ 返回页首↑ ]

49.如何修复WordPress中的“ Googlebot无法访问CSS和JS文件”错误 (49. How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress)

常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug)

Are you seeing crawl errors in Google search console with the message ‘Googlebot cannot access resources”? In order to understand a page, Googlebot needs to view it with the accompanying CSS and JavaScript files.

您是否在Google搜索控制台中看到“ Googlebot无法访问资源”消息的抓取错误? 为了理解页面,Googlebot需要使用随附CSS和JavaScript文件进行查看。

However, if Google cannot load these files then it would cause errors in your Google Search Console’s coverage report.

但是,如果Google无法加载这些文件,则会在Google Search Console的覆盖率报告中导致错误。

The most common cause of this error is users accidentally blocking these resources using .htaccess file or robots.txt. See both files in your website’s root folder to make sure you are not blocking static resources.

导致此错误的最常见原因是用户不小心使用.htaccess文件或robots.txt阻止了这些资源。 请查看网站根文件夹中的两个文件,以确保您没有阻止静态资源。

For detailed instructions, follow our article on how to fix Googlebot cannot access CSS and JS files error in WordPress.

有关详细说明,请按照我们有关如何修复 WordPress中Googlebot无法访问CSS和JS文件错误的文章进行操作。

[Back to top ↑]

[ 返回页首↑ ]

50.自行解决WordPress错误 (50. Troubleshooting WordPress Errors on Your Own)

We have covered some of the most common WordPress errors in this article. However, the real power of WordPress comes from thousands of plugins and themes that you can use on your site. Any plugin or theme installed on your site can cause errors.

我们在本文中介绍了一些最常见的WordPress错误。 但是,WordPress的真正功能来自您可以在网站上使用的数千个插件和主题。 您网站上安装的任何插件或主题都可能导致错误。

It could become really hard for beginners to find out what is causing the problem on their site and how they can fix it.

对于初学者来说,要在他们的网站上找出导致问题的原因以及如何解决它,可能真的很难。

We have compiled complete step by step guide on troubleshooting WordPress errors for beginners. It will help you learn how to diagnose WordPress issues and how to fix them like a pro.

我们已经为初学者编写了完整的逐步指南,以解决WordPress错误 。 它将帮助您学习如何诊断WordPress问题以及如何像专家一样解决它们。

[Back to top ↑]

[ 返回页首↑ ]

That’s all, we hope that this guide helped you find and fix the WordPress error that you were encountering.

仅此而已,我们希望本指南能帮助您找到并修复遇到的WordPress错误。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/

常见前端bug及其修复方法

:本文采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可, 转载请附上原文出处链接。
1、本站提供的源码不保证资源的完整性以及安全性,不附带任何技术服务!
2、本站提供的模板、软件工具等其他资源,均不包含技术服务,请大家谅解!
3、本站提供的资源仅供下载者参考学习,请勿用于任何商业用途,请24小时内删除!
4、如需商用,请购买正版,由于未及时购买正版发生的侵权行为,与本站无关。
5、本站部分资源存放于百度网盘或其他网盘中,请提前注册好百度网盘账号,下载安装百度网盘客户端或其他网盘客户端进行下载;
6、本站部分资源文件是经压缩后的,请下载后安装解压软件,推荐使用WinRAR和7-Zip解压软件。
7、如果本站提供的资源侵犯到了您的权益,请邮件联系: 442469558@qq.com 进行处理!

猪小侠源码-最新源码下载平台 WordPress教程 常见前端bug及其修复方法_50个最常见的WordPress错误及其修复方法(前端遇到bug怎么解决)(前端开发遇到的一些bug) http://www.20zxx.cn/417667/wordpres/wordpressq.html

猪小侠源码,优质资源分享网

常见问题
  • 本站所有资源版权均属于原作者所有,均只能用于参考学习,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担
查看详情
  • 最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,建议提前注册好百度网盘账号,使用百度网盘客户端下载
查看详情

相关文章

官方客服团队

为您解决烦忧 - 24小时在线 专业服务