How to review WordPress website php version compatibility?

By default WP is very reluctant to show or display any errors. That’s inline with its strategy of “dumbing down” things of sorts. The configuration I use to monitor for errors is along the lines of this in wp-config.php: define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_DISPLAY’, false ); @ini_set( ‘display_errors’,’Off’ ); @ini_set( ‘log_errors’,’On’ ); @ini_set( ‘error_log’,’/home/user/logs/php_site_name.log’ … Read more

How to check if a core update, like 4.9.8 → 5.0, involves a database update (migration)?

So after some thinking I came up with this: Codex / WordPress Versions has Changelogs, but these seem to mention (recent) database upgrades implicitly, starting at 5.0. (Compare how Matomo explicitly states DB upgrades). Maybe this will be enough for future versions, here’s the thorough, cumbersome way that works for older versions, too: check db_version … Read more

Plugin Upgrade Strategy

This was recently discussed at length on the wp-hackers list. Here’s the thread: Will Activation Hook Be Executed During Plugin Upgradation? Quoting Otto from the list: The simplest method that would work everywhere would be simply to store the version number of the plugin somewhere (like in your options entry in the database), then compare … Read more

Interrupted Upgrade to 4.5.1

If you have access to your files via ftp, you should be able to upgrade WordPress manually. According to WordPress.org, you can do so by swapping out a few folders and files: Step 1: Replace WordPress files Get the latest WordPress zip (or tar.gz) file. Unpack the zip file that you downloaded. Deactivate plugins. Delete … Read more

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