PHP Error Log Viewer for ClassicPress

The PHP Error Log Viewer plugin brings your error log straight into your ClassicPress dashboard. Color-coding helps you to quickly scan even the longest of error logs. Or, just filter out the errors you don't want to see. No more wall-of-text error messages – this plugin turns your PHP error log into an incredibly useful display.

PHP Error Log Viewer Plugin for ClassicPress Screenshot 01

Frequently Asked Questions

  1. My error log is huge...can the plugin handle it?
    The plugin has been successfully tested with error logs up to 20Mb (100,000+ entries). With an error log that huge, it took about 15 seconds to finish rendering the (stylized) error log on the screen. However, for error logs with tens of thousand of entries (or less,) it only takes a second or two. Of course, your results will vary with your server configuration.

  2. Why don't I see the purge button?
    If your error log is not writable by web server, the Purge Error Log button will not appear in the interface.

  3. How big should my error log be?
    You should always aim to run a site that produces no notices, warnings, or errors. Your target file size for the error log should be exactly 0 bytes.

  4. How can I change the error colors?
    See the Styling section for specific details.

  5. Why are there sometimes more errors than stack traces?
    While many errors do produce a stack trace, some do not. This is the reason for the difference.

  6. My error log wasn't found? What now?
    If your error log isn't automatically detected by the plugin, you will see a screen that offers three possible solutions. Most likely, one of the solutions will work for you.

Screenshots

Built for Quick Reading
Built for Quick Reading – Error messages are separated nicely. Built-in color-coding and filtering allows you to quickly find what you need.


Changelog

  • 1.0.1 | 2019-08-17

    1. Fix issue that produces error message, "The plugin does not have a valid header"
  • 1.0.0 | 2019-08-16

    1. Initial release.

License

The PHP Error Log Viewer plugin is released under the General Public License.

Installation Requirements

  1. ClassicPress 1.0.0 or later
  2. PHP 5.6 or later

Manual Installation

  1. Download the zip file to your local computer
  2. Login to your ClassicPress website.
  3. Navigate to Dashboard > Plugins > Add New > Upload Plugin
  4. Upload the plugin zip file to your site
  5. Click to Install the plugin
  6. Click to Activate the plugin
  7. See the documentation for next steps

Standard Installation

  1. Login to your ClassicPress website.
  2. Navigate to Dashboard > Plugins > Add New
  3. Search for Code Potent or PHP Error Log Viewer
  4. Find the PHP Error Log Viewer plugin in the results
  5. Click to Install the plugin
  6. Click to Activate the plugin
  7. See the documentation for next steps

Note: This method will be available when the official ClassicPress plugin directory is ready.

Checksums

Checksums allow you to verify the integrity of the plugin file.

Coming soon!

Conflicts

There are no reported conflicts between the PHP Error Log Viewer plugin and other ClassicPress plugins or themes. If you experience any kind of problem or annoyance, please submit an issue if you have a GitHub account, or send an email!

Usage

Viewing the Error Log

Navigate to Dashboard > Tools > PHP Error Log to view the error log.

PHP Error Log Viewer plugin for ClassicPress


Filtering the Error Log

The checkboxes across the top of the display allow you to show and hide each of the various types of errors: Deprecated, Notice, Warning, Error, Stack Trace, and Other. In addition, the Date/Time checkbox can show or hide error meta data such as dates, times, timezones, and IP addresses to further improve readability. Tick your preferred boxes and click the Apply Filters button to update the display.

PHP Error Log Viewer plugin for ClassicPress


Refreshing the Error Log

When viewing the error log, you will find a button to Refresh Error Log at the right side of the page. Clicking this button has the same effect as clicking your browser's refresh button. The error log will be re-read and displayed fresh.

PHP Error Log Viewer plugin for ClassicPress


Purging the Error Log

When viewing the error log, you will find a button to Purge Error Log at the right side of the page. Clicking this button will purge all messages from the error log. A confirmation dialog prevents accidental deletion. If your error log is not writable by the PHP process, you will not see this button.

PHP Error Log Viewer plugin for ClassicPress

Settings

Error Filtering

The checkboxes at the top of the error log display allow you to choose which types of messages you want to see. Check any of the boxes and click the Apply Filter button to update the display.

  • Date/Time
    Check this box to show dates, times, and other meta data.
  • Notice
    Check this box to show non-critical PHP notices.
  • Warning
    Check this box to show non-critical PHP warnings.
  • Error
    Check this box to show critical PHP errors.
  • Stack Trace
    Check this box to show stack traces for critical errors. Note that not all critical errors will generate a stack trace.
  • Other
    Check this box to show any other errors that didn't meet the above criteria.

Widgets

There are no widgets associated with the PHP Error Log Viewer plugin. If you have an idea for a new widget, please send an email!

Shortcodes

There are no shortcodes associated with the PHP Error Log Viewer plugin. If you have an idea for a new shortcode, please send an email!

Filters

There are no filter hooks implemented in the PHP Error Log Viewer plugin at this time. If you have an idea for a new filter hook, please send an email!

Actions

There are no action hooks implemented in the PHP Error Log Viewer plugin at this time. If you have an idea for a new action hook, please send an email!

Styling

Using Custom Error Colors

To override the color-coding for the error messages and legend, copy the following styles into your theme's style.css file and make your changes there.

---

Thank You

Your feedback has been received. Please allow some time for your feedback to appear with the PHP Error Log Viewer plugin. Thank you!

Thank You

Your feedback has been received. Please allow some time for your feedback to appear with the PHP Error Log Viewer plugin. Thank you!

Share Your Experience

Had a great experience with the PHP Error Log Viewer plugin for ClassicPress? Share your thoughts and get a link back to your site! Emails are not shared or published.

Related Plugins