Whoops \ Exception \ ErrorException (E_WARNING)
reset() expects parameter 1 to be array, null given Whoops\Exception\ErrorException thrown with message "reset() expects parameter 1 to be array, null given" Stacktrace: #6 Whoops\Exception\ErrorException in /homepages/4/d75936541/htdocs/PEFSIWebsite/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/PostGetter.php:29 #5 reset in /homepages/4/d75936541/htdocs/PEFSIWebsite/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/PostGetter.php:29 #4 Timber\PostGetter:get_post in /homepages/4/d75936541/htdocs/PEFSIWebsite/wp-content/plugins/gantry5/src/vendor/timber/timber/lib/Timber.php:130 #3 Timber\Timber:get_post in /homepages/4/d75936541/htdocs/PEFSIWebsite/wp-content/themes/g5_helium/single.php:30 #2 include in /homepages/4/d75936541/htdocs/PEFSIWebsite/wp-includes/template-loader.php:74 #1 require_once in /homepages/4/d75936541/htdocs/PEFSIWebsite/wp-blog-header.php:19 #0 require in /homepages/4/d75936541/htdocs/PEFSIWebsite/index.php:17
Stack frames (7)
6
Whoops
\
Exception
\
ErrorException
/
vendor
/
timber
/
timber
/
lib
/
PostGetter.php
29
5
reset
/
vendor
/
timber
/
timber
/
lib
/
PostGetter.php
29
4
Timber
\
PostGetter
get_post
/
vendor
/
timber
/
timber
/
lib
/
Timber.php
130
3
Timber
\
Timber
get_post
/
homepages
/
4
/
d75936541
/
htdocs
/
PEFSIWebsite
/
wp-content
/
themes
/
g5_helium
/
single.php
30
2
include
/
homepages
/
4
/
d75936541
/
htdocs
/
PEFSIWebsite
/
wp-includes
/
template-loader.php
74
1
require_once
/
homepages
/
4
/
d75936541
/
htdocs
/
PEFSIWebsite
/
wp-blog-header.php
19
0
require
/
homepages
/
4
/
d75936541
/
htdocs
/
PEFSIWebsite
/
index.php
17
    /**
     * @param mixed $query
     * @param string|array $PostClass
     * @return array|bool|null
     */
    public static function get_post( $query = false, $PostClass = '\Timber\Post' ) {
        // if a post id is passed, grab the post directly
        if ( is_numeric($query) ) {
            $post_type = get_post_type($query);
            $PostClass = PostGetter::get_post_class($post_type, $PostClass);
            $post = new $PostClass($query);
            // get the latest revision if we're dealing with a preview
            $posts = PostCollection::maybe_set_preview(array($post));
            if ( $post = reset($posts) ) {
                return $post;
            }
        }
 
        $posts = self::get_posts($query, $PostClass);
        if ( $post = reset($posts) ) {
            return $post;
        }
    }
 
    public static function get_posts( $query = false, $PostClass = '\Timber\Post', $return_collection = false ) {
        $posts = self::query_posts($query, $PostClass);
        return apply_filters('timber_post_getter_get_posts', $posts->get_posts($return_collection));
    }
 
    public static function query_post( $query = false, $PostClass = '\Timber\Post' ) {
        $posts = self::query_posts($query, $PostClass);
        if ( method_exists($posts, 'current') && $post = $posts->current() ) {
            return $post;
        }
    }
 
    /**
     * @param mixed $query
     * @param string|array $PostClass
     * @return PostCollection | QueryIterator
    /**
     * @param mixed $query
     * @param string|array $PostClass
     * @return array|bool|null
     */
    public static function get_post( $query = false, $PostClass = '\Timber\Post' ) {
        // if a post id is passed, grab the post directly
        if ( is_numeric($query) ) {
            $post_type = get_post_type($query);
            $PostClass = PostGetter::get_post_class($post_type, $PostClass);
            $post = new $PostClass($query);
            // get the latest revision if we're dealing with a preview
            $posts = PostCollection::maybe_set_preview(array($post));
            if ( $post = reset($posts) ) {
                return $post;
            }
        }
 
        $posts = self::get_posts($query, $PostClass);
        if ( $post = reset($posts) ) {
            return $post;
        }
    }
 
    public static function get_posts( $query = false, $PostClass = '\Timber\Post', $return_collection = false ) {
        $posts = self::query_posts($query, $PostClass);
        return apply_filters('timber_post_getter_get_posts', $posts->get_posts($return_collection));
    }
 
    public static function query_post( $query = false, $PostClass = '\Timber\Post' ) {
        $posts = self::query_posts($query, $PostClass);
        if ( method_exists($posts, 'current') && $post = $posts->current() ) {
            return $post;
        }
    }
 
    /**
     * @param mixed $query
     * @param string|array $PostClass
     * @return PostCollection | QueryIterator
            Twig::init();
            ImageHelper::init();
            Admin::init();
            new Integrations();
            define('TIMBER_LOADED', true);
        }
    }
 
    /* Post Retrieval Routine
    ================================ */
 
    /**
     * Get post.
     * @api
     * @param mixed   $query
     * @param string|array  $PostClass
     * @return array|bool|null
     */
    public static function get_post( $query = false, $PostClass = 'Timber\Post' ) {
        return PostGetter::get_post($query, $PostClass);
    }
 
    /**
     * Get posts.
     * @api
     * @example
     * ```php
     * $posts = Timber::get_posts();
      *  $posts = Timber::get_posts('post_type = article')
      *  $posts = Timber::get_posts(array('post_type' => 'article', 'category_name' => 'sports')); // uses wp_query format.
      *  $posts = Timber::get_posts('post_type=any', array('portfolio' => 'MyPortfolioClass', 'alert' => 'MyAlertClass')); //use a classmap for the $PostClass
     * ```
     * @param mixed   $query
     * @param string|array  $PostClass
     * @return array|bool|null
     */
    public static function get_posts( $query = false, $PostClass = 'Timber\Post', $return_collection = false ) {
        return PostGetter::get_posts($query, $PostClass, $return_collection);
    }
 
