Whoops \ Exception \ ErrorException (E_WARNING)
Invalid argument supplied for foreach() Whoops\Exception\ErrorException thrown with message "Invalid argument supplied for foreach()" Stacktrace: #4 Whoops\Exception\ErrorException in /home/runcloud/webapps/bazuin-timmerwerken/content/themes/bazuin-timmerwerken/single.php:21 #3 Whoops\Run:handleError in /home/runcloud/webapps/bazuin-timmerwerken/content/themes/bazuin-timmerwerken/single.php:21 #2 include in /home/runcloud/webapps/bazuin-timmerwerken/wp/wp-includes/template-loader.php:75 #1 require_once in /home/runcloud/webapps/bazuin-timmerwerken/wp/wp-blog-header.php:19 #0 require in /home/runcloud/webapps/bazuin-timmerwerken/index.php:3
Stack frames (5)
4
Whoops
\
Exception
\
ErrorException
/
content
/
themes
/
bazuin-timmerwerken
/
single.php
21
3
Whoops
\
Run
handleError
/
content
/
themes
/
bazuin-timmerwerken
/
single.php
21
2
include
/
wp
/
wp-includes
/
template-loader.php
75
1
require_once
/
wp
/
wp-blog-header.php
19
0
require
/
index.php
3
/
home
/
runcloud
/
webapps
/
bazuin-timmerwerken
/
content
/
themes
/
bazuin-timmerwerken
/
single.php
/**
 * Single template.
 *
 * Dit is de template voor elke single post, ook van andere custom post types.
 * Wanneer je een andere single post pagina wilt maken moet dit in het format single-{post type}.php
 *
 * @package maasfactor_boilerplate
 */
 use function Maasfactor\Functions\get_field;
get_header(); ?>
 
    <section id="post-content">
        <div class="column">
            <h1><?php the_title(); ?></h1>
            <?php the_content(); ?>
        </div>
    </section>
 
    <div id="portfolio-carousel" class="owl-carousel">
        <?php foreach(get_field('portfolio', 'slider') as $key => $entry): ?>
            <div class="image" style="background-image: url('<?php echo $entry['slider-image']?>');"></div>
        <?php endforeach; ?>
    </div>
 
<?php get_footer(); ?>
 
/
home
/
runcloud
/
webapps
/
bazuin-timmerwerken
/
content
/
themes
/
bazuin-timmerwerken
/
single.php
/**
 * Single template.
 *
 * Dit is de template voor elke single post, ook van andere custom post types.
 * Wanneer je een andere single post pagina wilt maken moet dit in het format single-{post type}.php
 *
 * @package maasfactor_boilerplate
 */
 use function Maasfactor\Functions\get_field;
get_header(); ?>
 
    <section id="post-content">
        <div class="column">
            <h1><?php the_title(); ?></h1>
            <?php the_content(); ?>
        </div>
    </section>
 
    <div id="portfolio-carousel" class="owl-carousel">
        <?php foreach(get_field('portfolio', 'slider') as $key => $entry): ?>
            <div class="image" style="background-image: url('<?php echo $entry['slider-image']?>');"></div>
        <?php endforeach; ?>
    </div>
 
<?php get_footer(); ?>
 
/
home
/
runcloud
/
webapps
/
bazuin-timmerwerken
/
wp
/
wp-includes
/
template-loader.php
	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()        ) :
	elseif ( is_paged()          && $template = get_paged_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;
 
/
home
/
runcloud
/
webapps
/
bazuin-timmerwerken
/
wp
/
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( dirname(__FILE__) . '/wp-load.php' );
 
	// Set up the WordPress query.
	wp();
 
	// Load the theme template.
	require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
/
home
/
runcloud
/
webapps
/
bazuin-timmerwerken
/
index.php
<?php
define('WP_USE_THEMES', true);
require('./wp/wp-blog-header.php');
 

Environment & details:

Key Value
version 4.7-alpha-38443
WP Array ( [public_query_vars] => Array ( [0] => m [1] => p [2] => posts [3] => w [4] => cat [5] => withcomments [6] => withoutcomments [7] => s [8] => search [9] => exact [10] => sentence [11] => calendar [12] => page [13] => paged [14] => more [15] => tb [16] => pb [17] => author [18] => order [19] => orderby [20] => year [21] => monthnum [22] => day [23] => hour [24] => minute [25] => second [26] => name [27] => category_name [28] => tag [29] => feed [30] => author_name [31] => static [32] => pagename [33] => page_id [34] => error [35] => attachment [36] => attachment_id [37] => subpost [38] => subpost_id [39] => preview [40] => robots [41] => taxonomy [42] => term [43] => cpage [44] => post_type [45] => embed [46] => post_format [47] => sitemap [48] => sitemap_n [49] => xsl [50] => rest_route ) [private_query_vars] => Array ( [0] => offset [1] => posts_per_page [2] => posts_per_archive_page [3] => showposts [4] => nopaging [5] => post_type [6] => post_status [7] => category__in [8] => category__not_in [9] => category__and [10] => tag__in [11] => tag__not_in [12] => tag__and [13] => tag_slug__in [14] => tag_slug__and [15] => tag_id [16] => post_mime_type [17] => perm [18] => comments_per_page [19] => post__in [20] => post__not_in [21] => post_parent [22] => post_parent__in [23] => post_parent__not_in [24] => title ) )
WP_Query Array ( [current_post] => -1 [current_comment] => -1 )
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache/2.4.41 (Unix) OpenSSL/1.1.1
REQUEST_URI /byobss-obstacle/
USER runcloud
HOME /home/runcloud
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /byobss-obstacle/
REMOTE_PORT 44504
SCRIPT_FILENAME //home/runcloud/webapps/bazuin-timmerwerken/index.php
SERVER_ADMIN you@example.com
CONTEXT_DOCUMENT_ROOT /home/runcloud/webapps/bazuin-timmerwerken/
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/runcloud/webapps/bazuin-timmerwerken/
REMOTE_ADDR 3.233.221.149
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME bazuin-timmerwerken.nl
SERVER_SIGNATURE
LD_LIBRARY_PATH /RunCloud/Packages/apache2-rc/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
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/)
HTTP_CONNECTION close
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 3.233.221.149
HTTP_X_SERVER_ADDR 45.32.238.29
HTTP_HOST bazuin-timmerwerken.nl
HTTPS on
REDIRECT_STATUS 200
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1582354876.6808
REQUEST_TIME 1582354876
empty
0. Whoops\Handler\PrettyPageHandler