• Resolved leemon

    (@leemon)


    I’m getting some warnings when editing a page (and the WP_DEBUG constant is set to TRUE):

    Notice: Undefined index: query in /xxxxxx/wp-content/plugins/jonradio-private-site/util/utilities5.php on line 370
    Notice: Undefined index: type in /xxxxxx/wp-content/plugins/jonradio-private-site/library/cmb2/includes/CMB2.php on line 1544

    I’m running WP 5.5 and PHP 7.4

    • This topic was modified 4 years, 2 months ago by leemon.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes. Loads and loads of the same.

    Plugin Author David Gewirtz

    (@dgewirtz)

    Please post your question using my new ticketing system at https://zatzlabs.com/submit-ticket/. It still comes to me directly, but this way, we can keep all related elements of the conversation in one place.

    Thanks!

    —David

    You can get rid of the CMB2.php notice by editing that file in the plugin:
    Locate line 1544. You need to wrap the switch() function in an isset() function:

    if(isset($field['type'])) {
       switch ( $field['type'] ) {
         /* switch code */
       }
    }

    Obviously it’s not a long term solution but will until it is permanently fixed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some warnings’ is closed to new replies.