• I am getting this error and I’m unsure how to resolve it. I can’t edit the header or footer of my website using CMB2

    0 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/CMB2_Base.php(315): date(Array, Object(CMB2_Field), NULL) 1 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/CMB2_Base.php(273): CMB2_Base->do_callback(‘date’) 2 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/CMB2_Field.php(1345): CMB2_Base->get_param_callback_result(‘default_cb’) 3 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/CMB2_Field.php(1298): CMB2_Field->get_default() 4 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/CMB2_JS.php(69): CMB2_Field->js_data() 5 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/CMB2_Field.php(1279): CMB2_JS::add_field_data(Object(CMB2_Field)) 6 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/types/CMB2_Type_Base.php(65): CMB2_Field->register_js_data() 7 /home2/ku9fyuz6/mysupercoolwebsite.com/wp-content/plugins/cmb2/includes/types/CMB2_Type_Select.php(26): CMB2_Type_Base->rendered(‘

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

    (@tw2113)

    The BenchPresser

    Looks like you’ve provided a partial of the stacktrace, but you’re not providing the actual error.

    Also to help out, what’s the CMB2 configuration code you’re using?

    Thread Starter djmart177

    (@djmart177)

    To be honest, I am going to need a little hand holding with this one. I didn’t configure this plugin, but I am tech savvy. Any assistance in helping provide what you need would be appreciated.

    I got the referenced error message above from one other plugin that identified this in the error log.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Perhaps provide the entirety of the error log instead of just a partial snippet of it. You could use https://gist.github.com/ or https://pastebin.com/ to provide it.

    Regarding the config part, it’d be wherever in the code base is using something like $cmb2 = new_cmb2_box( [ ... ] );

    Otherwise, if it’s a different plugin or theme that is utilizing CMB2 for their product, then their support would probably be best because they’ll know their setup better than we would.

    Thread Starter djmart177

    (@djmart177)

    Not sure where the log file is. I am looking at error_log in public_html and can’t find anything about CMB2 in it…

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    You may have one in the wp-content folder named debug.log

    I got the referenced error message above from one other plugin that identified this in the error log.

    Somewhere you got the original pasted content in this thread, I assume that’s the same place you’d want to go to.

    Thread Starter djmart177

    (@djmart177)

    So, I had to enable debugging, but nothing was in the debug log regarding CMB2.

    I was able to actually edit the header, it looks like there is a graphical error, but if I click on those blocks, it enables me to edit them. They obviously look wrong, so something is still messed up with the plugin:

    https://ibb.co/2PzjZD0 had trouble attaching, here is the link to the photo.

    • This reply was modified 5 months, 3 weeks ago by djmart177.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Yes I’ll agree something is happening, but we don’t have any actual information as to what the issue is.

    Have you enabled define('WP_DEBUG', true); and define('WP_DEBUG_LOG', true); in your wp-config.php file?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.