Home >CMS Tutorial >WordPress >What are the common WordPress faults? How to deal with it?

What are the common WordPress faults? How to deal with it?

藏色散人
藏色散人forward
2021-08-26 15:31:302456browse

What are the common faults of WordPress? Below, the WordPress tutorial column will introduce to you common WordPress troubleshooting solutions. I hope it will be helpful to friends in need!

Common WordPress troubleshooting solutions

After you start using WordPress to build a website, you may encounter some errors and problems. We have collected several of the most common failures and solutions when using WordPress for your reference. We hope it will be helpful to your website building process.

First of all, you can first confirm whether the cause of the failure is caused by the cloud platform. For WordPress failures caused by the cloud platform, please refer to our cloud platform documentation for solutions.

The following are several common failures we have compiled for you:

The WordPress database service cannot be started

Cause: It may be insufficient disk space, insufficient memory, or incorrect configuration files.

Solution: First use the command to troubleshoot, determine the problem, and then release the memory.

# 查看磁盘空间
df -lh

# 查看内存使用
free -lh

When WordPress is running, database connection errors frequently occur?

Cause: The most likely reason is that insufficient memory causes the database to run abnormally.

Solution: Increase memory and enable CDN. CDN can greatly reduce server memory overhead while accelerating the website.

WordPress upload image error

WordPress upload file error, there are several possibilities:

  1. Cause: The image size exceeds the server limit.
    Solution: Please refer to Modify the Upload File Size in Environment Management->PHP Configuration in this chapter.
  2. Cause: The actual format of the picture is inconsistent with the suffix.
    Solution: For example, the actual format of a WordPress9.jpg image is WordPress9.jpeg, and an error will be reported when uploading. If the suffix is ​​changed to jpeg, the upload will be normal. In fact, when the actual format and suffix are inconsistent, there will be no preview effect in the Windows system file.
  3. Permission issues (common in IIS).

WordPress appears to be solving the problem. It is performing routine maintenance. Please come back in a minute.

Reason: The reason for this prompt is that the website A .maintenance file is generated in the WordPress installation directory.

Solution:

  • If it exists, just delete it and return to normal.
  • If it does not exist, create a new .maintenance with blank content, refresh it, and then delete it after returning to normal.

WordPress cannot send emails

Reason: WordPress sends emails through the mail() function by default, and the server itself must be configured. Mail function. In practice, transforming a server into a mail server is a very complicated task and difficult to maintain.

Solution: It is recommended to install an SMTP plug-in to solve the problem of sending emails: WP-Mail-SMTP.

WordPress 5.0 Switch back to the old version of "Classic Editor"

Reason: In versions after WordPress 5.0, the editor is the same as before There is a clear difference. We will not discuss the pros and cons of the editor here. We found that after the editor was upgraded, the user's theme could not adapt to the new editor, resulting in the inability to perform visual editing.

Solution: If you want your theme to be visually editable, you must enable the classic editor. The method to enable it is very simple, just install the "Classic Editor" plug-in.

The WordPress backend upgrade network is blocked and the official website cannot be opened?

Reason: WordPress is a foreign website, and the background upgrade address is also foreign. If the website cannot be opened, the background upgrade will also not be possible.

Solution: If you urgently need to upgrade, please refer to our WordPress manual upgrade document

The WordPress administrator has lost permissions and cannot log in to the backend normally?

Reason: The backend management of WordPress is divided into permissions, and the highest authority is the super administrator. When the WordPress administrator loses permissions and cannot enter the background normally.

Solution: You can restore permissions by entering the PhpMyAdmin database management tool.

  • Log in to the database management tool phpMyAdmin: http:// server ip/phpMyAdmin/
  • Find the user-related data tables: wp_users and wp_usermeta;
  • Enter first wp_users, check your own administrator user name. The super administrator user ID is usually 1. If not, modify it;
  • Enter the wp_usermeta table and find the wp_user_level and wp_capabilities fields. If the value of wp_user_level of the corresponding account is not 10, please change it to 10 (half of super administrators are 10, the highest authority); check the wp_capabilities value, if it is not "administrator", you can directly change it to: a:1:{s:13 :"administrator";b:1;} ;
  • Log in again.

The above is our summary and reflections on common problems faced by users during the use of WordPress. It can solve most of your problems. If you may use WordPress, it is recommended to collect it~

If you have other questions, please contact us for consultation ~ We will also gradually discover more troubleshooting methods and make summary updates!

The above is the detailed content of What are the common WordPress faults? How to deal with it?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete