Title: WP_DEBUG messages
Last modified: May 18, 2020

---

# WP_DEBUG messages

 *  Resolved [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [6 years ago](https://wordpress.org/support/topic/wp_debug-messages-5/)
 * CMB2 seems to issue a lot of debug warnings when WP_DEBUG is turned on. I have
   some users who insist on running with WP_DEBUG and then wind up slamming my plugin
   in reviews because it’s generating warnings. Just wanted to ask that you consider
   addressing those warnings, because they are confusing some users and negatively
   affecting ratings. Thanks!

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [6 years ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12855139)
 * Can you provide some examples of the warnings as well as some example code for
   how you’re setting things up using CMB2? Would love see how far up the chain 
   they originate from, so we can best assist in where things need addressed.
 *  Thread Starter [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [6 years ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12855613)
 * Here’s a dump from one user:
 * Seamless Donation Form 4/27/2020
 * WP_DEBUG LOG
 * [27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined index: type in /home/avpusaor/
   public_html/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.
   php on line 1544
    [27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined index: type
   in /home/avpusaor/public_html/wp-content/plugins/seamless-donations/library/cmb2/
   includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined
   index: type in /home/avpusaor/public_html/wp-content/plugins/seamless-donations/
   library/cmb2/includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice:
   Undefined index: type in /home/avpusaor/public_html/wp-content/plugins/seamless-
   donations/library/cmb2/includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC]
   PHP Notice: Undefined index: type in /home/avpusaor/public_html/wp-content/plugins/
   seamless-donations/library/cmb2/includes/CMB2.php on line 1544 [27-Apr-2020 17:
   33:54 UTC] PHP Notice: Undefined index: type in /home/avpusaor/public_html/wp-
   content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line 1544[
   27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined index: type in /home/avpusaor/
   public_html/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.
   php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined index: type
   in /home/avpusaor/public_html/wp-content/plugins/seamless-donations/library/cmb2/
   includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined
   index: type in /home/avpusaor/public_html/wp-content/plugins/seamless-donations/
   library/cmb2/includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice:
   Undefined index: type in /home/avpusaor/public_html/wp-content/plugins/seamless-
   donations/library/cmb2/includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC]
   PHP Notice: Undefined index: type in /home/avpusaor/public_html/wp-content/plugins/
   seamless-donations/library/cmb2/includes/CMB2.php on line 1544 [27-Apr-2020 17:
   33:54 UTC] PHP Notice: Undefined index: type in /home/avpusaor/public_html/wp-
   content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line 1544[
   27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined index: type in /home/avpusaor/
   public_html/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.
   php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined index: type
   in /home/avpusaor/public_html/wp-content/plugins/seamless-donations/library/cmb2/
   includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice: Undefined
   index: type in /home/avpusaor/public_html/wp-content/plugins/seamless-donations/
   library/cmb2/includes/CMB2.php on line 1544 [27-Apr-2020 17:33:54 UTC] PHP Notice:
   Undefined index: type in /home/avpusaor/public_html/wp-content/plugins/seamless-
   donations/library/cmb2/includes/CMB2.php on line 1544
 *  Thread Starter [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [6 years ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12855619)
 * And here’s another. Looks like it’s all CMB2.php, line 1544:
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 * Notice: Undefined index: type in /home/zi79vakxqsjq/public_html/arrazzaqislamiccenter.
   org/wp-content/plugins/seamless-donations/library/cmb2/includes/CMB2.php on line
   1544
 *  Thread Starter [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [6 years ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12881724)
 * Any insight on this? Got a couple of freaked out support calls.
 *  Thread Starter [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [6 years ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12950523)
 * Hello? I keep getting complaints and it’s somewhere in your code.
 *  [oludarebello1](https://wordpress.org/support/users/oludarebello1/)
 * (@oludarebello1)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12974493)
 * I’m also experiencing the same problem; the issue seem to be coming from seamless-
   donations plugin
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 12 months ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12974577)
 * Sorry, was not seeing notifications for your replies [@dgewirtz](https://wordpress.org/support/users/dgewirtz/).
   My apologies there.
 * From the looks of it, it’s coming from this spot:
 *     ```
       protected function field_actions( $field ) {
       		switch ( $field['type'] ) {
       ```
   
 * Specifically the switch statement. This would be becase apparently the $field
   array does not have a type key specified in some way.
 * With that said, it looks like a field isn’t being set up properly and specifying
   the type of field to use. Hard to say which one though. Somewhere in the chain
   of using `add_field` and `add_group_field` isn’t quite right. At best, we could
   do something like an isset() check but beyond that, not sure what to say at the
   moment.
    -  This reply was modified 5 years, 12 months ago by [Michael Beckwith](https://wordpress.org/support/users/tw2113/).
 *  Thread Starter [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12977212)
 * Thanks. If you manage to fix it (and, oh, I so know how hard that can be!), please
   let us know.
 *  Thread Starter [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * (@dgewirtz)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12977221)
 * [@oludarebello1](https://wordpress.org/support/users/oludarebello1/) Seamless
   Donations is definitely experiencing this issue. Do you have any pointers on 
   whether you think Seamless Donations is causing it?

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

The topic ‘WP_DEBUG messages’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [David Gewirtz](https://wordpress.org/support/users/dgewirtz/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/wp_debug-messages-5/#post-12977221)
 * Status: resolved