Temporarily enable PHP warnings

 

Overview

This article explains how to temporarily enable PHP warnings in your website's error log.

Background

PHP warnings and deprecated notices are hidden by default, so error logs only show critical errors. However, you can temporarily enable these hidden warnings to allow further troubleshooting of a website.

Understanding the messages displayed

The following table provides information on error messages that appear after you enable PHP warnings.

DreamHost recommends upgrading to PHP 7.4+ to benefit from better error handling and visibility.

PHP version Default errors displayed Messages displayed after enabling PHP warnings
7.4+

PHP Fatal Errors

  • PHP Deprecated
  • Notices
  • Strict messages
  • Warnings
7.3 or lower None
  • PHP Fatal Errors
  • PHP Deprecated
  • Notices
  • Strict messages
  • Warnings

Enabling PHP warnings

To temporarily enable PHP warnings in a website's error log:

  1. Navigate to the Manage Websites page.
  2. Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
    • If in Grid view, click the Manage button at the bottom of the website box.
    • If in List view, click the Manage button at the far right of your domain name.
  3. Click the Settings tab.
  4. On the Web Options row, click the Modify button.
  5. Click the toggle to the right of Temporarily Enable PHP Warnings to enable.

PHP warnings are visible for a period of 7 days and are then disabled automatically.

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?