Whoops \ Exception \ ErrorException (E_WARNING)
Undefined array key "audio" Whoops\Exception\ErrorException thrown with message "Undefined array key "audio"" Stacktrace: #12 Whoops\Exception\ErrorException in /var/webs/kontrafunk-app/webroot/wp-content/themes/kontrafunk/resources/views/article/vArticleDetail.php:49 #11 Whoops\Run:handleError in /var/webs/kontrafunk-app/webroot/wp-content/themes/kontrafunk/resources/views/article/vArticleDetail.php:49 #10 include in /var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/professional/src/Template/TachyonTemplateEngine.php:127 #9 TypeRocket\Pro\Template\TachyonTemplateEngine:load in /var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Template/View.php:230 #8 TypeRocket\Template\View:load in /var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Template/View.php:242 #7 TypeRocket\Template\View:render in /var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Http/Response.php:1082 #6 TypeRocket\Http\Response:finish in /var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Http/Router.php:156 #5 TypeRocket\Http\Router:runRoute in /var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Http/Router.php:53 #4 TypeRocket\Http\Router:TypeRocket\Http\{closure} in /var/webs/kontrafunk-app/webroot/wp-includes/class-wp-hook.php:324 #3 WP_Hook:apply_filters in /var/webs/kontrafunk-app/webroot/wp-includes/plugin.php:205 #2 apply_filters in /var/webs/kontrafunk-app/webroot/wp-includes/template-loader.php:104 #1 require_once in /var/webs/kontrafunk-app/webroot/wp-blog-header.php:19 #0 require in /var/webs/kontrafunk-app/webroot/index.php:17
Stack frames (13)
12
Whoops\Exception\ErrorException
/var/webs/kontrafunk-app/webroot/wp-content/themes/kontrafunk/resources/views/article/vArticleDetail.php49
11
Whoops\Run handleError
/var/webs/kontrafunk-app/webroot/wp-content/themes/kontrafunk/resources/views/article/vArticleDetail.php49
10
include
/vendor/typerocket/professional/src/Template/TachyonTemplateEngine.php127
9
TypeRocket\Pro\Template\TachyonTemplateEngine load
/vendor/typerocket/core/src/Template/View.php230
8
TypeRocket\Template\View load
/vendor/typerocket/core/src/Template/View.php242
7
TypeRocket\Template\View render
/vendor/typerocket/core/src/Http/Response.php1082
6
TypeRocket\Http\Response finish
/vendor/typerocket/core/src/Http/Router.php156
5
TypeRocket\Http\Router runRoute
/vendor/typerocket/core/src/Http/Router.php53
4
TypeRocket\Http\Router TypeRocket\Http\{closure}
/var/webs/kontrafunk-app/webroot/wp-includes/class-wp-hook.php324
3
WP_Hook apply_filters
/var/webs/kontrafunk-app/webroot/wp-includes/plugin.php205
2
apply_filters
/var/webs/kontrafunk-app/webroot/wp-includes/template-loader.php104
1
require_once
/var/webs/kontrafunk-app/webroot/wp-blog-header.php19
0
require
/var/webs/kontrafunk-app/webroot/index.php17
/var/webs/kontrafunk-app/webroot/wp-content/themes/kontrafunk/resources/views/article/vArticleDetail.php
 
<?php $this->include("components.cDownloadButton", [
        "buttonText" => "Download mp3",
        "buttonHref" => $data['article']->audio_ganze_sendung
    ]);
?>
 
