Article directory
- 1 Error in wp-config.php file
- 2 The solution to the blank content page or 404 error in the foreground
- 3 WordPress Rename Troubleshooting
- 4 Logs wrong plugin settings
- 5 SSH set 775 permissions
- 6 VestaCP change folder permissions
- 7 CWP control panel settings 755 permissions
- 8 Virtual host setting permissions
WordPressAfter the website is moved, the front desk of the home page is blank and the background is blank, what should I do?
WP website transfer space for domain name, it is very common to make mistakes, we just need to check the problems one by one, and the problem will be solved quickly.
The following is the fast moving process of WordPress website▼
Error in wp-config.php file
There may be an error in the wp-config.php file.
First, please check wp-config.php forMySQLconfiguration information.
look at yourselfMySQL databasefirst name, database username, database password, MySQL host, is the information filled in correctly?
To modify the tutorial, please refer to this article ▼
Import a database using MySQL database commands via SSH▼
The solution to the blank content page or 404 error in the foreground
- 1. Generally, if the front desk cannot be opened normally, it must be pseudo-static.If the original space can be accessed as usual, it must be that the Rewrite of the new space is not enabled or the pseudo-static rules are incorrect.
- 2. Confirm that space Rewrite is enabled and that your own pseudo-static rules are correct.can log inWordPress backend, rewrite the fixed connection
%post_id%.html
Save, and then update the article once, it should be solved.
WordPress Rename Troubleshooting
WordPress site background fatal error how to solve?
WordPress pluginRename check:
- put the currently usedWP pluginRename the directory, first rename "plugins" to "-plugins", and then create a new "plugins" to see if it returns to normal?
- If it is, then rename it back to "plugins", then rename the plugin under the "plugins" folder and see if it goes back to normal?
WP theme not activated
- Go to the background and activate the WP theme.
- If that doesn't work, rename the current WP theme folder and see if it goes back to normal?
Doing these two operations is to check whether the white screen is caused by the theme or plugin.
- It is recommended to back up before engaging in it. If you have installed the wp cache plug-in, clear the cache first, basically that's it.
If after using the "rename troubleshooting method", it is found that the front or background of the website can be restored to normal, which means that some plugins or themes cause errors, and the faulty plugins or themes must be disabled.
At this point, it is recommended to enable "WordPress debug mode".
How to enable WordPress debug mode?
- Edit the "wp-config.php" file in the root directory of your WordPress site;
- will"
define('WP_DEBUG', false);
",change into"define('WP_DEBUG', true);
" - After enabling WordPress debugging, refresh the error page, and the path and error message of the plugin or theme that caused the error will be displayed;
- Rename the wrong plugin or theme, for example: wordpress-SeoPlugin error, rename it to "=wordpress-seo".
/** * 开发者专用:WordPress调试模式 * * 将这个值改为true,WordPress将显示所有用于开发的提示 * 强烈建议插件开发者在开发环境中启用WP_DEBUG * * 要获取其他能用于调试的信息,请访问Codex * * @link https://codex.wordpress.org/Debugging_in_WordPress */ define('WP_DEBUG', true); //define('WP_DEBUG', false);
- Finally edit the "wp-config.php" file, "define('WP_DEBUG', true);" change back to "define('WP_DEBUG', false);".
Logs wrong plugin settings
- If you have determined that after the WP website is moved and the database replaces the domain name URL, the setting data of some themes and plugins will be automatically emptied to blank, so you need to record which WordPress plugins and themes are wrong, and set the settings of these WordPress themes and plugins in advance. set, export or copy to a computer for backup.
The following records areAlienUFOTruth (www.etUFO.org) website relocation, change the server path, change the setting page of the new domain name will be wrong.
(There is one more space in front of wp-admin in the following URL to prevent search engine crawlers from directly accessing the internal page, because the internal page of the plugin can only be accessed by administrators)
wp-keywordlink plugin:
https://www.etufo.org/ wp-admin/options-general.php?page=rejected-wp-keyword-link-rejected/wp_keywordlink.php
itsec plugin settings:
https://www.etufo.org/ wp-admin/admin.php?page=itsec
ad-inserter plugin settings:
https://www.etufo.org/ wp-admin/options-general.php?page=ad-inserter.php
Theme settings:
https://www.etufo.org/ wp-admin/themes.php?page=bunyad-admin-options
The backuppup plugin task:
https://www.etufo.org/ wp-admin/admin.php?page=backwpupjobs
The backuppup plugin settings:
https://www.etufo.org/ wp-admin/admin.php?page=backwpupsettings
WP-DBManager plugin settings:
https://www.etufo.org/ wp-admin/admin.php?page=wp-dbmanager/wp-dbmanager.php
Breadcrumbs:
https://www.etufo.org/ wp-admin/options-general.php?page=breadcrumb-navxt
Automatically synchronize foreign social plug-in accounts:
https://www.etufo.org/ wp-admin/admin.php?page=nxssnap
xPinner Lite plugin settings:
https://www.etufo.org/ wp-admin/options-general.php?page=xpinner
SEO plugin social account:
https://www.etufo.org/ wp-admin/admin.php?page=wpseo_social#top#accounts
postman plugin settings:
https://www.etufo.org/ wp-admin/options-general.php?page=postman
SSH set 775 permissions
If you are using a VPS, these directories The default owner is root,The FTP used is vsftpd,The server is Apache2.
These conditions mainly restrict the default user group names.
如果LinuxDepending on the installed system, the user group names may need to be adjusted.
The following is the SSH setting 775 permission process ▼
Step 1:login SSH
Step 2:Go to the /wp-content/ directory ▼
cd /home/admin/web/你的域名文件夹/public_html/wp-content/
Step 3: Set 755 permissions to these directories, that is, only the owner has permission to write ▼
chmod -R 755 plugins/ chmod -R 755 themes/ chmod -R 755 uploads/ chmod -R 755 upgrade/
VestaCPChange folder permissions
If youInstall the VestaCP panel, to quickly modify the permissions of the WordPress website directory, you can use the following commands ▼
chown -R admin:admin /home/admin/web/你的域名文件夹/public_html/*
CWP Control PanelSet 755 permissions
If your VPS is installed with the CWP control panel, please log in directly to the background of the CWP control panel to set permissions.
Step 1:Go to Fix Permissions page
- CWP menu –> User Accounts –> Fix Permissions (fix permissions and select user)
Step 2:Choose your user ▼
Step 3:Click Fix Account Permissions ▲
- CWP control panel setting 755 permissions is really simple and fast ^_^
Virtual host setting permissions
If you are using a virtual host, not a VPS, then the above setting method does not apply.
Please add the following code to the wp-config.php file in the root directory of your WordPress website ▼
define("FS_METHOD","direct"); define("FS_CHMOD_DIR", 0755); define("FS_CHMOD_FILE", 0755);
Basically doing this will make your WordPress program both more secure and able to upgrade.
In order to do wellInternet marketingtasks, you can now start testing installations and upgrades, variousWeb PromotionPlugin ^_^
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "After the WordPress website is moved, the front page of the front page is blank and the background is also blank, what should I do? , to help you.
Welcome to share the link of this article:https://www.chenweiliang.com/cwl-529.html
Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!