Skip to content
WP Cloud
WP Cloud
    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management
    • PanelAlpha Integration: White-Label WordPress Control Panel for Hosts
    • EasyEngine Panel Integration: Visual WordPress Management for WP Cloud
    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
    • Pressable
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Impressive Hosting
    • Blog
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗
  • Solutions

    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Featured Partners

    Features

    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management

    Integrations

    • PanelAlpha Integration
    • Easy Engine Panel Integration

    Resources

    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
  • Case Studies
    • PressableA case study about how WP Cloud supports Pressable to power millions of page views daily.
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Newspack
    • Inverse Paradox
  • Insights
    • Podcast
    • BlogWP Cloud blog page with latest news and updates about the platform.
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗

Browse

    • WP Cloud platform overview
    • Onboard and launch with WP Cloud
    • WP Cloud Partner Portal
    • Get support from WP Cloud
    • WP Cloud glossary
    • Manage and secure API keys
    • Client SSH
    • WP Cloud API quick start
    • Webhooks
    • Run bulk tasks across sites
      • Manage site domains and aliases
      • Domain verification records
      • TLS certificates
      • Manage custom TLS certificates
      • Cloudflare and WP Cloud
    • Clone a site
    • Configure resources, site type, and billing with site meta
    • Delete a site
    • Persistent data
    • Staging sites
    • Migrate a site to WP Cloud
      • SSH and SFTP access models
      • Client SSH
      • User SSH and SFTP access
      • Database credentials
      • phpMyAdmin
      • ABSPATH
      • Default wp-config.php
      • Site constants
      • Configure redirects and headers with custom-redirects.php
      • Akismet and Jetpack
      • Blocked and unsupported plugins
      • PHP lifecycle and supported versions
      • Symlinks and managed software
      • WordPress versions
      • Install Composer and WP-CLI packages
      • Manage platform software with WP-CLI
      • Useful WP-CLI commands
    • Transactional email
    • WordPress multisite
    • Cron scheduling
    • Decoupled and headless WordPress
    • Repair Yoast indexables
      • Page Cache
      • Edge Cache
      • Object Cache
      • Image transformation
      • Offload image sub-sizes
    • Configure lightweight 404s for static files
      • DDoS protection
      • Defensive Mode
      • Rate limiting
      • Network and web application firewalls
      • Bot protection
      • Password protection
      • HTTP and security headers
      • PHP filesystem access permissions
      • Scan a site for malware
    • Backups overview
    • Create an on-demand backup
    • Restore a backup
    • Jetpack backups
      • Error logs
      • Web server logs
    • Metrics
    • Application performance monitoring
    • Automated failover
    • IP ranges
    • Origin and edge servers
    • Server specifications and settings
    • EasyEngine integration
    • PanelAlpha integration
      • White labelling and co-marketing WP Cloud
      • WP Cloud logos
      • Terms of Service & Compliance
      • Prohibited content
      • Copyright infringement and takedown notifications
    • WP Cloud billing
    • WP Cloud for agencies and site networks
    • WP Cloud partner support options
    • Troubleshoot Page and Edge Cache
    • Troubleshoot HTTP 429 and 599 errors
    • WP Cloud HTTP status codes
    • Troubleshoot site performance
    • Cache slow database queries
    • Troubleshoot duplicate core files, wp-config.php, and wp-admin 403 errors
    • Troubleshoot email delivery
    • Troubleshoot PDF thumbnail generation
    • Troubleshoot TLS certificate provisioning
Documentation/Monitoring and logs/Logs/Error logs

Error logs

LAST UPDATED

3 months ago

    Partners and their customers should use WP Cloud’s PHP error logging instead of WordPress core debug logging for PHP error events. Configuring WP_DEBUG_LOG or PHP log_errors can interfere with the automated, API-retrievable logging WP Cloud provides and can create large log files.

    WP Cloud records PHP errors for every site. Partner developers and support teams can retrieve recent errors through the WP Cloud API, inspect the site’s log file over SSH or SFTP, or use WP-CLI.

    Retrieve error logs through the API

    The Get Site PHP Error Logs endpoint accepts an Atomic Site ID or domain and a required start and end time range. Both values can be Unix timestamps or date strings accepted by PHP’s strtotime() function. Logs are guaranteed for 28 days; an earlier start time may return incomplete data.

    The endpoint supports pagination, ascending or descending sort order, and severity filters for User, Warning, Deprecated, and Fatal error. A successful response includes each error’s message, severity, file, line, timestamp, and Atomic Site ID. Error messages and file paths can expose customer or application details, so restrict access and redact them before sharing.

    Read the severity, message, file, and line together to identify the type and location of an error. No single field identifies the complete cause.

    When an error occurs during a slow request, compare the same time range with Metrics and reproduce the request with application performance monitoring (APM) enabled. The error log identifies the PHP event, while the APM trace shows the application work around the captured request.

    The Insights section in the WP Cloud Partner Portal can also help partner support teams inspect site behavior before retrieving a specific log range.

    Read the error log on the site

    WP Cloud writes PHP errors to /tmp/php-errors. Partner developers and support teams can read this file through SSH or SFTP access.

    WP Cloud also provides the wp php-errors command. It returns the last 100 errors by default. Use --limit to request a different number:

    wp php-errors --limit=25

    Avoid conflicting WordPress debug logging

    Do not configure WordPress core debug logging for routine PHP error collection on WP Cloud. Use the platform error log, API endpoint, or wp php-errors command instead.

    If a short investigation specifically requires WordPress debug logging, locate the existing debug constants in wp-config.php:

    if ( ! defined( 'WP_DEBUG' ) ) {
        define( 'WP_DEBUG', false );
    }Code language: JavaScript (javascript)

    Replace that block with the following configuration. WordPress then writes events to a separate /wp-content/debug.log file:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );Code language: JavaScript (javascript)

    Important: Setting WP_DEBUG_LOG or enabling PHP log_errors with ini_set() can conflict with WP Cloud’s platform logging, cause some errors to be absent from the API error log, and create a large log file.

    For short, controlled browser debugging, PHP error display can also be enabled:

    ini_set( 'log_errors', 'On' );
    ini_set( 'display_errors', 'On' );
    ini_set( 'error_reporting', E_ALL );Code language: JavaScript (javascript)

    Do not display PHP errors to visitors on a production site. Error output can expose file paths, code details, and other sensitive information. Remove temporary debugging changes after the investigation.

    Understand repeated and missing errors

    WP Cloud condenses repeated messages as Repeated x more times. Each site receives two error-log message allocations per second and can bank up to 100 allocations. Messages above that allowance are skipped and represented by a message such as Skipped x error log messages due to rate limiting.

    If expected errors are missing, first check for custom WP_DEBUG_LOG or log_errors settings. Those settings can prevent some platform-level error logging even when WordPress writes its own debug file.

    Compare the API response, wp php-errors, and /tmp/php-errors over the same timestamp range. An empty API or portal result does not prove that no PHP error occurred. If the file contains an error that the API does not return, preserve the event time and time zone, API filters, sort order, and result limit before changing the logging configuration.

    Previous Jetpack backups
    Next Web server logs

    Related Guides

    • Web server logs

      Retrieve WP Cloud origin web server logs and use Metrics for requests served at the…

      2 Min.

      READ

    On this page

      Contact support

      Contact us with Support issues and questions related to WP Cloud, the WP Cloud Atomic API, API-key IP allow list changes, Station, and more.

      Check the FAQs

      Have questions? Please visit our FAQ to learn more.

      An Automattic venture

      Work With Us

      Press

      Privacy Policy

      © 2021-2026 Automattic Inc.

      Notifications