Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was already running CMB2, but not as a plugin. I just installed the plugin and got everything working just fine. Here’s what I did:

    1. Installed the plugin through the Plugin manager as you would any other plugin.
    2. Removed the /cmb directory I had within my theme file
    3. Removed the require_once 'cmb2/init.php'; line in my functions.php file

    I left everything else in place (the custom boxes I had made) and they’re all still working. Hope this helps someone.

    P.S. – it probably wouldn’t hurt to backup your theme just in case ??

    Here’s my fix:

    Go into the code and file the file called WcsOutputController.php- it will be under wp-content/plugins/weekly-class-schedule/controllers/

    Next find this line of code (for me it’s line 11):

    $classroom = $attr['classroom'];

    And add a line above it and below it so it’s inside a condition loop that looks like this:

    if ( isset($attr['classroom']) && ! empty($attr['classroom']) ) {
            $classroom = $attr['classroom'];
    }

    Without digging too deep into the code on this plugin, I know this will work because it was basically trying to set a classroom value to a variable when there was no classroom value.

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