defined('ABSPATH') or die;
 
use Timber\Timber;
 
/*
 * The Template for displaying all single posts
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$post            = Timber::query_post();
$context['post'] = $post;
$context['wp_title'] .= ' - ' . $post->title();
$theid = get_field('post_reference',$data["post"]->ID);
$context['theparent'] = Timber::get_post($theid);
 
 
 
// $postcat = get_the_category( $post->ID );
// $results = Timber::get_posts(array('category_name'  => $postcat[0]->slug, 'posts_per_page' => -1));
 
// $context['results'] = $results;
$thenext = get_next_post( true, '', 'category' );
$theprev = get_previous_post( true, '', 'category' );
$context['thenext'] = $thenext->guid;
$context['theprev'] = $theprev->guid;
 
 
Timber::render(['single-' . $post->ID . '.html.twig', 'single-' . $post->post_type . '.html.twig', 'single.html.twig'], $context);
 
    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 /about-us/recognition/compliance/attachment/images/
REDIRECT_REDIRECT_UNIQUE_ID WekdstTjfxYAACcnobIAAAAF
REDIRECT_REDIRECT_SCRIPT_URL /about-us/recognition/compliance/attachment/images/
REDIRECT_REDIRECT_SCRIPT_URI http://fsi-worldwide.com/about-us/recognition/compliance/attachment/images/
REDIRECT_REDIRECT_DOCUMENT_ROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID 7
REDIRECT_REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET /run/ui-fstatd.suexec.socket
REDIRECT_REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET /homepages/sclientMF/http.sock.bin
REDIRECT_REDIRECT_W3TC_ENC _gzip
REDIRECT_REDIRECT_DBENTRY_HOST fsi-worldwide.com
REDIRECT_REDIRECT_DBENTRY_VALUE /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_REDIRECT_DBENTRY_DOCROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_REDIRECT_DBENTRY_HASH d0000
REDIRECT_REDIRECT_DBENTRY__CPU 6
REDIRECT_REDIRECT_DBENTRY__MEM 10240
REDIRECT_REDIRECT_DBENTRY__CGI 346
REDIRECT_REDIRECT_DBENTRY__NPROC 12
REDIRECT_REDIRECT_DBENTRY__TAID 34573973
REDIRECT_REDIRECT_DBENTRY__LANG 1
REDIRECT_REDIRECT_DBENTRY__PARKING 1
REDIRECT_REDIRECT_DBENTRY__STAT 1
REDIRECT_REDIRECT_DBENTRY__CHROOT 7
REDIRECT_REDIRECT_DBENTRY /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID WekdstTjfxYAACcnobIAAAAF
REDIRECT_SCRIPT_URL /about-us/recognition/compliance/attachment/images/
REDIRECT_SCRIPT_URI http://fsi-worldwide.com/about-us/recognition/compliance/attachment/images/
REDIRECT_DOCUMENT_ROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID 7
REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET /run/ui-fstatd.suexec.socket
REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET /homepages/sclientMF/http.sock.bin
REDIRECT_W3TC_ENC _gzip
REDIRECT_DBENTRY_HOST fsi-worldwide.com
REDIRECT_DBENTRY_VALUE /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_DBENTRY_DOCROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_DBENTRY_HASH d0000
REDIRECT_DBENTRY__CPU 6
REDIRECT_DBENTRY__MEM 10240
REDIRECT_DBENTRY__CGI 346
REDIRECT_DBENTRY__NPROC 12
REDIRECT_DBENTRY__TAID 34573973
REDIRECT_DBENTRY__LANG 1
REDIRECT_DBENTRY__PARKING 1
REDIRECT_DBENTRY__STAT 1
REDIRECT_DBENTRY__CHROOT 7
REDIRECT_DBENTRY /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_HANDLER x-mapp-php4
REDIRECT_STATUS 200
UNIQUE_ID WekdstTjfxYAACcnobIAAAAF
SCRIPT_URL /about-us/recognition/compliance/attachment/images/
SCRIPT_URI http://fsi-worldwide.com/about-us/recognition/compliance/attachment/images/
UI_SUEXEC_DEFAULT_CHROOT_ID 7
DBENTRY_HOST fsi-worldwide.com
DBENTRY_VALUE /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
DBENTRY_DOCROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
DBENTRY_HASH d0000
DBENTRY__CPU 6
DBENTRY__MEM 10240
DBENTRY__CGI 346
DBENTRY__NPROC 12
DBENTRY__TAID 34573973
DBENTRY__LANG 1
DBENTRY__PARKING 1
DBENTRY__STAT 1
DBENTRY__CHROOT 7
DBENTRY /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
HTTP_HOST fsi-worldwide.com
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PATH /bin:/usr/bin
SERVER_SIGNATURE
SERVER_NAME fsi-worldwide.com
SERVER_ADDR 195.20.230.39
SERVER_PORT 80
REMOTE_ADDR 107.22.126.144
DOCUMENT_ROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REQUEST_SCHEME http
CONTEXT_PREFIX /system-bin/
CONTEXT_DOCUMENT_ROOT /kunden/usr/lib/cgi-bin/
SERVER_ADMIN webmaster@fsi-worldwide.com
SCRIPT_FILENAME /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite/index.php
REMOTE_PORT 60556
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
STATUS 200
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite/index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1508449714.595
REQUEST_TIME 1508449714
argv Array ( )
argc 0
Key Value
REDIRECT_REDIRECT_UNIQUE_ID WekdstTjfxYAACcnobIAAAAF
REDIRECT_REDIRECT_SCRIPT_URL /about-us/recognition/compliance/attachment/images/
REDIRECT_REDIRECT_SCRIPT_URI http://fsi-worldwide.com/about-us/recognition/compliance/attachment/images/
REDIRECT_REDIRECT_DOCUMENT_ROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID 7
REDIRECT_REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET /run/ui-fstatd.suexec.socket
REDIRECT_REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET /homepages/sclientMF/http.sock.bin
REDIRECT_REDIRECT_W3TC_ENC _gzip
REDIRECT_REDIRECT_DBENTRY_HOST fsi-worldwide.com
REDIRECT_REDIRECT_DBENTRY_VALUE /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_REDIRECT_DBENTRY_DOCROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_REDIRECT_DBENTRY_HASH d0000
REDIRECT_REDIRECT_DBENTRY__CPU 6
REDIRECT_REDIRECT_DBENTRY__MEM 10240
REDIRECT_REDIRECT_DBENTRY__CGI 346
REDIRECT_REDIRECT_DBENTRY__NPROC 12
REDIRECT_REDIRECT_DBENTRY__TAID 34573973
REDIRECT_REDIRECT_DBENTRY__LANG 1
REDIRECT_REDIRECT_DBENTRY__PARKING 1
REDIRECT_REDIRECT_DBENTRY__STAT 1
REDIRECT_REDIRECT_DBENTRY__CHROOT 7
REDIRECT_REDIRECT_DBENTRY /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID WekdstTjfxYAACcnobIAAAAF
REDIRECT_SCRIPT_URL /about-us/recognition/compliance/attachment/images/
REDIRECT_SCRIPT_URI http://fsi-worldwide.com/about-us/recognition/compliance/attachment/images/
REDIRECT_DOCUMENT_ROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_UI_SUEXEC_DEFAULT_CHROOT_ID 7
REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET /run/ui-fstatd.suexec.socket
REDIRECT_UI_SUEXEC_STATISTICS_UNIXSOCKET /homepages/sclientMF/http.sock.bin
REDIRECT_W3TC_ENC _gzip
REDIRECT_DBENTRY_HOST fsi-worldwide.com
REDIRECT_DBENTRY_VALUE /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_DBENTRY_DOCROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REDIRECT_DBENTRY_HASH d0000
REDIRECT_DBENTRY__CPU 6
REDIRECT_DBENTRY__MEM 10240
REDIRECT_DBENTRY__CGI 346
REDIRECT_DBENTRY__NPROC 12
REDIRECT_DBENTRY__TAID 34573973
REDIRECT_DBENTRY__LANG 1
REDIRECT_DBENTRY__PARKING 1
REDIRECT_DBENTRY__STAT 1
REDIRECT_DBENTRY__CHROOT 7
REDIRECT_DBENTRY /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
REDIRECT_HANDLER x-mapp-php4
REDIRECT_STATUS 200
UNIQUE_ID WekdstTjfxYAACcnobIAAAAF
SCRIPT_URL /about-us/recognition/compliance/attachment/images/
SCRIPT_URI http://fsi-worldwide.com/about-us/recognition/compliance/attachment/images/
UI_SUEXEC_DEFAULT_CHROOT_ID 7
DBENTRY_HOST fsi-worldwide.com
DBENTRY_VALUE /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
DBENTRY_DOCROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
DBENTRY_HASH d0000
DBENTRY__CPU 6
DBENTRY__MEM 10240
DBENTRY__CGI 346
DBENTRY__NPROC 12
DBENTRY__TAID 34573973
DBENTRY__LANG 1
DBENTRY__PARKING 1
DBENTRY__STAT 1
DBENTRY__CHROOT 7
DBENTRY /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite:d0000#CPU 6 #MEM 10240 #CGI 346 #NPROC 12 #TAID 34573973 #LANG 1 #PARKING 1 #STAT 1 #CHROOT 7
HTTP_HOST fsi-worldwide.com
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PATH /bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME fsi-worldwide.com
SERVER_ADDR 195.20.230.39
SERVER_PORT 80
REMOTE_ADDR 107.22.126.144
DOCUMENT_ROOT /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite
REQUEST_SCHEME http
CONTEXT_PREFIX /system-bin/
CONTEXT_DOCUMENT_ROOT /kunden/usr/lib/cgi-bin/
SERVER_ADMIN webmaster@fsi-worldwide.com
SCRIPT_FILENAME /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite/index.php
REMOTE_PORT 60556
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /about-us/recognition/compliance/attachment/images/
SCRIPT_NAME /index.php
STATUS 200
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /kunden/homepages/4/d75936541/htdocs/PEFSIWebsite/index.php
0. Whoops\Handler\PrettyPageHandler