Whoops \ Exception \ ErrorException (E_WARNING)
Undefined array key 0 Whoops\Exception\ErrorException thrown with message "Undefined array key 0" Stacktrace: #9 Whoops\Exception\ErrorException in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/inc/wp-generals.php:74 #8 Whoops\Run:handleError in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/inc/wp-generals.php:74 #7 nav_breadcrumb in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/template-parts/banner-area.php:39 #6 require in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template.php:816 #5 load_template in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template.php:749 #4 locate_template in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/general-template.php:206 #3 get_template_part in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/single.php:15 #2 include in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template-loader.php:125 #1 require_once in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/index.php:17
Stack frames (10)
9
Whoops\Exception\ErrorException
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/inc/wp-generals.php74
8
Whoops\Run handleError
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/inc/wp-generals.php74
7
nav_breadcrumb
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/template-parts/banner-area.php39
6
require
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template.php816
5
load_template
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template.php749
4
locate_template
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/general-template.php206
3
get_template_part
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/single.php15
2
include
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template-loader.php125
1
require_once
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-blog-header.php19
0
require
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/index.php17
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/inc/wp-generals.php
                }else{
                    echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->label. '</a> ' . $delimiter . ' ';
                }                
                echo $before . get_the_title() . $after;
                } else {
                    $cat = get_the_category(); $cat = $cat[0];
                    echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
                    echo $before . get_the_title() . $after;
                }
        } elseif( is_archive() ) {
            $post_type = get_post_type_object(get_post_type());
            echo $post_type->label;
 
        } elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() && !is_search() ) {
            $post_type = get_post_type_object(get_post_type());
            echo $before . $post_type->labels->singular_name . $after;
 
        } elseif ( is_attachment() ) {
            $parent = get_post($post->post_parent);
            $cat = get_the_category($parent->ID); $cat = $cat[0];
            echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
            echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a> ' . $delimiter . ' ';
            echo $before . get_the_title() . $after;
 
        } elseif ( is_page() && !$post->post_parent ) {
            echo $before . get_the_title() . $after;
 
        } elseif ( is_page() && $post->post_parent ) {
            $parent_id = $post->post_parent;
            $breadcrumbs = array();
            while ($parent_id) {
                $page = get_page($parent_id);
                $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';
                $parent_id = $page->post_parent;
            }
            $breadcrumbs = array_reverse($breadcrumbs);
            foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' ';
            echo $before . get_the_title() . $after;
 
        } elseif ( is_search() ) {
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/inc/wp-generals.php
                }else{
                    echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->label. '</a> ' . $delimiter . ' ';
                }                
                echo $before . get_the_title() . $after;
                } else {
                    $cat = get_the_category(); $cat = $cat[0];
                    echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
                    echo $before . get_the_title() . $after;
                }
        } elseif( is_archive() ) {
            $post_type = get_post_type_object(get_post_type());
            echo $post_type->label;
 
        } elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() && !is_search() ) {
            $post_type = get_post_type_object(get_post_type());
            echo $before . $post_type->labels->singular_name . $after;
 
        } elseif ( is_attachment() ) {
            $parent = get_post($post->post_parent);
            $cat = get_the_category($parent->ID); $cat = $cat[0];
            echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
            echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a> ' . $delimiter . ' ';
            echo $before . get_the_title() . $after;
 
        } elseif ( is_page() && !$post->post_parent ) {
            echo $before . get_the_title() . $after;
 
        } elseif ( is_page() && $post->post_parent ) {
            $parent_id = $post->post_parent;
            $breadcrumbs = array();
            while ($parent_id) {
                $page = get_page($parent_id);
                $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';
                $parent_id = $page->post_parent;
            }
            $breadcrumbs = array_reverse($breadcrumbs);
            foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' ';
            echo $before . get_the_title() . $after;
 
        } elseif ( is_search() ) {
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/template-parts/banner-area.php
          <span>
          <img src="<?php the_post_thumbnail_url();?>" width="30" style="margin-top: 2.7rem; margin-right: 10px;">
          </span>
          <span>
          <h1 class="page-title"><?php single_post_title(); ?></h1>
          </span>
        </div>
      <?php elseif(get_post_type() == 'lehramtstyp'):?>
        <?php global $zielgruppe; ?>
        <?php if($zielgruppe == 1):?>
          <h1 class="page-title"><?php echo get_the_title() . ' (Länderebene)'; ?></h1>
        <?php elseif($zielgruppe == 2):?>
          <h1 class="page-title"><?php echo get_the_title() . ' (Hochschulebene)'; ?></h1>
        <?php endif;?>
 
      <?php else:?>
        <h1 class="page-title"><?php single_post_title(); ?></h1>
      <?php endif;?>
      <div class="breadcrumbs">
        <?php if (function_exists('nav_breadcrumb')) nav_breadcrumb(); ?>
      </div>
    </header><!-- .page-header -->
  </div>
</div>
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template.php
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
 
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
 
/**
 * Checks whether the template should be output buffered for enhancement.
 *
 * By default, an output buffer is only started if a {@see 'wp_template_enhancement_output_buffer'} filter has been
 * added by the time a template is included at the {@see 'wp_before_include_template'} action. This allows template
 * responses to be streamed as much as possible when no template enhancements are registered to apply.
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template.php
 
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( ! $template_name ) {
            continue;
        }
        if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
            $located = $wp_stylesheet_path . '/' . $template_name;
            break;
        } elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
            $located = $wp_template_path . '/' . $template_name;
            break;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
            break;
        }
    }
 
    if ( $load && '' !== $located ) {
        load_template( $located, $load_once, $args );
    }
 
    return $located;
}
 
/**
 * Requires the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/general-template.php
        $templates[] = "{$slug}-{$name}.php";
    }
 
    $templates[] = "{$slug}.php";
 
    /**
     * Fires before an attempt is made to locate and load a template part.
     *
     * @since 5.2.0
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string   $slug      The slug name for the generic template.
     * @param string   $name      The name of the specialized template
     *                            or an empty string if there is none.
     * @param string[] $templates Array of template files to search for, in order.
     * @param array    $args      Additional arguments passed to the template.
     */
    do_action( 'get_template_part', $slug, $name, $templates, $args );
 
    if ( ! locate_template( $templates, true, false, $args ) ) {
        return false;
    }
}
 
