Solutions to Common Errors in WordPress Blog Program

Time:2019-4-18

WordPress is the mainstream blog building platform. WordPress is the most advanced weblog program in the world. At present, most of the programs developed are based on its imitation. 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 about you.

Solutions to Common Errors in WordPress Blog Program

If you’re a WordPress user who likes to write a piece of code at random, or if you’re a user who likes to install plug-ins and change themes, you’ll understand that mistakes can’t be avoided. You will also understand how desperate you are when you get involved in an unforeseen mistake and fail to find a solution. In fact, most of the WordPress error problems can be solved. So when you encounter a mistake, don’t be anxious, because it is likely that the problem you encounter has been met by others and has been solved.

In today’s article, let’s take a look at the most common WordPress errors, and then share some solutions so that you can read the post without worrying and write a blog more happily.

1. Forgetting user password and email retrieval function does not work

Problem Description:

You lost your WordPress administrator password and tried to “forget the password” to fill in your username and email address. But no e-mail was received to reset the password.

Solutions to Common Errors in WordPress Blog Program

Here are two simple ways to reset your WordPress administrator password:

[page_break]

  Method 1: phpMyAdmin

1. If you are a cPanel space user, after login to cPanel, click phpMyAdmin under Database.

Solutions to Common Errors in WordPress Blog Program

2. Select your WordPress database. For example, Username_wrdp1

3. Find wp_users and click Browse

Solutions to Common Errors in WordPress Blog Program

4. Find your username and click Edit.

Solutions to Common Errors in WordPress Blog Program

5. Reset your password by writing new values in user_pass. Remember, there are case-sensitive.

Solutions to Common Errors in WordPress Blog Program

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

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

