Error
Call to undefined function roots_title() Error thrown with message "Call to undefined function roots_title()" Stacktrace: #7 Error in /www/wp-content/themes/g5_hydrogen/templates/page-header.php:3 #6 require in /www/wp-includes/template.php:690 #5 load_template in /www/wp-includes/template.php:647 #4 locate_template in /www/wp-includes/general-template.php:155 #3 get_template_part in /www/wp-content/themes/g5_hydrogen/archive-leden.php:1 #2 include in /www/wp-includes/template-loader.php:74 #1 require_once in /www/wp-blog-header.php:19 #0 require in /www/index.php:17
Stack frames (8)
7
Error
/
www
/
wp-content
/
themes
/
g5_hydrogen
/
templates
/
page-header.php
3
6
require
/
www
/
wp-includes
/
template.php
690
5
load_template
/
www
/
wp-includes
/
template.php
647
4
locate_template
/
www
/
wp-includes
/
general-template.php
155
3
get_template_part
/
www
/
wp-content
/
themes
/
g5_hydrogen
/
archive-leden.php
1
2
include
/
www
/
wp-includes
/
template-loader.php
74
1
require_once
/
www
/
wp-blog-header.php
19
0
require
/
www
/
index.php
17
<div class="page-header">
  <h3>
    <?php echo roots_title(); ?>
  </h3>
</div>
 
 * @global int        $user_ID
 *
 * @param string $_template_file Path to template file.
 * @param bool   $require_once   Whether to require_once or require. Default true.
 */
function load_template( $_template_file, $require_once = true ) {
    global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID;
 
    if ( is_array( $wp_query->query_vars ) ) {
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s );
    }
 
    if ( $require_once ) {
        require_once( $_template_file );
    } else {
        require( $_template_file );
    }
}
 
 */
function locate_template($template_names, $load = false, $require_once = true ) {
    $located = '';
    foreach ( (array) $template_names as $template_name ) {
        if ( !$template_name )
            continue;
        if ( file_exists(STYLESHEETPATH . '/' . $template_name)) {
            $located = STYLESHEETPATH . '/' . $template_name;
            break;
        } elseif ( file_exists(TEMPLATEPATH . '/' . $template_name) ) {
            $located = TEMPLATEPATH . '/' . $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, $require_once );
 
    return $located;
}
 
/**
 * Require 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
 *
 * @global array      $posts
 * @global WP_Post    $post
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query
 * @global WP_Rewrite $wp_rewrite
 * @global wpdb       $wpdb
 * @global string     $wp_version
     * Fires before the specified template part file is loaded.
     *
     * The dynamic portion of the hook name, `$slug`, refers to the slug name
     * for the generic template part.
     *
     * @since 3.0.0
     *
     * @param string      $slug The slug name for the generic template.
     * @param string|null $name The name of the specialized template.
     */
    do_action( "get_template_part_{$slug}", $slug, $name );
 
    $templates = array();
    $name = (string) $name;
    if ( '' !== $name )
        $templates[] = "{$slug}-{$name}.php";
 
    $templates[] = "{$slug}.php";
 
    locate_template($templates, true, false);
}
 
