WordPress Logging Service
Undefined variable and constant (4 posts)

  1. Jason Judge
    Posted 3 years 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()?


  2. Jason Judge
    Posted 3 years 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.


  3. Jan Štětina
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • WordPress Logging Service
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.