[page_breakMethod 2: Through FTP

1. Log in to your FTP account.

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

Solutions to Common Errors in WordPress Blog Program

3. Open functions. PHP and add the following line after the first <? Php:

  wp_set_password(‘YourNewPassword’,1);

Change the value of YourNewPassword into the password you want. One 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, delete that line of code.

  2. WordPress Control Panel (Dashboard) can not be displayed properly

Problem Description:

The CSS in the WordPress control panel was not displayed and the links on the page were messy.

Solutions to Common Errors in WordPress Blog Program

Solution 1: Ports and firewalls

Check that your network connection is through ports and firewalls. Some ports and firewalls are filtered into CSS, so where there is CSS, it will show abnormal. Try to clear cookies and caches from ports and firewalls, and then Ctrl + F5 reloads the page.

Solution 2: Upgrade your WordPress plug-in

If you have plug-ins to replace the default control panel, such as Admin Drop Down Menu and Lighter Menus, upgrade these plug-ins and disable them if they still don’t work.

  Warning: Cannot modify header information – headers already sent by

Problem Description:

After upgrading WordPress to a new version or installation, you encounter an error in your browser: Warning: Cannot modify header information – headers already sent by (output start at/path/blog/wp-config.php:34)

Solution: Delete the unnecessary spaces, blanks and other useless information in wp-config.php.

1. Download wp-config.php file through FTP

2. Open wp-cinfig.php

3. Remove all spaces in front of <? Php.

4. Make sure that the first field is <? PHP and <? PHP is on the first line and there are no spaces in the middle.

Solutions to Common Errors in WordPress Blog Program

5. Remove all spaces after?>.

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

Solutions to Common Errors in WordPress Blog Program

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

[page_break  4. WordPress blog page and control panel blank

Problem Description:

This error usually occurs when a new theme is installed or upgraded to a new version. Opening a blog is a blank page. This is also the case with the control panel, so there is no way to access the control panel.

Solutions to Common Errors in WordPress Blog Program

Solution 1: Rename the currently installed theme through FTP.

If you rename the currently installed theme folder, WordPress will be forced to automatically select the default theme and then load it properly.

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

Solutions to Common Errors in WordPress Blog Program

2. Destruct the currently installed theme folder. For example, name twentytwenty twenty-temp

Solutions to Common Errors in WordPress Blog Program

3. Log in to your WordPress background.

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

5. Check if your topic contains code that cannot be executed.

Solution 2: Reset Plug-in Folder through FTP

1. Find the wp-contents folder through FTP.

2. Rename the plugins folder plugins-temp

Solutions to Common Errors in WordPress Blog Program

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

4. Log in to the WordPress Control Panel again.

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

6. Check if any plug-ins are incompatible with the current WordPress.

[page_brea  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 host company supports it.

Solution 1: Edit php.ini

If you can edit the php.ini file, you can modify the memory_limit value directly on it.

  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 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 your notepad.

2. Insert the following code:

  memory_limit = 64M ;

3. Save as php.ini.

4. Upload to the wp-admin directory.

  6. You have no right to browse this page (403 error)

Problem Description:

You are not authorized to view this page. (403 error)

Solutions to Common Errors in WordPress Blog Program

Solution: Enable index.php

If your blog is installed on Windows Server, this is because IIS does not set the default home page to indexx. php.

1. Open the control panel.

2. Open IIS Management.

3. Find the default home page section.

4. Add an index. php.

  Fatal error undefined function is_network_admin()

Problem Description:

When 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 due to the failure of WordPress upgrade. Try upgrading manually.

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

2. Back up your current WordPress.

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

4. Upload wp-includes and wp-admin directories to the server through 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 by FTP.

8. Re-login to WordPress and 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, see Updating WordPress

[page_break]  8. WordPress Login Interface 404

Problem Description:

You can’t log in to the WordPress background and display 404 errors.

Solution 1: Update the URL in the database.

If you can enter phpMyAdmin, try to update the URL in the database.

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

Solutions to Common Errors in WordPress Blog Program

2. Select your WordPress database, such as Username_wrdp1.

3. Enter wp_options and click Browse.

Solutions to Common Errors in WordPress Blog Program

4. Search siterul under field option_name.

5 Click Edit Field.

Solutions to Common Errors in WordPress Blog Program

6. Change the URL in the option_value option.

Solutions to Common Errors in WordPress Blog Program

7. Click OK at the bottom.

Solution 2: Change folder properties.

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

2. Right-click the wp-admin directory, and then click the folder properties.

3. Change the attribute value to 755 and then check the subdirectory for options.

Solutions to Common Errors in WordPress Blog Program

4. Click OK.

5. Operate steps 1-4 in the wp-content and wp-include folders.

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

[page_break  9. Display Briefly unavailable lable for scheduled maintenance error after completion of automatic upgrade

Problem Description:

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

Solutions to Common Errors in WordPress Blog Program

Solution: Delete the. maintenance file.

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

Delete the steps for. maintenance.

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

2. Find the. maintenance file.

Solutions to Common Errors in WordPress Blog Program

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

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

  10. Cannot delete plug-ins

Problem Description:

You can’t delete a plug-in in the WordPress control panel. You can’t delete the plug-in folder in the control panel after you delete it through FTP.

Solution: Delete plug-ins through SSH.

Your plug-in may have uploaded hidden files to directories that are not visible under FTP.

If your blog is accessible via SSH:

1. Log on to your blog through SSH.

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

3. Display the entire folder with the command ls-al.

Solutions to Common Errors in WordPress Blog Program

4. Delete the plug-in with the RM directory name command.

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

Recommended Today

Big data Hadoop — spark SQL + spark streaming

catalogue 1、 Spark SQL overview 2、 Sparksql version 1) Evolution of sparksql 2) Comparison between shark and sparksql 3)SparkSession 3、 RDD, dataframes and dataset 1) Relationship between the three 1)RDD 1. Core concept 2. RDD simple operation 3、RDD API 1)Transformation 2)Action 4. Actual operation 2)DataFrames 1. DSL style syntax operation 1) Dataframe creation 2. SQL […]