This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you can install plugins, install “Health Check”: https://wordpress.org/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for JUST you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time. See https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/ or https://rankmath.com/kb/check-plugin-conflicts/ for more information.
See http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
Thread Starter
somto
(@somto)
@sterndata thanks for your response
I just did what you suggested, I installed twenty-twenty theme and enabled troubleshooting mode; my theme was automatically switched to twenty-twenty and all plugins disabled but the error is not resolved
Thread Starter
somto
(@somto)
From the look of things, it means that the error is not caused by my theme nor plugins
OK. let’s try a manual reinstall of WordPress. (You can skip the “disable all plugins” step.) https://wordpress.org/support/article/updating-wordpress/#manual-update
Thread Starter
somto
(@somto)
@sterndata thank you once again
I have done all the steps down to no.7 which says:
“Upload all new loose files from the root directory of the new version to your existing WordPress root directory.”
But, it’s not clear to on what was instructed there.
Please could you throw some light
upload all the files and subdirectories created when you unzipped wordpress locally.
Thread Starter
somto
(@somto)
But the steps earlier highlighted the files to be deleted and replaced so, uploading all the subdirectory and files will overwrite my files including wp-content folder
“the loose files” refers to the files in the root of your site:
index.php wp-blog-header.php wp-cron.php wp-mail.php
license.txt wp-comments-post.php wp-includes wp-settings.php
readme.html wp-links-opml.php wp-signup.php
wp-activate.php wp-config-sample.php wp-load.php wp-trackback.php
wp-admin wp-content wp-login.php xmlrpc.php
Your wp-contents content will not be removed.
Thread Starter
somto
(@somto)
@sterndata I now have a clue thanks a lot
Let me implement it right away
Thread Starter
somto
(@somto)
I have all that, cleared my cache both on browser dashboard, but the problem still persist
What version of PHP are you using?
Thread Starter
somto
(@somto)
Wao I changed my php version from 7.4-bx-optimized to version 7.4 and everything worked.
@sterndata thanks a lot for this great support