Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.
Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://wordpress.org/support/article/debugging-in-wordpress/
You can also try this: 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 cannot access wp-admin, there are other ways to deactivate plugins: https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus
Jim
(@jamesgreat)
Hi @slaney25, hope you are doing well. I apologise for the issues that you had to face on your site due to the critical error and the frustration that followed when you tried fixing it.
This is a follow-up to check whether your website’s issue was fixed successfully.
Thanks,
Jim
Thanks everyone for their help the problem has been rectified there were 2 plugins causing the problem query monitor and mobile smart pro
Jim
(@jamesgreat)
Glad that the issue was fixed. Have a great day 🙂.