How to add new theme to running website

If I got you correctly, WP Theme Test is such a plugin that can assist you. In my case I take the whole live site in localhost, by copying the whole WordPress installation and its database, and then test any new theme on it (or any modification to existing theme). If the local test passed, … Read more

Fresh new install or keep old version

There’s nothing about moving a site and/or “purging” and re-installing a large PHP application that will “clean” anything or have any impact on performance. The things that matter regarding performance when going to a new host: Database settings and tuning. PHP settings, especially if you can to to PHP 7 and run PHP-FPM with proper … Read more

Error updating WP-CLI

First of all, locate your installation of WP-CLI. If you’re using Composer you can list all globally installed packages on the command line like this: composer global show Then update the WP-CLI composer package: composer global update wp-cli/wp-cli If you’re using Homebrew, you can list all installed packages on the command line like this: brew … Read more

4.9.5 broke site behind load balancer, forwards to localhost [closed]

with some thanks to @Pabamato, I was able to work around this and update to 4.9.5 by changing my wp-config directives to: define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘SERVER_NAME’]); define(‘WP_HOME’, ‘https://’ . $_SERVER[‘SERVER_NAME’]); And also adding a param to my nginx conf to properly account for variable server names: fastcgi_param SERVER_NAME $host; without both of the above, my … Read more

WP 5 upgrade and ALTER TABLE wp_post … post_password

Maybe I’m blind or I’m overlooking something, but… I don’t see any tickets related to that subject in any of these releases: https://core.trac.wordpress.org/query?status=closed&milestone=5.0&group=component&order=priority https://core.trac.wordpress.org/query?status=closed&milestone=5.0.2&group=component I also don’t see any DB operations in code: https://core.trac.wordpress.org/browser/tags/5.0.2/src/wp-admin/includes/upgrade.php#L1820 https://core.trac.wordpress.org/browser/tags/5.0.2/src/wp-admin/includes/upgrade.php#L1946 So I don’t think that these ALTERS come with WP. Maybe some plugin (or theme) is responsible for this. If … Read more

Check for files and database integrity

From development point of view the most practical way to detect and locate changes is version control – comparing against SVN/Git checkout of core or use such checkout directly. However there are also plugins around that verify files against set of hashes. I think Sucuri Security recently got such feature. The practical limitation of them … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)