Hello @abdulazizladan
It seems the new plugin/theme that you have installed on your site is causing problems, you can use the WordPress built-in recovery mode to bring the site back online and investigate further or try to reinstall the Divi theme, as it might be broken during the installation.
Please check your site admin email to see if you have received an email with the recovery link, if you can’t find the link, please take a look at this article to learn moreabout how to enable recovery mode:
https://www.wpbeginner.com/wp-tutorials/how-to-use-wordpress-recovery-mode/
Best Regards,
Amin
Thank you. I am however unable to even get into the wordpress admin panel.
I get this error instead: “There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.”
Also, I have not received any mails in the admin email.
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
Hey @abdulazizladan,
Accessing the site’s error logs will help you pinpoint the cause of the critical error. To do this, you need to access the site’s filesystem via an SFTP or FTP, and locate the wp-config.php file. Add these lines of code to the wp-config.php file before the line /* That's all, stop editing! Happy blogging. */.
define( 'WP_DEBUG_LOG', true );define( 'WP_DEBUG_DISPLAY', false );
Also, change the define( 'WP_DEBUG', false ); to define( 'WP_DEBUG', true );. This line should be above /* Add any custom values between this line and the "stop editing" line. */
Trying to log in again to the admin dashboard, this should generate a debug.log file in your wp-content folder. This file should show you what’s causing the issue. If you are having trouble understanding the contents of this file. Kindly share it in your next response, and we will be able to guide you further.
This guide could help you gain clarity when debugging in WordPress: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/.
Additionally, try to ask your hosting provider for support to help you access the error logs. They could also help you make changes to the wp_config.php file, and in understanding the issue.
Hope this helps.
Cheers
Jim
(@jamesgreat)
Hi @abdulazizladan, this is a follow-up to check whether you managed to follow the instructions you were given above to restore your site.
If not, please feel free to reply again and we’ll help you out.
Cheers,
Jim