WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Logging Service
Undefined variable and constant (4 posts)

  1. Jason Judge
    Member
    Posted 1 year ago #

    Two notices in the Dashboard->System Logs page:

    Notice: Undefined variable: show_new_info in /var/www/vhosts/.../wp-content/plugins/wordpress-logging-service/includes/admin-overview.php on line 150

    Notice: Use of undefined constant WLS_TXS - assumed 'WLS_TXS' in /var/www/vhosts/.../wp-content/plugins/wordpress-logging-service/includes/admin-overview.php on line 101 New log entries from all categories

    A quick grep of the code shows me that neither are defined anywhere, except that maybe $show_new_info was possibly originally extracted from wls_get_settings() in wls_show_severity_filter()?

    http://wordpress.org/extend/plugins/wordpress-logging-service/

  2. Jason Judge
    Member
    Posted 1 year ago #

    It does work otherwise, with these notices displaying in the log listing page (I have debug turned on).

    PS How does a PSR-3 wrapper for this logging plugin sound? I am thinking of making one for my own projects (WP plugins with composer/packageist/PSR-0 modules behind them) and could turn it into a wrapper plugin if it is helpful to others.

    https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md

  3. zaantar
    Member
    Plugin Author

    Posted 1 year ago #

    Your assumptions are correct, WLS_TXS is a typo, should be WLS_TXD (textdomain). I'm going to practically rewrite the plugin soon, so please be patient.

    As for the PSR-3 wrapper... that sounds very interesting. Thanks. I'll probably implement it as well.

  4. Jason Judge
    Member
    Posted 1 year ago #

    Thanks - fixed the typo in my installation. I'll leave this ticket open for you to close when you like, but there is nothing more for me to follow up.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.