Holy Undefined Index Errors, Batman [duplicate]

I keep getting this error on my website and have not been able to fix it with the other answers. Any help is appreciated, just want to get these errors off of my site! Thank you.

Notice: Undefined index: level in /home/”URL”/public_html/wp-content/themes/alyeska/framework/api/class-tb-stylesheets-api.php on line 231

if ( $temp_stylesheets ) {
            foreach ( $temp_stylesheets as $handle => $file ) {
                $key = $file['level'];  //**LINE 231**//
                $this->client_stylesheets[$key][$handle] = $file;
            }

FULL CODE SECTION BELOW

    /**
 * Set client stylesheets.
 *
 * @since 2.3.0
 */
public function set_client_stylesheets() {

    if ( ! is_admin() ) {

        // Remove stylesheets
        if ( $this->remove_stylesheets ) {
            foreach ( $this->remove_stylesheets as $handle ) {
                unset( $this->remove_stylesheets[$handle] );
            }
        }

        // Re-format array of client stylesheets that are left
        // to be organized by level.
        $temp_stylesheets = $this->client_stylesheets;

        $this->client_stylesheets = array(
            '1' => array(), // Level 1: Before Framework styles
            '2' => array(), // Level 2: After Framework styles
            '3' => array(), // Level 3: After Theme styles
            '4' => array()  // Level 4: After Theme Options-generated styles
        );

        if ( $temp_stylesheets ) {
            foreach ( $temp_stylesheets as $handle => $file ) {
                $key = $file['level']; //**LINE 231**//
                $this->client_stylesheets[$key][$handle] = $file;
            }

        }

    }

}

Read more here: Holy Undefined Index Errors, Batman [duplicate]

Leave a Reply

Your email address will not be published. Required fields are marked *