• Resolved Howdy_McGee

    (@howdy_mcgee)


    I have a _massive_ amount of errors in my debug log regarding to an undefined index type:

    Undefined index: type in /wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ui-settings-forms.php on line 168
    Undefined index: type in /wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-model.php on line 3431
    Undefined index: type in /wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-icons.php on line 316
    Undefined index: type in /wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-fonts.php on line 164
    Undefined index: type in /wp-content/plugins/beaver-builder-lite-version/classes/class-fl-builder-ui-settings-forms.php on line 278

    Between Jan 4th and the 11th ( today ) my log has accumulated 6MB of repeated errors above. I’ve since has to disable logging until the issue has been narrowed down. I’ve got a debug backtrace in place to maybe track what specifically is causing the issues but so far it has not triggered.

    WordPress is up to date, plugins are up to date. The only plugins I can think that may be affecting BB are Advanced Custom Fields ( basic ) and TinyMCE Advanced. Anyone who may have insight into the issue feel free to post below!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Simon Prosser

    (@pross)

    Do you have any custom modules for Beaver Builder, or any custom code that might be adding/changing options within any modules?

    These are not warnings that we have seen before.

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    You’re absolutely right, it appears to be some custom code and thus a non-issue. There’s in the theme which changes module defaults. I’m not sure if the Advanced Module ever had these indices but as it turns out module_advanced does not have fields -> margin_left

    function theme_bb_module_defaults( $form, $id ) {
    	
        if( 'module_advanced' == $id ) {
            $form['sections']['margins']['fields']['margin_left']['default'] 	= 0;
            $form['sections']['margins']['fields']['margin_right']['default'] 	= 0;
            $form['sections']['margins']['fields']['margin_top']['default'] 	= 0;
            $form['sections']['margins']['fields']['margin_bottom']['default'] 	= 0;
        }
    	
        return $form;
    }
    add_filter( 'fl_builder_register_settings_form', 'theme_bb_module_defaults' , 10, 2 );

    I cannot tell why that was put into place to begin with. Once removed errors disappears so there’s that!

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

The topic ‘Index ‘type’ Undefined’ is closed to new replies.