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 /var/www/becafeoli-pipino/wordpress/current/wp-content/themes/g5_helium/single-probu_gallery.php:56 #3 Gantry\Component\Whoops\SystemFacade:handleError in /var/www/becafeoli-pipino/wordpress/current/wp-content/themes/g5_helium/single-probu_gallery.php:56 #2 include in /var/www/becafeoli-pipino/wordpress/current/wp-includes/template-loader.php:98 #1 require_once in /var/www/becafeoli-pipino/wordpress/current/wp-blog-header.php:19 #0 require in /var/www/becafeoli-pipino/wordpress/current/index.php:17
Stack frames (5)
4
Whoops\Exception\ErrorException
/var/www/becafeoli-pipino/wordpress/current/wp-content/themes/g5_helium/single-probu_gallery.php56
3
Gantry\Component\Whoops\SystemFacade handleError
/var/www/becafeoli-pipino/wordpress/current/wp-content/themes/g5_helium/single-probu_gallery.php56
2
include
/var/www/becafeoli-pipino/wordpress/current/wp-includes/template-loader.php98
1
require_once
/var/www/becafeoli-pipino/wordpress/current/wp-blog-header.php19
0
require
/var/www/becafeoli-pipino/wordpress/current/index.php17
        /*$videos = get_field('video', $post->ID);
        // start videoblok
        
        foreach( $videos as $video ) {
            echo '<div class="video-item-block">';
            echo '<a href="';
                echo $video['url'];
            echo '"  data-target="#myModal">';
                echo '<span>video</span><img src="' . $video['image']['url'] . '"/>';
            echo '</a></div>';
        }
        
        /// end videoblock*/
        ?>
        
    <div class="clearfix"></div>
    <div id="links" class="row">
    <div class="probu-gallery-grid">

        <?php foreach( $images as $image ): ?>
            <div class="col-md-3 col-xs-6 col-sm-4 probu-gallery-container"><a href="<?php echo $image['sizes']['gallery-display']; ?>">
                 <img src="<?php echo $image['sizes']['gallery-thumb']; ?>" alt="<?php echo $image['alt']; ?>" class="probu-gallery-image"  />
            </a></div>                        
        <?php endforeach; ?>
        </div>
    </div>


    </div><!-- content -->
    </div><!-- #primary -->


<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls">
    <div class="slides"></div>
    <h3 class="title"></h3>
    <a class="prev">&lsaquo;</a>
    <a class="next">&rsaquo;</a>
    <a class="close">&#10799;</a>
    <a class="play-pause"></a>
    <ol class="indicator"></ol>
        /*$videos = get_field('video', $post->ID);
        // start videoblok
        
        foreach( $videos as $video ) {
            echo '<div class="video-item-block">';
            echo '<a href="';
                echo $video['url'];
            echo '"  data-target="#myModal">';
                echo '<span>video</span><img src="' . $video['image']['url'] . '"/>';
            echo '</a></div>';
        }
        
        /// end videoblock*/
        ?>
        
    <div class="clearfix"></div>
    <div id="links" class="row">
    <div class="probu-gallery-grid">

        <?php foreach( $images as $image ): ?>
            <div class="col-md-3 col-xs-6 col-sm-4 probu-gallery-container"><a href="<?php echo $image['sizes']['gallery-display']; ?>">
                 <img src="<?php echo $image['sizes']['gallery-thumb']; ?>" alt="<?php echo $image['alt']; ?>" class="probu-gallery-image"  />
            </a></div>                        
        <?php endforeach; ?>
        </div>
    </div>


    </div><!-- content -->
    </div><!-- #primary -->


<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls">
    <div class="slides"></div>
    <h3 class="title"></h3>
    <a class="prev">&lsaquo;</a>
    <a class="next">&rsaquo;</a>
    <a class="close">&#10799;</a>
    <a class="play-pause"></a>
    <ol class="indicator"></ol>
            }
 
            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;
}
 
<?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 nginx/1.15.8
REQUEST_URI /inbeeld/welkom-in-olivier-leiden/
WARPDRIVE_SYSTEM_NAME becafeoli-pipino
WARPDRIVE_ACCESS_TOKEN e66f8f8f88d6c8efc9206f4900eefe50
WARPDRIVE_API https://api.savvii.services
TMPDIR /var/www/becafeoli-pipino/tmp
USER becafeoli-pipino
HOME /var/www/becafeoli-pipino
HTTP_X_VARNISH 756285464
HTTP_ACCEPT_ENCODING gzip
HTTP_X_FORWARDED_FOR 3.233.239.102, 172.104.244.125, 172.104.244.125
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_X_FORWARDED_PORT 443
HTTP_X_FORWARDED_PROTO https
HTTP_X_REMOTE_IP 3.233.239.102
HTTP_X_REAL_IP 3.233.239.102
HTTP_HOST leiden.cafe-olivier.be
HTTP_SCHEME https
HTTPS on
SCRIPT_FILENAME /var/www/becafeoli-pipino/wordpress/current/index.php
REDIRECT_STATUS 200
SERVER_NAME leiden.cafe-olivier.be
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
REMOTE_PORT
REMOTE_ADDR 3.233.239.102
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /var/www/becafeoli-pipino/wordpress/current
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1585808543.8805
REQUEST_TIME 1585808543
empty
0. Whoops\Handler\PrettyPageHandler