WordPress Blog Program Common error Resolution _php tutorial

Source: Internet
Author: User
Tags iis administration blank page cpanel wordpress database wordpress blog wordpress login

WordPress Blog Program Common Error resolution method


WordPress is the mainstream Blog building platform. WordPress can be said to be the world's most advanced weblog program. Most of the programs currently under development are modeled on it. It is more able to grasp the search engine, after you use WordPress and master several plug-ins, for optimization will not worry too much, it will think for you more.

If you are a WordPress user who likes to make up a piece of code, or if you are a user who likes to install plugins and change the theme, you will understand that there is no way to avoid errors. You will also understand how desperate it is to get involved in an unpredictable error without finding a solution. In fact, most of the WordPress error problems can be solved. So when you meet a mistake, don't be anxious, because it is possible that you have encountered the problem others have encountered, and there is a solution.

In today's article, we take a look at the most common WordPress errors, and then give you a solution, let you read the post no longer distressed, more enjoyable to write a blog.

One, forgot the user password at the same time the mail retrieval function does not work

Problem Description:

You have lost your WordPress administrator password, also tried to "Forget password" to enter the user name and email address. However, you do not receive a password reset message.

Here are two very simple ways to reset your WordPress Administrator password:

[Page_break]

  Method 1:phpmyadmin

1. If you are a cPanel space user, after logging in to CPanel, click PhpMyAdmin under Database

2. Select your WordPress database. such as Username_wrdp1

3. Find Wp_users, click Browse

4. Locate your user name and click Edit.

5. Reset your password by writing a new value in the User_pass. Remember, there are case-by-case distinctions.

6. After completing the previous step, click the Function drop-down menu and select MD5 from the options.

7. At the lowest end of the page, click the Go button.

