I resolved it by doing the following;
- Disable plugins:
- If you suspect that a plugin is causing the issue, you can disable all plugins by renaming the “plugins” folder in your WordPress installation. To do this, you’ll need access to your website’s files, either through your hosting control panel’s File Manager or an FTP client.
- Locate the “wp-content” folder and rename the “plugins” folder to something like “plugins_old.” This will deactivate all plugins.
- Try logging in to your WordPress admin panel. If you’re able to log in, you can then reactivate the plugins one by one to identify the problematic plugin.