Fix wordpress admin can’t update and database error

Env: Hosted on VPS Debian9 PHP7.3 + Nginx 1.6

Fix admin cant update wordpress

// wp-config.php

define('DISALLOW_FILE_MODS',false); // Set to false

Jetpack blocked your IP

// wp-config.php
define('JETPACK_IP_ADDRESS_OK', '162.158.0.0');

Force disable wordpress cache

// wp-config.php
define( 'WP_CACHE', false );

WordPress fix database error

// wp-config.php
define('WP_ALLOW_REPAIR', true);

// Go to ur site with following URL
www.yourwebsite.com/wp-admin/maint/repair.php

Force URL

// wp-config.php
define('WP_HOME','https://www.xxx.com');
define('WP_SITEURL','https://www.xxx.com');

Photo by Eugen Str on Unsplash