Support » Plugin: WordPress Logging Service » Undefined variable and constant

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Plugin Author Jan Štětina

    (@zaantar)

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined variable and constant’ is closed to new replies.