Solution 1:
The issue is caused by a mismatch between the WordPress database version and the version defined in your settings. To fix it, follow these steps:
- Open the file /wp-includes/version.php.
- Locate the value of $wp_db_version and make a note of it.
- Open your database and check the wp_options table.
- Find the db_version value:
SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';
- Ensure both values match. If needed, update the value in version.php — do not change the database value.