<?php foreach ( $data['article']->clips as $clip ) { ?>
    <!--<h4><?php /*= $clip['titel'] */?></h4>-->
    <br>
    <br>
    <!--<div class="player">
        <audio>
            <source src="<?php /*= \App\Services\FormatService::formatHref( $clip['audio'] ) */?>" type="audio/mpeg">
        </audio>
    </div>-->
 
    <?php $this->include("components.cMp3Player", [
        "buttonText" => "Download mp3",
        "audioHref" => $format::formatHref( $clip['audio'] )
    ]);
    ?>
 
    <?php $this->include("components.cDownloadButton", [
        "buttonText" => "Download mp3",
        "buttonHref" => $format::formatHref( $clip['audio'] )
    ]);
    ?>
 
 
    <!--<div class="gap-example">-->
<!--        <audio class="player">
            <source src="<?php /*= \App\Services\FormatService::formatHref( $clip['audio'] ) */?>" type="audio/mpeg">
        </audio>-->
    <!--</div>-->
 
<?php } ?>
 
<script>
 
/var/webs/kontrafunk-app/webroot/wp-content/themes/kontrafunk/resources/views/article/vArticleDetail.php
 
<?php $this->include("components.cDownloadButton", [
        "buttonText" => "Download mp3",
        "buttonHref" => $data['article']->audio_ganze_sendung
    ]);
?>
 
<?php foreach ( $data['article']->clips as $clip ) { ?>
    <!--<h4><?php /*= $clip['titel'] */?></h4>-->
    <br>
    <br>
    <!--<div class="player">
        <audio>
            <source src="<?php /*= \App\Services\FormatService::formatHref( $clip['audio'] ) */?>" type="audio/mpeg">
        </audio>
    </div>-->
 
    <?php $this->include("components.cMp3Player", [
        "buttonText" => "Download mp3",
        "audioHref" => $format::formatHref( $clip['audio'] )
    ]);
    ?>
 
    <?php $this->include("components.cDownloadButton", [
        "buttonText" => "Download mp3",
        "buttonHref" => $format::formatHref( $clip['audio'] )
    ]);
    ?>
 
 
    <!--<div class="gap-example">-->
<!--        <audio class="player">
            <source src="<?php /*= \App\Services\FormatService::formatHref( $clip['audio'] ) */?>" type="audio/mpeg">
        </audio>-->
    <!--</div>-->
 
<?php } ?>
 
<script>
 
