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

Single Template for Custom Post Type stops working after WordPress 5.4 update

Nothing changed in WP 5.4 regarding singular post types. The template hierarchy remains the same. E.g for a post type named book WP will try to load the first file it finds in this list: {selected-custom-template}.php single-book-{slug}.php single-book.php single.php singular.php index.php Your problems cause is elsewhere, if you’ve followed the standard approach to templates you … Read more

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