Hi @Jonas vR ,
Thanks for the question and using MS Q&A platform.
“Critical Error” in WordPress within an Azure App Service
Turn on WordPress Debug Mode.
To identify the issue and to receive detailed error logs you need,
Connect to your App Service using SSH or Kudu (Advanced Tools).
Edit wp-config.php
and add or update these lines,
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);
Inspect the error messages in the debug log found at /wp-content/debug.log.
To see possible errors or issues,
Navigate to Azure Portal → Your App Service → Diagnose and solve problems.
App Service Logs and Container Logs will provide you with insights. Be sure to check both.
Issues with plugins or themes are the most common reason for the problem.
Rename the /wp-content/plugins/
folder to /wp-content/plugins-disabled/
to disable all plugins.
Now if the site works there is a plugin issue. Start enabling the plugins one by one until it stops working to find which one it is.
Do the same with your active theme. Instead of disabling it rename the folder while your theme is under /wp-content/themes/.
One should check if the environment is compatible with WordPress plugins.
Navigate to Azure Portal → App Service → Configuration → General Settings.
Make sure that the site and your plugins requirement for PHP version are matched.
Concerns might arise from the most recent git deployment.
Look into failed deployments in the Azure Deployment Center.
If necessary, roll back to a previously working commit.
https://learn.microsoft.com/en-us/azure/app-service/quickstart-wordpress
https://learn.microsoft.com/en-us/azure/app-service/overview-wordpress#what-are-the-limitations-of-wordpress-on-app-service
https://azure.microsoft.com/en-us/blog/wordpress-troubleshooting-techniques-on-azure-websites/
let me know if you have any further assisstences.
If the logs show a specific error, let me know, and I’ll help troubleshoot further.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.