/var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/professional/src/Template/TachyonTemplateEngine.php
        echo $this->sections[$section] ?? null;
    }
 
    /**
     * @param string $layout
     */
    public function layout($layout)
    {
        $this->layout = $layout;
        ob_start();
    }
 
    /**
     * Load Template
     */
    public function load()
    {
        extract( $this->data );
        /** @noinspection PhpIncludeInspection */
        include ( $this->file );
 
        if($this->layout) {
            $html = trim(ob_get_clean());
 
            if(empty($this->sections['main'])) {
                $this->sections['main'] = $html;
            } elseif($html) {
                $this->sections['__main'] = $html;
            }
 
            $this->include($this->layout);
        }
    }
}
/var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Template/View.php
        {
            add_filter('pre_get_document_title', function( $title ) use ($view_title) {
                return $title === '' ? '' : $view_title;
            }, 101);
 
            add_filter('document_title_parts', function( $title ) use ($view_title) {
                if( is_string($view_title) ) {
                    $title = [];
                    $title['title'] = $view_title;
                } elseif ( is_array($view_title) ) {
                    $title = $view_title;
                }
                return $title;
            }, 101);
        }
 
        $this->setFolder($this->getFolderPath());
        $file = $this->getComposedFilePath();
        $templateEngine = $this->viewsEngine ?? Config::get('app.templates.' . $context) ?? Config::get('app.templates.views');
        (new $templateEngine($file, $this->getData(), $context, $this))->load();
    }
 
    /**
     * Render View
     *
     * @param string|null $context the views context to use
     */
    public function render($context = null)
    {
        $context = $context ?? $this->getContext() ?? 'views';
 
        $this->load($context);
    }
 
    /**
     * Set Context
     *
     * Can be a key from config/paths like `views`.
     *
     * @param null|string $context the template engine context to use
/var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Template/View.php
                return $title;
            }, 101);
        }
 
        $this->setFolder($this->getFolderPath());
        $file = $this->getComposedFilePath();
        $templateEngine = $this->viewsEngine ?? Config::get('app.templates.' . $context) ?? Config::get('app.templates.views');
        (new $templateEngine($file, $this->getData(), $context, $this))->load();
    }
 
    /**
     * Render View
     *
     * @param string|null $context the views context to use
     */
    public function render($context = null)
    {
        $context = $context ?? $this->getContext() ?? 'views';
 
        $this->load($context);
    }
 
    /**
     * Set Context
     *
     * Can be a key from config/paths like `views`.
     *
     * @param null|string $context the template engine context to use
     *
     * @return $this
     */
    public function setContext($context = null)
    {
        $this->context = $context ?? $this->getContext();
 
        return $this;
    }
 
    /**
     * @return null|string
/var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Http/Response.php
        if( $forceResponseArray ) {
            $response->exitJson($statusCode);
        }
 
        if(class_exists('\TypeRocket\Pro\Http\Download')) {
            if( $returned instanceof \TypeRocket\Pro\Http\Download) {
                $returned->send();
            }
        }
 
        if( $returned instanceof Redirect) {
            $returned->now();
        }
 
        if( $returned instanceof Response ) {
            wp_send_json( $returned->toArray() );
        }
 
        if( $returned instanceof View ) {
            $returned->render();
            die();
        }
 
        if( $returned instanceof Model ) {
            wp_send_json( $returned->toArray() );
        }
 
        if( $returned instanceof Results ) {
            wp_send_json( $returned->toArray() );
        }
 
        if( is_callable($returned) ) {
            call_user_func($returned, $this);
            die();
        }
 
        if( is_array($returned) || is_object($returned) ) {
 
            if($returned instanceof \WP_Error) {
                $statusCode = $returned->get_error_code();
/var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Http/Router.php
 
        if($redirect) {
            $redirect = Str::replaceFirst($requestedPath, $redirect, $this->request->getUri());
            $redirect = apply_filters('typerocket_route_redirect', $redirect, $this, $wpTrailingslash);
 
            if($redirect) {
                wp_redirect($redirect, 301);
                die();
            }
        }
 
        $responder = new HttpResponder;
 
        $responder
            ->getHandler()
            ->setRoute( $this->route )
            ->setController( $this->route->do );
 
        $responder->respond( $this->args );
        \TypeRocket\Http\Response::getFromContainer()->finish();
    }
 
    /**
     * Route request through registered routes if these is a match
     * @return Router
     */
    public function detectRoute()
    {
        $root = $this->config['root'] ?? get_site_url();
 
        $routesRegistered = $this->routes->getRegisteredRoutes($this->request->getFormMethod());
        $this->path = $this->request->getPathWithoutRoot($root);
 
        if( $this->matchRoute($this->path, $routesRegistered) ) {
            add_filter( 'redirect_canonical', [$this, 'redirectCanonical'] , 10, 2);
        }
 
        return $this;
    }
 