/**
 * Display 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.
 *
 * @since 2.7.0
<?php get_template_part('templates/page', 'header'); ?>
 
<?php if (!have_posts()) : ?>
    <div class="alert alert-warning">
        <?php _e('Sorry, no results were found.', 'roots'); ?>
    </div>
    <?php get_search_form(); ?>
<?php endif; ?>
 
<div class="row" style="margin-top:10px;">
    <?php $i = 1; ?>
    <?php query_posts($query_string . '&order=ASC&posts_per_page=50'); ?>
    <?php while (have_posts()) : the_post(); ?>
        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
            <article <?php post_class(); ?>>
                <header>
                    <?php if(has_post_thumbnail()) {
                        the_post_thumbnail('sponsor-afb', array( 'class' => 'img-responsive img-border'));
                    } else {
                        echo '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/assets/img/onbekend.jpg" alt="Geen foto" class="img-responsive img-border">';
                    }
                    ?>
                    <h3 class="entry-title" style="text-align:center;"><?php the_title(); ?></h3>
                </header>
            </article>
        </div>
        <?php
        if($i == 4) {
            echo '</div><hr><div class="row" style="margin-top:40px;">';
            $i = 0;
        }
        ?>
        <?php $i++; ?>
    <?php endwhile; ?>
</div>
 
<?php if ($wp_query->max_num_pages > 1) : ?>
    <nav class="post-nav">
        <ul class="pager">
            <li class="previous"><?php next_posts_link(__('&larr; Older posts', 'roots')); ?></li>
    elseif ( is_single()         && $template = get_single_template()         ) :
    elseif ( is_page()           && $template = get_page_template()           ) :
    elseif ( is_singular()       && $template = get_singular_template()       ) :
    elseif ( is_category()       && $template = get_category_template()       ) :
    elseif ( is_tag()            && $template = get_tag_template()            ) :
    elseif ( is_author()         && $template = get_author_template()         ) :
    elseif ( is_date()           && $template = get_date_template()           ) :
    elseif ( is_archive()        && $template = get_archive_template()        ) :
    else :
        $template = get_index_template();
    endif;
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
endif;
 
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( !isset($wp_did_header) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.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( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /leden/
USER root
HOME /root
ORIG_SCRIPT_NAME /VHJhbnNJUDpBbGxZb3VyUEhQc0JlbG9uZ1RvVXNfcGhwNzI=/php-cgi
ORIG_PATH_TRANSLATED /sites/mtc-zevenbergen.nl/www/index.php
ORIG_PATH_INFO /index.php
ORIG_SCRIPT_FILENAME /var/run/php72-cgi/php-cgi
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /index.php
REMOTE_PORT 52136
SCRIPT_FILENAME /sites/mtc-zevenbergen.nl/www/index.php
SERVER_ADMIN webmaster@mtc-zevenbergen.nl
CONTEXT_DOCUMENT_ROOT /var/run/php72-cgi/
CONTEXT_PREFIX /VHJhbnNJUDpBbGxZb3VyUEhQc0JlbG9uZ1RvVXNfcGhwNzI=/
REQUEST_SCHEME http
DOCUMENT_ROOT /sites/mtc-zevenbergen.nl/www/
REMOTE_ADDR 34.203.213.116
SERVER_PORT 80
SERVER_ADDR 149.210.196.229
SERVER_NAME mtc-zevenbergen.nl
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_CONNECTION close
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT_ENCODING gzip
HTTP_HOST mtc-zevenbergen.nl
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
TMPDIR /sites/mtc-zevenbergen.nl/tmp/
SCRIPT_URI http://mtc-zevenbergen.nl/leden/
SCRIPT_URL /leden/
UNIQUE_ID XEHoV38AAQEAADTAXlAAAABN
HTTPS on
REDIRECT_STATUS 200
REDIRECT_HANDLER php72-fastcgi
REDIRECT_TMPDIR /sites/mtc-zevenbergen.nl/tmp/
REDIRECT_SCRIPT_URI http://mtc-zevenbergen.nl/leden/
REDIRECT_SCRIPT_URL /leden/
REDIRECT_UNIQUE_ID XEHoV38AAQEAADTAXlAAAABN
REDIRECT_HTTPS on
REDIRECT_REDIRECT_STATUS 200
REDIRECT_REDIRECT_TMPDIR /sites/mtc-zevenbergen.nl/tmp/
REDIRECT_REDIRECT_SCRIPT_URI http://mtc-zevenbergen.nl/leden/
REDIRECT_REDIRECT_SCRIPT_URL /leden/
REDIRECT_REDIRECT_UNIQUE_ID XEHoV38AAQEAADTAXlAAAABN
REDIRECT_REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1547823191.4598
REQUEST_TIME 1547823191
empty
0. Whoops\Handler\PrettyPageHandler