/**
 * Displays search form.
 *
 * Will first attempt to locate the searchform.php file in either the child or
 * the parent, then load it. If it doesn't exist, then the default search form
 * will be displayed. The default search form is HTML, which will be displayed.
 * There is a filter applied to the search form HTML in order to edit or replace
 * it. The filter is {@see 'get_search_form'}.
 *
 * This function is primarily used by themes which want to hardcode the search
 * form into the sidebar and also by the search widget in WordPress.
 *
 * There is also an action that is called whenever the function is run called,
 * {@see 'pre_get_search_form'}. This can be useful for outputting JavaScript that the
 * search relies on or various formatting that applies to the beginning of the
 * search. To give a few examples of what it can be used for.
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-content/themes/mlb/single.php
<?php
/**
 * The template for displaying all single posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package MLB
 */
 
get_header();
?>
 
    <main role="main">
 
        <?php get_template_part('template-parts/banner-area');?>
 
        <?php
            get_template_part( 'template-parts/content', get_post_type() );
        ?>
    </main><!-- #main -->
 
<?php
get_footer();
 
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-includes/template-loader.php
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        /**
         * Fires immediately before including the template.
         *
         * @since 6.9.0
         *
         * @param string $template The path of the template about to be included.
         */
        do_action( 'wp_before_include_template', $template );
 
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
/var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 

Environment & details:

