Home Website Building Knowledge Standard Post

Standard Post

WordPress 429 Too Many Requests Error Method for Updating Themes and Plugins

Recently, webmasters who installed WordPress on domestic servers have definitely encountered the 429 Too Many Requests error, unable to open WordPress sites. Installation failed: download failed. Too many requests prevents opening WordPress sites, making it impossible to...

Updated on September 21, 2020 About 8 minutes read
WordpPress 429 Too Many Requests错误更新主题插件方法

Recently, webmasters who have installed WordPress on domestic servers in China must have encountered429 Too Many Requests error, resulting in the inability to open the WordPress website.

429 Too Many Requests

Installation failed: Download failed. too many requestsUnable to open WordPress sites, you cannot normally update WordPress versions through the backend, nor download and update WordPress themes and plugins.

This article will share with youmethods for updating and downloading WordPress after encountering the 429 Too Many Requests error

If you want to learn about aWordPress installationfrom scratch, please refer to:WordPress Installation Tutorial_Server Environment Configuration Requirements_Failure Reasons

Causes of 429 Too Many Requests

In the HTTP protocol, the response status code 429 Too Many Requests indicates that the user has sent too many requests within a certain period, exceeding the „rate limit“.

A user asked on the WordPress forum whether the official blocked access from China. The official reply was that there is no block, but it triggered Nginx's rate limiting module.

Original link:https://wordpress.org/support/topic/is-wordpress-org-restricting-visits-from-china-region/

Unofficial rumors suggest that some traffic from China may have been attacking WordPress servers recently, triggering the CDN system's protection measures, resulting in the 429 Too Many Requests error limiting request frequency.

How to Update WordPress Version Under 429 Error

So, does that mean we have no way to update WordPress versions until the 429 Too Many Requests error ends?

Of course not, we can also use the followingtwo methods to update the WordPress version

Method 1: Download offline package for manual update

You can download the latest version of the WordPress installation package and manually update it yourself.

For downloading the latest version of the WordPress offline installation package, refer to this article:WordPress New Version Chinese Simplified Local Download

After downloading, the method for manually updating WordPress is:

  • ①. Extract the downloaded installation package and delete the wp-content folder inside;
  • ②. Use FTP to delete the wp-admin and wp-includes folders on the server;
  • ③. Upload the remaining local files to the server, overwriting all files;
  • ④. Log in to your WordPress website's Admin Dashboard to see if there is a request to update the database. If yes, update it; if not, the update is already complete.

Detailed upgrade methods can be found at:Several Methods for Automatic and Manual WordPress Updates

Method 2: Update using a Plugin

Update:Plugins can be directly usedWP Downgrade, you can arbitrarilyinstall old or new versions of WP

The blogger of I Love Water Boiled Fish wrote a plugin for Chinese download mirror. The plugin will automatically switch the download mirror to the URL specified in the plugin when you upgrade the Chinese version of WordPress. After the upgrade is complete, disable the plugin.

The plugin code is as follows:

<?php
/*
Plugin Name: WPJAM 中文下载镜像
Plugin URI: https://blog.wpjam.com/project/wpjam-basic/
Description: WPJAM 中文下载镜像
Version: 1.0
Author: Denis
Author URI: http://blog.wpjam.com/
*/
add_filter('site_transient_update_core', function($value){
	foreach ($value->updates as &$update) {
		if($update->locale == 'zh_CN'){
			$update->download	= 'http://www.xintheme.cn/download/wordpress-zh_CN.zip';
			$update->packages->full	= 'http://www.xintheme.cn/download/wordpress-zh_CN.zip';
		}
	}

	return $value;
});

Plugin Usage Method:

Save the above code as a PHP file, then upload it to the wp-content/plugins directory on the server. Enable the plugin in the backend and then click the update button.

You can also directlyclick here to downloadthe plugin file saved by Naiba, and directly upload the zip archive via the website backend to install, enable, and update the plugin.

Plugin Notes:

The download address provided in the plugin is not fast (it may time out during updates, causing failure). You can upload the installation package to your own server and modify the link to achieve fast downloads.

Method 3: Update using Code + Compressed Package

This method comes from the Long Xiao Tian Xia blog and is similar to method two, appearing even simpler and more convenient. It can alsoresolve429 Too Many Requests errorThe specific usage method is as follows:

  1. Download the WordPress installation package file and rename it to wordpress.zip
  2. Upload wordpress.zip to your website's root directory
  3. Copy the code below into the theme's functions file
  4. Click update in the Admin Dashboard
  5. After the update is complete, delete the function code
/**
 * 临时更改WordPress程序包地址以便WP在线更新成功 - 龙笑天下
 * https://www.ilxtx.com/how-to-update-wordpress-successfully.html
 */
function lxtx_site_transient_update_core( $value ){
    foreach ($value->updates as &$update) {
        $update->download = home_url( 'wordpress.zip' );
        $update->packages->full = home_url( 'wordpress.zip' );
    }
    return $value;
}
add_filter('site_transient_update_core', 'lxtx_site_transient_update_core');

If you don't know how to add code to the theme's functions file, you can use the following plugin for assistance.

Safe Method to Add Code to the functions.php File: Code Snippets


下载失败。 too many requests

How to Update Themes and Plugins Under 429 Error

429 Too Many RequestsThe error also prevents you from normally installing and updating themes and plugins from the website backend. Similarly, you can use manual update methods to update themes and plugins.

Method for Manually Updating WordPress Themes:

If a theme prompts you to update, download the new version of the theme's compressed package yourself and overwrite the original theme files via FTP. (You can also delete the old version of the theme first, then re-upload and install the new version via the backend.) When updating themes, remember to back up to avoid overwriting modified files.

Method for Manually Updating WordPress Plugins:

  • ①. Find a way to download the new version of the plugin installation package from the WordPress official website (use a proxy or a foreign server).
  • ②. Deactivate and delete the old version of the plugin from the backend (note if there is an option in the plugin settings to clear data upon deactivation).
  • ③. Upload and install the new version of the plugin via the backend (you can also consider directly overwriting via FTP; Naiba always uploads via the backend).

For detailed upgrade methods, please refer to:Manual Plugin Update_Methods for Manually Upgrading WordPress Plugins

Additionally, during the update process, you may encounter situations where the update fails and the website becomes inaccessible. In this case, you only need to delete the .maintenance file in the website's root directory. Refer to:Solutions for Failed WordPress Version or Plugin Upgrades

A More Perfect Solution for the 429 Error

429错误解决办法

1. Domestic users can directly installkill 429This plugin solves the 429 error when installing plugins.

2. UseEasy Theme and Plugin Upgradesthis plugin

3. Added a better plugin:WP China Yes

Proxy Download Service for New WP Theme/Plugin Installation Packages

If you cannot download the latest version of the WordPress installation package from the official WordPress website yourself, you can ask Naiba to help you download it. Join the group 774633089 and contact the group owner.

The above isResolve the 429 Too Many Requests ErrorSolutions for manually updating the version when the WordPress website cannot be opened. If you still have questions, you can join the group to discuss and exchange with more website administrators.

Rate this article post
Previous How to Install a WordPress Website on a Virtual Host Purchased from Taobao Continue reading content around the same timeline. Next What is robots.txt? The Correct WordPress robots.txt Writing Method and Generation Tool View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: