Support » Plugin: Better WordPress Recent Comments » Too many notices with WP_Debug = true

  • Resolved mayuxi



    First of all, thanks for the good plugin! I’m developing a custom theme for my project, and wanted to use this plugin for enhanced comment show up. But with WP_Debug = true it give many PHP notices. May be it’s good idea to fix them. Here is what I got:

    [on the top of every page]

    Notice: Use of undefined constant BWP_RC_INSTANCES – assumed ‘BWP_RC_INSTANCES’ in /wp-content/plugins/bwp-recent-comments/includes/class-bwp-recent-comments.php on line 188

    Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /wp-includes/functions.php on line 2944

    [in sidebar, before the widget]

    Notice: Undefined variable: prev_str in /wp-content/plugins/bwp-recent-comments/includes/class-bwp-recent-comments.php on line 44

    Notice: Undefined variable: next_str in /wp-content/plugins/bwp-recent-comments/includes/class-bwp-recent-comments.php on line 44

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Khang Minh


    Are you including BWP RC as part of your project or just use it normally as a plugin?

    I’m using it as a plugin. But in my theme, I put BWP RC call function inside the sidebar (with if function_exists check), so if your plugin active, it will shown in my theme automatically. But with debugging mode on – it gives many notices.

    Mayuxi, I’m having the same issues, hopefully oddoneout updates this, 🙂

    Were there any responses to this? I’m having the same issue.

    Not, so far. I gave long time ago and made my own recent comment function and don’t use this plugin anymore.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Too many notices with WP_Debug = true’ is closed to new replies.