/var/webs/kontrafunk-app/webroot/wp-content/mu-plugins/typerocket/vendor/typerocket/core/src/Http/Router.php
     */
    public function __construct($request, $config, RouteCollection $routes)
    {
        $this->request = $request;
        $this->config = $config;
        $this->routes = $routes;
    }
 
    /**
     * Init Hooks
     *
     * @return $this
     */
    public function initHooks()
    {
        if( ! is_admin() ) {
            // template_include is needed to keep admin bar
            add_filter('template_include', function( $template ) {
                if( $this->route ) {
                    $this->runRoute();
                }
                return $template;
            });
 
            add_filter( 'query_vars', function($vars) {
                $vars[] = 'tr_route_var';
                return $vars;
            } );
 
            add_filter( 'posts_request', function($sql, $q) {
                /** @var WP_Query $q */
                if ( $q->is_main_query() && !empty($q->query['tr_route_var']) ) {
                    // disable row count
                    $q->query_vars['no_found_rows'] = true;
 
                    // disable cache
                    $q->query_vars['cache_results'] = false;
                    $q->query_vars['update_post_meta_cache'] = false;
                    $q->query_vars['update_post_term_cache'] = false;
 
/var/webs/kontrafunk-app/webroot/wp-includes/class-wp-hook.php
 
        $this->iterations[ $nesting_level ] = $this->priorities;
 
        $num_args = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
 
            $priority = $this->current_priority[ $nesting_level ];
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice() if possible.
                if ( 0 === $the_['accepted_args'] ) {
                    $value = call_user_func( $the_['function'] );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        --$this->nesting_level;
 
        return $value;
    }
 
    /**
     * Calls the callback functions that have been added to an action hook.
     *
     * @since 4.7.0
     *
     * @param array $args Parameters to pass to the callback functions.
/var/webs/kontrafunk-app/webroot/wp-includes/plugin.php
        $all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
        _wp_call_all_hook( $all_args );
    }
 
    if ( ! isset( $wp_filter[ $hook_name ] ) ) {
        if ( isset( $wp_filter['all'] ) ) {
            array_pop( $wp_current_filter );
        }
 
        return $value;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $hook_name;
    }
 
    // Pass the value to WP_Hook.
    array_unshift( $args, $value );
 
    $filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
 
    array_pop( $wp_current_filter );
 
    return $filtered;
}
 
/**
 * Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
 *
 * @since 3.0.0
 *
 * @see apply_filters() This function is identical, but the arguments passed to the
 *                      functions hooked to `$hook_name` are supplied using an array.
 *
 * @global WP_Hook[] $wp_filter         Stores all of the filters and actions.
 * @global int[]     $wp_filters        Stores the number of times each filter was triggered.
 * @global string[]  $wp_current_filter Stores the list of current filters with the current one last.
 *
 * @param string $hook_name The name of the filter hook.
 * @param array  $args      The arguments supplied to the functions hooked to `$hook_name`.
/var/webs/kontrafunk-app/webroot/wp-includes/template-loader.php
            if ( 'is_attachment' === $tag ) {
                remove_filter( 'the_content', 'prepend_attachment' );
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * 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 ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
/var/webs/kontrafunk-app/webroot/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/webs/kontrafunk-app/webroot/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 ( [tr_route_var] => 1 )
query_string tr_route_var=1
request sendung/kontrafunk-aktuell-vom-30-januar-2024
matched_rule ^sendung/([^\/]+)/?$
matched_query tr_route_var=1
did_permalink 1
Key Value
query Array ( [tr_route_var] => 1 )
query_vars Array ( [tr_route_var] => 1 [fields] => all [ignore_sticky_posts] => 1 [lazy_load_term_meta] => 1 [posts_per_page] => 10 [comments_per_page] => 50 [no_found_rows] => 1 [order] => DESC )
tax_query WP_Tax_Query Object ( [queries] => Array ( ) [relation] => AND [table_aliases:protected] => Array ( ) [queried_terms] => Array ( ) [primary_table] => wp_posts [primary_id_column] => ID )
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] => )
current_post -1
before_loop 1
current_comment -1
is_home 1
empty
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx/1.27.3
REQUEST_URI /sendung/kontrafunk-aktuell-vom-30-januar-2024/
USER www-data
HOME /var/www
HTTP_REFERER https://app.kontrafunk.radio/sendung/kontrafunk-aktuell-vom-30-januar-2024
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_HOST app.kontrafunk.radio
HTTP_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 216.73.216.120
HTTP_X_REAL_IP 216.73.216.120
PHP_VALUE upload_max_filesize=5G post_max_size=5G
HTTPS on
REDIRECT_STATUS 200
SERVER_NAME app.kontrafunk.radio
SERVER_PORT 8080
SERVER_ADDR 172.19.0.3
REMOTE_PORT 55296
REMOTE_ADDR 172.19.0.3
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT /var/webs/kontrafunk-app/webroot
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /var/webs/kontrafunk-app/webroot/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1755845559.1913
REQUEST_TIME 1755845559
empty
0. TypeRocket\Pro\Features\WhoopsHtmlHandler