Key Value
query_vars Array ( [page] => [pagename] => bayern_wappen-svg )
query_string pagename=bayern_wappen-svg
request bayern_wappen-svg
matched_rule (.?.+?)(?:/([0-9]+))?/?$
matched_query pagename=bayern_wappen-svg&page=
did_permalink 1
Key Value
query Array ( [page] => [pagename] => bayern_wappen-svg )
query_vars Array ( [pagename] => bayern_wappen-svg [p] => 4027 [attachment_id] => 4027 [name] => bayern_wappen-svg [fields] => all [cache_results] => 1 [update_post_term_cache] => 1 [lazy_load_term_meta] => 1 [update_post_meta_cache] => 1 [post_type] => attachment [posts_per_page] => 10 [comments_per_page] => 50 [order] => DESC )
meta_query WP_Meta_Query Object ( [queries] => Array ( ) [relation] => [meta_table] => [meta_id_column] => [primary_table] => [primary_id_column] => [table_aliases:protected] => Array ( ) [clauses:protected] => Array ( ) [has_or_relation:protected] => )
queried_object WP_Post Object ( [ID] => 4027 [post_author] => 114 [post_date] => 2025-12-10 17:10:23 [post_date_gmt] => 2025-12-10 15:10:23 [post_content] => [post_title] => Bayern_Wappen.svg [post_excerpt] => [post_status] => inherit [comment_status] => closed [ping_status] => closed [post_password] => [post_name] => bayern_wappen-svg [to_ping] => [pinged] => [post_modified] => 2025-12-10 17:10:23 [post_modified_gmt] => 2025-12-10 15:10:23 [post_content_filtered] => [post_parent] => 0 [guid] => https://dev.monitor-lehrkraeftebildung.de/wp-content/uploads/2025/12/Bayern_Wappen.svg_.webp [menu_order] => 0 [post_type] => attachment [post_mime_type] => image/webp [comment_count] => 0 [filter] => raw )
queried_object_id 4027
request SELECT tUqxfBq_posts.* FROM tUqxfBq_posts WHERE 1=1 AND (tUqxfBq_posts.ID = '4027') AND tUqxfBq_posts.ID = 4027 AND tUqxfBq_posts.post_type = 'attachment' ORDER BY tUqxfBq_posts.post_date DESC
post_count 1
current_post -1
before_loop 1
current_comment -1
found_posts 1
is_single 1
is_attachment 1
is_singular 1
Key Value
ID 4027
post_author 114
post_date 2025-12-10 17:10:23
post_date_gmt 2025-12-10 15:10:23
post_content
post_title Bayern_Wappen.svg
post_excerpt
post_status inherit
comment_status closed
ping_status closed
post_password
post_name bayern_wappen-svg
to_ping
pinged
post_modified 2025-12-10 17:10:23
post_modified_gmt 2025-12-10 15:10:23
post_content_filtered
post_parent 0
guid https://dev.monitor-lehrkraeftebildung.de/wp-content/uploads/2025/12/Bayern_Wappen.svg_.webp
menu_order 0
post_type attachment
post_mime_type image/webp
comment_count 0
filter raw
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /bayern_wappen-svg/
USER mlb_ny84akdr3ls
HOME /var/www/vhosts/monitor-lehrkraeftebildung.de
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /bayern_wappen-svg/
REMOTE_PORT 44016
SCRIPT_FILENAME /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /var/www/vhosts/monitor-lehrkraeftebildung.de/httpdocs
REMOTE_ADDR 216.73.216.10
SERVER_PORT 443
SERVER_ADDR 85.215.237.225
SERVER_NAME www.monitor-lehrkraeftebildung.de
SERVER_SIGNATURE <address>Apache Server at www.monitor-lehrkraeftebildung.de Port 443</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin
HTTP_REFERER https://www.monitor-lehrkraeftebildung.de/?p=4027
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_REAL_IP 216.73.216.10
HTTP_HOST www.monitor-lehrkraeftebildung.de
proxy-nokeepalive 1
SSL_TLS_SNI www.monitor-lehrkraeftebildung.de
HTTPS on
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
HTTP_AUTHORIZATION
SCRIPT_URI https://www.monitor-lehrkraeftebildung.de/bayern_wappen-svg/
SCRIPT_URL /bayern_wappen-svg/
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.monitor-lehrkraeftebildung.de
REDIRECT_HTTPS on
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY 0
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY 0
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_SCRIPT_URI https://www.monitor-lehrkraeftebildung.de/bayern_wappen-svg/
REDIRECT_SCRIPT_URL /bayern_wappen-svg/
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1772572384.5266
REQUEST_TIME 1772572384
empty
0. TypeRocketPro\Features\WhoopsHtmlHandler