Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

WBOY
Release: 2016-07-13 09:58:11
Original
1259 people have browsed it

Solutions to common errors in WordPress blogging program

WordPress is the mainstream blog building platform. WordPress is arguably the most advanced weblog program in the world. Most of the programs currently developed are imitations of it. It has a better grasp of search engines. After you use WordPress and master several plug-ins, you won’t have to worry too much about optimization. It will think more for you.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial 帮客之家

If you are a WordPress user who likes to write a piece of code casually, or you are a user who likes to install plug-ins and change themes, you will understand that there is no way to avoid mistakes. You will also understand how hopeless it is when you are involved in an unforeseen error and have no solution. In fact, most WordPress error problems are solvable. So when you encounter an error, don't be anxious, because it is very likely that someone else has encountered the problem you encountered, and there is already a solution.

In today’s article, we will take a look at the most common WordPress errors, and then share with you the solutions so that you will no longer be distressed after reading the post and can blog more happily.

1. Forgot the user password and the email retrieval function does not work

Problem description:

You have lost your WordPress administrator password, and you have also tried clicking "Forgot Password" to fill in your username and email address. But I didn't receive the password reset email.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

Here are two easy ways to reset your WordPress admin password:

 [page_break]

 Method 1: phpMyAdmin

 1. If you are a cPanel space user, after logging in to cPanel, click phpMyAdmin under Database (database)

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 2. Select your WordPress database. For example Username_wrdp1

 3. Find wp_users and click Browse

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 4. Find your username and click Edit.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 5. Reset your password by writing a new value in user_pass. Remember, there is case sensitivity.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

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

 7. At the bottom of the page, click the Go button.

 [page_break Method 2: Via FTP

 1. Log in to your FTP account.

 2. Find the ../wp-content/themes/(your theme files)/ directory and download the functions.php file.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 3. Open functions.php and click on the first

wp_set_password('YourNewPassword',1);

Replace the value of YourNewPassword with the password you want. The 1 in this code represents the user ID in the wp_users table.

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

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

 2. The WordPress control panel (Dashboard) cannot be displayed properly

Problem description:

 The CSS in the WordPress control panel cannot be displayed, and the links on the page are messy.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

Solution 1: Ports and Firewalls

Check that your network connection is through the port and firewall. Some ports and firewalls will filter CSS, so places with CSS will not display properly. Try clearing cookies and cache on the port and firewall, then Ctrl F5 to reload the page.

Solution 2: Upgrade your WordPress plugin

If you have some plug-ins that are used to replace the default control panel, such as Admin Drop Down Menu and Lighter Menus, then upgrade these plug-ins. If it still doesn’t work, try disabling them.

 3. Warning: Cannot modify header information – headers already sent by

Problem description:

After upgrading WordPress to a new version or installing it freshly, I encountered this error in the browser: Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config. php:34)

Solution: Delete extra spaces, blank lines and other useless information in wp-config.php.

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

 2. Open wp-cinfig.php

 3. Remove

 4. Make sure the first field is

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

5. Remove all spaces after ?>.

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

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

This error can occur in other files. Read the error message carefully. It records the location of the file in question.

 [page_break 4. The WordPress blog page and control panel are blank

Problem description:

This error usually occurs when a new theme is installed or upgraded to a new version. When you open the blog, it's a blank page. You will also encounter this situation in the control panel, so there is no way to enter the control panel.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

Solution 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 it can be loaded normally.

 1. Find the wp-contents/themes folder via FTP.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 2. Rename the currently installed theme folder. For example: name twentytwenty twentytwenty-temp

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 3. Log in to your WordPress backend.

 4. Check whether your theme is compatible with the WordPress you are currently running.

5. Check whether your theme contains code that cannot be executed.

Solution 2.: Reset the plugin folder via FTP

 1. Find the wp-contents folder via FTP.

 2. Rename the plugins folder to plugins-temp

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

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

 4. Log in to the WordPress control panel again.

 5. Move your plugins from plugins-temp to plugin and then reactivate them one by one.

 6. Check if any plugins are incompatible with the current WordPress.

 [page_brea 5. Fatal error: Fatal error: Allowed memory size of 33554432 bytes exhausted

Problem description:

When you upload photos, 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, depending on whether your hosting provider supports it.

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.

Solution 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 in 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.

 6. You do not have permission to browse this page (403 error)

Problem description:

When entering the username and password on the backend login page, I received this error: You are not authorized to view this page. (403 error)

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

Solution: Enable index.php

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

 1. Open the Control Panel.

 2. Open IIS management.

 3. Find the Default Homepage section.

 4. Add an index.php.

 7. Fatal error: Fatal error undefined function is_network_admin()

Problem description:

After you upgrade WordPress, a Fatal error undefined function is_network_admin() fatal error occurs when you try to log in.

Solution: Manual upgrade

This error is caused by WordPress upgrade failure. Try upgrading manually.

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

 2. Back up your current WordPress.

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

 4. Upload the wp-includes and wp-admin directories to the server via FTP.

5. Upload the contents of the new wp-content directory to the corresponding location on the server.

 6. Upload other files to the WordPress root directory.

 7. Delete the .maintenance file via FTP.

 8. Log in to WordPress again. You will see a link like this http://yourdomain/wordpress/wp-admin/upgrade.php. Follow the instructions.

9. Clear the cache and see if it takes effect.

For more details about manual upgrade, please see: Updating WordPress

 [page_break] 8. WordPress login interface 404 problem

Problem description:

 You are unable to log in to the WordPress backend and a 404 error is displayed.

Solution 1: Update the URL in the database.

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

 1. Log in to cPanel and click phpMyAdmin in Databases.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

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

 3. Enter wp_options and click Browse.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 4. Search siterul under the field option_name.

 5 Click Edit Field.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 6. Change the URL in the option_value option.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 7. Click Confirm at the bottom.

Solution 2: Change the folder properties.

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

 2. Right-click the wp-admin directory, and then click Folder Properties.

 3. Change the attribute value to 755 and then check whether the subdirectory has corresponding options.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 4. Click OK.

 5. Perform steps 1-4 in the wp-content and wp-includes folders.

 6. Open your browser and try to log in to WordPress. Then press Ctrl F5 to clear the cache.

 [page_break 9. After completing the automatic upgrade, the error Briefly unavailable for scheduled maintenance is displayed

Problem description:

If your site displays the Briefly unavailable for scheduled maintenance error message after completing the upgrade.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

Solution: Delete the .maintenance file.

When you upgrade, a file called .maintenance will be generated to remind visitors that the website is under maintenance. If the upgrade fails, this file will remain in the folder.

 Steps to delete .maintenance.

 1. Log in to the root directory of your blog via FTP.

 2. Find the .maintenance file.

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 3. Delete the .maintenance file in the root directory.

Once you solve this problem, you can proceed with the automatic upgrade again.

 10. Unable to delete plug-ins

Problem description:

You cannot delete a plugin in the WordPress control panel. Even after you delete the plugin's folder via FTP, you still can't delete it in the control panel.

Solution: Delete the plugin via SSH.

Your plug-in may have uploaded some hidden files to 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. Use SSH command to find the directory: wp-content/plugins/

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

Solutions to Common Errors in WordPress Blog Program_PHP Tutorial

 4. Use the rm directory name command to delete the plug-in.

Due to the extensive nature of WordPress, we can only list the solutions to these common problems for the time being. I hope it will be helpful to everyone~

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/978266.htmlTechArticleSolutions to Common Errors in WordPress Blog Program WordPress is the mainstream blog building platform. WordPress is arguably the most advanced weblog program in the world. The programs currently developed are...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!