Title: error happens.
Last modified: May 2, 2020

---

# error happens.

 *  Resolved [bbpressyzh](https://wordpress.org/support/users/bbpressyzh/)
 * (@bbpressyzh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/)
 * Undefined variable: exclude_filter in plugins/mycred/includes/classes/class.query-
   leaderboard.php on line 663
 * How can I fix it?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * (@wpexpertsio)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12775969)
 * Hi [@bbpressyzh](https://wordpress.org/support/users/bbpressyzh/),
    Thank you
   for contacting us, Can you please let me know where you are viewing this warning
   is it appearing by adding the shortcode in myCred leaderboard widget?
 *  Thread Starter [bbpressyzh](https://wordpress.org/support/users/bbpressyzh/)
 * (@bbpressyzh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12776007)
 * Nope, I only use leaderboard shortcode.
 *  Plugin Author [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * (@wpexpertsio)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12778699)
 * Hi [@bbpressyzh](https://wordpress.org/support/users/bbpressyzh/),
 * Can you please share the exact shortcode that you are using also please let us
   know the version of PHP / myCred as we are unable to replicate this issue on 
   our end.
 * Thanks!
 *  Thread Starter [bbpressyzh](https://wordpress.org/support/users/bbpressyzh/)
 * (@bbpressyzh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12781994)
 * [mycred_leaderboard number=30 current=1 wrap=””]
 *  [/mycred_leaderboard]
    <table> <thead> <tr> <th>#</th> <th>User</th> <th>Rank
   </th> <th>Badge</th> </tr> </thead> <tbody><tr> <td>%position%</td> <td>%avatar%
   <br> %user_profile_link%</td> <td>%rank_logo% <br> %cred_f% </td> <td>%badges%
   </td> </tr></tbody> </table>
 * PHP　7.3.16
 *  Plugin Author [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * (@wpexpertsio)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12783023)
 * Hi [@bbpressyzh](https://wordpress.org/support/users/bbpressyzh/),
    We are unable
   to replicate this issue on our staging environment it would be great if you can
   share the steps to reproduce this issue.
 *  Thread Starter [bbpressyzh](https://wordpress.org/support/users/bbpressyzh/)
 * (@bbpressyzh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12783047)
 * I just met this error when I visited the website and I checked the error logs
   it shows
    Undefined variable: exclude_filter in plugins/mycred/includes/classes/
   class.query-leaderboard.php on line 663
 * So I’m here.
 *  Plugin Author [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * (@wpexpertsio)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12789012)
 * Hi [@bbpressyzh](https://wordpress.org/support/users/bbpressyzh/),
    Thanks for
   reporting this issue we will be adding this fix in the next upcoming update.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘error happens.’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=2544137)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [WPExperts.io](https://wordpress.org/support/users/wpexpertsio/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/error-happens/#post-12789012)
 * Status: resolved