WordPress.org

Forums

Better WordPress Recent Comments
[resolved] Too many notices with WP_Debug = true (6 posts)

  1. mayuxi
    Member
    Posted 2 years ago #

    Hello!

    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

    http://wordpress.org/extend/plugins/bwp-recent-comments/

  2. Khang Minh
    Member
    Plugin Author

    Posted 2 years ago #

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

  3. mayuxi
    Member
    Posted 2 years ago #

    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.

  4. Hilltopbug
    Member
    Posted 2 years ago #

    Mayuxi, I'm having the same issues, hopefully oddoneout updates this, :)

  5. douglascward
    Member
    Posted 1 year ago #

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

  6. mayuxi
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better WordPress Recent Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.