Hot answers tagged

8 votes
Accepted

Updating WordPress core with zero downtime - I mean zero

There is no general solution to this problem. Your solution will be specific to your situation, and unusable for many other users, and vice versa. All with their own varying tradeoffs. For example, ...
  • 54.4k
6 votes
Accepted

Updates for a private plugin?

Since Wordpress v5.8, it is a lot simpler to create yourself a basic version of custom plugin update functionality. Step 1 Create JSON file on your server. It will contain info about latest version ...
  • 176
5 votes
Accepted

Custom Wordpress Plugin will install new and not update

A plugin is treated as the same as another plugin if it has the same directory name. That's it. If your zip file contains the plugin files then the zip filename will be used as the directory name. If ...
5 votes

Updating WordPress core with zero downtime - I mean zero

Assuming you have ssh access. The "poor man's solution" would be to create a directory with the new code, e.g. new_code and run mv code_dir code_dir_old && ln -s new_code code_dir ...
  • 391
4 votes
Accepted

Why does this code snippet create a critical error on my site?

On this line in bulk_process_status_printed(): 'ids' => join( $_REQUEST['post'], ',' ), you've got the arguments backwards: it should be join(separator, array): 'ids' => join( ',', $_REQUEST['...
  • 3,653
4 votes

Updating WordPress core with zero downtime - I mean zero

The first step is to use a load balancer. You should have one in any case for any critical site, and have two "application" servers behind it even if you do not expect major traffic spikes, ...
  • 22.9k
4 votes

Updating WordPress core with zero downtime - I mean zero

Thomas' answer is good, but repeating it will result in strangely nested directories. I'd like to expand on it to give a full recipe on the poor man's solution using ssh (and also scripts): One often-...
  • 141
2 votes

WordPress 5.5 AutoUpdate schedule

I have not found a way to change the frequency that is why I use WP-CLI for updating WordPress, plugins, themes and language files. Anyway I prefer to do it scheduled on a defined time e.g. nightly. ...
  • 21
2 votes

Update custom plugin with WP-CLI

You would implement this: https://make.wordpress.org/core/2021/06/29/introducing-update-uri-plugin-header-in-wordpress-5-8/ First you would add a Update URI: header to your plugin with a custom ...
  • 54.4k
2 votes
Accepted

pre_set_site_transient_update_plugins not updating

I ran across this a few weeks ago with a client site - maybe this will help. /** * Debug Pending Updates * * Crude debugging method that will spit out all pending plugin * and theme updates for ...
2 votes
Accepted

Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme

Do not, under any circumstances, edit core WordPress files. The bug is not in WordPress. If it were the proper way to handle such a bug is not to edit WordPress. The right way is to downgrade PHP to a ...
2 votes
Accepted

Cannot update plugin

Your 'uploaded-plugin'.zip must contain all your plugin files in subdirectory named as your plugin subdirectory (in example "my-plugin").
  • 106
1 vote

pre_set_site_transient_update_plugins not updating

Tutorial you are using is 7 years old, I wouldn't bother wit it as it is probably not fully compatible with latest WP-Core and auto-updates. I'm using free (MIT license) and regularly maintained ...
  • 106
1 vote

Updating WordPress core with zero downtime - I mean zero

On my WP host which is a typical VPS where I have root access, I run WP using the official Docker image (wordpress:fpm) and an Nginx in front of it. WP files (wp-content) are bind-mounted from the ...
  • 121
1 vote

Are custom tables in the database overwritten when WordPress is updated to new versions?

During a WP 'core' update that happens to modify the database, I believe that there is no 'overwrite' of tables or removing tables in the database. If you add a new table to the database, that table ...
1 vote

Elementor\Scheme_Typography' not found

Scheme_Typography is deprecated. Use \Elementor\Core\Schemes\Typography instead https://forum.elementor.com/development-24/deprecated-elementor-scheme-typography-solved-sure-9919
  • 121
1 vote

How best to handle database version dependence (from $wp_db_version)

I sorted this out. It looks like the core team rolls out new versions of the database with their beta program. So, it's plenty easy to get advance warning. And, the database upgrades live in wp-admin/...
  • 451
1 vote

WP-Admin shows (1) update but there is no update for plugin, theme or Wordpress

I noticed this on a few of the sites we manage, and the fix for us was updating translations from the WP Updates page. After scrolling all the way to the bottom and clicking "Update Translations,&...

Only top scored, non community-wiki answers of a minimum length are eligible