Wordpress on App Service just stopped working

Jonas vR 60 Reputation points
2025-02-05T09:23:30.48+00:00

We run a Wordpress site on an Azure App Service.
We sync some themes and custom plugins through a git repo.
The last sync was on 21st January.
Last night it just stopped working and is showing
Screenshot 2025-02-04 at 21.43.20

We did not touch it in any way.

Restarts and deployments could not fix it.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,262 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shree Hima Bindu Maganti 2,975 Reputation points Microsoft Vendor
    2025-02-06T16:55:48.9866667+00:00

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.