Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.
Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.
Thread Starter
Alanrh
(@alanrh)
Thank you for your response.
To clarify should I download & install the same version of WordPress that is being used (4.8.3) or the newest version? Second I know you stared delete all but, wp-config.php file & /wp-content/ directory. Would it be safer to save a copy of these 2 then reinstall them after installing the new WordPress or just leave them on the server during the reinstall?
Thanks again for the quick response.
To clarify should I download & install the same version of WordPress that is being used (4.8.3) or the newest version?
Download the latest 5.2.2, this will both upgrade you and it should fix the problem too.
Second I know you stared delete all but, wp-config.php file & /wp-content/ directory. Would it be safer to save a copy of these 2 then reinstall them after installing the new WordPress or just leave them on the server during the reinstall?
No, just leave the wp-config.php file and /wp-content/ directory, and delete everything else. Then upload the new files (except wp-config.php and /wp-content/ of course) around them.
I suppose, to be safe, backup first. 🙂 https://wordpress.org/support/article/wordpress-backups/