How to fix a login issue after WordPress Multisite split

The slave installation will lose users

wp user list

| ID | user_login | display_name | user_email | user_registered | roles |

And you won’t be able to create new admin user because you don’t have appropriate MySQL tables

wp user create admin [email protected]
Read the rest

How to change WordPress site URL and home URL using wp-cli tool

To check site url:

wp option get siteurl

To update your website’s URL:

wp option update home ''
wp option update siteurl ''

This will update to MySQL records “home” and “siteurl

To run in-deep updates read the following article: the rest

How to reinstall broken WordPress plugin using wp-cli

If you cannot execute wp-cli command due to the error generated by one of your plugins


wp plugin status


Warning: include_once(/home/username/public_html/subdomains/ failed to open stream: No such file or directory in /home/username/public_html/subdomains/ on line 3


Just use –skip-plugins parameter along with –force

As result you will get:

wp plugin install woocommerce --skip-plugins --force

 … Read the rest

How to fix broken WordPress Elementor plugin

First of all create a backup of your website files/folders/database

cd ~/public_html

Rename broken plugin’s folder:

mv wp-content/plugins/elementor wp-content/plugins/elementor_old

Don’t worry, currently all settings are presaved in your database.

Now do reinstall of the Elementor plugin using wp-cli with –force:

wp plugin install elementor --force

Should be ok now!… Read the rest

WordPress default index.php file

Short command:

curl -s > index.php


 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 * @package WordPress

 * Tells WordPress to load the WordPress theme and output it.
Read the rest