• Resolved boib1222

    (@boib1222)


    Hello

    I am getting this notice:

    PHP Notice: CMB2_Field::__construct() was called with a parameter that is deprecated since version 2.2.3! Using the “default” field parameter as a callback has been deprecated in favor of the “default_cb” parameter. in /htdocs/wp-content/plugins/cmb2/includes/CMB2_Base.php on line 456

    Can you please solve this in the next version update? If not can you point me how to get rid of this notice?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    if you’re trying to pass a custom callback function or method for a field you’re setting up, and you’re passing it as “default”, change it to have an array index of “default_cb”. If you can share your CMB2 configuration code, I can help verify that this may be the case.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice’ is closed to new replies.