[Page_break Method 2: Via FTP

1. Log in to your FTP account.

2. Find: /wp-content/themes/(your subject file)/directory, and then download the functions.php file.

3. Open functions.php and then in the first

Wp_set_password (' Yournewpassword ', 1);

Change the value of the Yournewpassword to the password you want. The 1 in this code represents the user ID on the wp_users table.

4. Upload the modified functions.php to FTP again.

5. When you can log in to WordPress, then delete the line of code.

  Second, the WordPress Control Panel (Dashboard) does not display properly

Problem Description:

WordPress Control Panel inside the CSS is not displayed, the page is very messy links.

Workaround 1: Ports and firewalls

Check that your network connection is over the port and firewall. Some ports and firewalls will be filtered to CSS, so there is no CSS where the display is not normal. Try clearing the port and firewall cookies and caches, and then Ctrl + F5 reload the page.

Solution 2: Upgrade your WordPress plugin

If you have some plugins to replace the default control panel, such as Admin Drop down Menu and lighter Menus, then upgrade these plugins, if it doesn't work, then disable try.

  Iii. Warning Warning:cannot Modify header information–headers already sent by

Problem Description:

After upgrading WordPress to a new version or a new installation, you encounter this error in the browser: Warning:cannot Modify header Information–headers already sent by (output start Ed At/path/blog/wp-config.php:34)

WORKAROUND: Delete the extra space in the wp-config.php, empty lines, and other useless information.

1. Download the wp-config.php file via FTP

2. Open wp-cinfig.php

3. Remove

4. Make sure that the first field is

5. Remove all spaces after the?>.

6. Make sure the last character is?, put it on the last line, and make sure there are no spaces in the middle.

This error can occur in other files. Read the error message carefully, with the location of the file where the error was recorded.

[Page_break Four, WordPress blog page and Control Panel blank

Problem Description:

This error generally occurs when a new theme is installed, or it is upgraded to a new version. Opening a blog is a blank page. This is also the case in the Control Panel, so there is no way to get into the control panel.

Workaround 1: Rename the currently installed theme via FTP.

Renaming the currently installed Theme folder will force WordPress to automatically select the default theme and then load it normally.

1. Locate the Wp-contents/themes folder via FTP.

2. Re-kill the currently installed theme folder. For example: Name the Twentytwenty twentytwenty-temp

3. Log in to your WordPress backend.

4. Check if your theme is compatible with the WordPress you are running now.

5. Check to see if your theme contains code that cannot be executed.

Workaround 2: Reset the plug-in folder via FTP

1. Locate the Wp-contents folder via FTP.

2. Rename the plugins folder to Plugins-temp

3. Create a new folder in the same directory as plugins

4. Login to the WordPress Control Panel again.

5. Move your plugin from plugins-temp to plugin, then reactivate it one after the other.

6. Check if there is a plugin not compatible with the current WordPress.

[Page_brea v. Fatal error: Fatal error:allowed memory size of 33554432 bytes exhausted

Problem Description:

When you upload a photo, you encounter Fatal error:allowed memory size of 33554432 bytes exhausted error message. To solve this problem, you should try to increase the memory allocated to PHP. You can set the limit to 32MB, 64MB, 128MB or 256MB, this depends on whether your host support.

Solution 1: Edit php.ini

If you can edit the php.ini file, you can modify the Memory_limit value directly above.

Memory_limit = 64M; Maximum amount of memory a script may consume (64MB)

If the default display is 64M, try 128M.

Workaround 2:.htaccess File

Add the following line of code to the. htaccess file.

Php_value Memory_limit 64M

Solution 3: Edit the wp-config.php file

Add the following code to the wp-config.php file.

Increasing memory allocated to PHP

Define (' Wp_memory_limit ', ' 64M ');

Solution 4: Create a new php.ini file inside the Wp-admin folder.

1. Open Notepad.

2. Insert the following code:

Memory_limit = 64M;

3. Save As PHP.ini.

4. Upload to the Wp-admin directory.

  Six, you do not have permission to view this page (403 errors)

Problem Description:

When you enter your username and password in the background login page, you receive an error: You is not a authorized to the view this page. (403 error)

Workaround: Enable index.php

If your blog is installed on Windows Server, this error is caused by IIS not setting the default home page as indexx.php.

1. Open the Control Panel.

2. Open IIS Administration.

3. Find the default homepage section.

4. Join a index.php.

  Fatal error: Fatal error undefined function is_network_admin ()

Problem Description:

Fatal error undefined function is_network_admin () Fatal error when you try to log in when you finish upgrading WordPress.

Workaround: Manually Upgrade

This error is caused by the failure of WordPress upgrade. Try to upgrade manually.

1. Download the latest WordPress compressed package and unzip it.

2. Back up your WordPress now.

3. Rename the Wp-includes and Wp-admin directories to Wp-includes.bak and Wp-admin.bak.

4. Uploading Wp-includes and Wp-admin directories to the server via FTP is on.

5. Upload something from the new wp-content directory to the appropriate location on the server.

6. Upload other files to the WordPress root directory.

7. Delete the. maintenance file via FTP.

8. Re-login to WordPress you will see a link like this http://Your domain name/wordpress/wp-admin/upgrade.php, follow the instructions.

9. Clear the cache and see if you are in effect.

For more details on manual upgrades, please see: Updating WordPress

[Page_break] Eight, WordPress login interface 404 Issues

Problem Description:

You have no way to login to WordPress background, display 404 error.

Workaround 1: Update the URL on your face in the database.

If you can go to phpMyAdmin, try updating the URL in the database.

1. Log in to CPanel and click on the phpMyAdmin inside the Databases.

2. Select your WordPress database, for example: USERNAME_WRDP1.

3. Go to Wp_options and click Browse.

4. Search for Siterul below the field option_name.

5 Click Edit Field.

6. Change the URL in the Option_value option.

7. Click Confirm at the bottom.

Workaround 2: Change the folder properties.

1. Enter the/wp-admin directory under FTP.

2. Right-click the Wp-admin directory and click Folder Properties.

3. Change the attribute value to 755 and then check that the directory has no corresponding option.

4. Click OK.

5. Operate the 1-4 steps in the Wp-content and Wp-includes folders.

6. Open your browser and try to login to WordPress. Then press Ctrl + F5 to empty the cache.

[Page_break IX, after completing the automatic upgrade display briefly unavailable for scheduled maintenance error

Problem Description:

If your site displays briefly unavailable for scheduled maintenance error message after the upgrade is complete.

WORKAROUND: Delete the. maintenance file.

When you upgrade you will generate a file called. Maintenance, which is used to remind visitors that the site is being maintained. If the upgrade fails, the file will remain in the folder.

Delete the. Maintenance steps.

1. Log in to your blog's root directory via FTP.

2. Locate the. maintenance file.

3. In the root directory, delete the. maintenance file.

Once you have solved this problem, you can go to the automatic upgrade again.

  X. Unable to delete plugins

Problem Description:

You cannot delete a plugin from the WordPress Control Panel. After you delete the plugin's folder via FTP, you will still not be able to remove it from the control Panel.

Workaround: Remove the plugin via SSH.

Your plugin may have uploaded some hidden files into the directory, which are not visible under FTP.

If your blog can be logged in via SSH:

1. Log in to your blog via SSH.

2. Locate the directory with the SSH command: wp-content/plugins/

3. Use the command Ls-al to display the entire folder.

4. Remove the plugin with the RM directory name command.

Because of the universality of WordPress, temporarily can only list the solutions to these common problems, I hope everyone has help oh ~

http://www.bkjia.com/PHPjc/978266.html www.bkjia.com true http://www.bkjia.com/PHPjc/978266.html techarticle WordPress Blog Program Common error resolution WordPress is the mainstream blog building platform. WordPress can be said to be the world's most advanced weblog program. The current development of the program large ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.