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/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-content/themes/bendfp23/single-reading.php:37 #3 Whoops\Run:handleError in /home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-content/themes/bendfp23/single-reading.php:37 #2 include in /home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-blog-header.php:19 #0 require in /home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/index.php:17
Stack frames (5)
4
Whoops\Exception\ErrorException
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-content/themes/bendfp23/single-reading.php37
3
Whoops\Run handleError
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-content/themes/bendfp23/single-reading.php37
2
include
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-includes/template-loader.php106
1
require_once
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-blog-header.php19
0
require
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/index.php17
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-content/themes/bendfp23/single-reading.php
    $blog = Timber::get_posts( $blogargs );
*/
    $context['post'] = $post;
    
    $context['posttitle'] = get_the_title( $post_id );
    $context['postcontent'] = apply_filters('the_content',get_the_content());
    
    
    $series = get_taxnomy_of_post($post_id,'series');
    
    foreach($series as $set){
        $cover_image_data = get_term_meta($set->term_id,"cover_image",TRUE);
        $cover_image = $cover_image_data['guid'];
        $set->cover_image = $cover_image;
    }
    
    $context['series'] = $series;
    
    $missions = get_taxnomy_of_post($post_id,'mission');
    foreach($missions as $mission){
        $cover_image_data = get_term_meta($mission->term_id,"cover_image",TRUE);
        $cover_image = $cover_image_data['guid'];
        $mission->cover_image = $cover_image;
    }
    $context['missions'] = $missions;
    
    $context['amazon_link'] = get_post_meta($post_id,'amazon_link',TRUE);
    $context['barnes_noble_link'] = get_post_meta($post_id,'barnes_noble_link',TRUE);
    $context['goodreads_link'] = get_post_meta($post_id,'goodreads_link',TRUE);
    $context['independent_purchase_link'] = get_post_meta($post_id,'independent_purchase_link',TRUE);
    
 
    $context['postimage'] = get_the_post_thumbnail_url($post_id,'medium');
    
    $template = "single-reading.twig.html";
    
    // d($data);
    
    print do_shortcode( Timber::compile( $template, $context )  ); 
 
Arguments
  1. "Invalid argument supplied for foreach()"
    
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-content/themes/bendfp23/single-reading.php
    $blog = Timber::get_posts( $blogargs );
*/
    $context['post'] = $post;
    
    $context['posttitle'] = get_the_title( $post_id );
    $context['postcontent'] = apply_filters('the_content',get_the_content());
    
    
    $series = get_taxnomy_of_post($post_id,'series');
    
    foreach($series as $set){
        $cover_image_data = get_term_meta($set->term_id,"cover_image",TRUE);
        $cover_image = $cover_image_data['guid'];
        $set->cover_image = $cover_image;
    }
    
    $context['series'] = $series;
    
    $missions = get_taxnomy_of_post($post_id,'mission');
    foreach($missions as $mission){
        $cover_image_data = get_term_meta($mission->term_id,"cover_image",TRUE);
        $cover_image = $cover_image_data['guid'];
        $mission->cover_image = $cover_image;
    }
    $context['missions'] = $missions;
    
    $context['amazon_link'] = get_post_meta($post_id,'amazon_link',TRUE);
    $context['barnes_noble_link'] = get_post_meta($post_id,'barnes_noble_link',TRUE);
    $context['goodreads_link'] = get_post_meta($post_id,'goodreads_link',TRUE);
    $context['independent_purchase_link'] = get_post_meta($post_id,'independent_purchase_link',TRUE);
    
 
    $context['postimage'] = get_the_post_thumbnail_url($post_id,'medium');
    
    $template = "single-reading.twig.html";
    
    // d($data);
    
    print do_shortcode( Timber::compile( $template, $context )  ); 
 
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-includes/template-loader.php
            }
 
            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;
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-content/themes/bendfp23/single-reading.php"
    
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/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';
 
}
 
Arguments
  1. "/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-includes/template-loader.php"
    
/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/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';
 
Arguments
  1. "/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache/2.4.57 (Debian)"
REQUEST_URI
"/reading/an-altar-in-the-world/"
WP_REDIS_DISABLED
"0"
USER
"vsjjwwecjm"
HOME
"/home/743387.cloudwaysapps.com/vsjjwwecjm"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/reading/an-altar-in-the-world/"
REMOTE_PORT
"40568"
SCRIPT_FILENAME
"/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/index.php"
SERVER_ADMIN
"[no address given]"
CONTEXT_DOCUMENT_ROOT
"/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/743387.cloudwaysapps.com/vsjjwwecjm/public_html/"
REMOTE_ADDR
"127.0.0.1"
SERVER_PORT
"80"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"bendfp.org"
SERVER_SIGNATURE
"<address>Apache/2.4.57 (Debian) Server at bendfp.org Port 80</address>\n"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_X_VARNISH
"45066192"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_HOST
"bendfp.org"
HTTP_X_FORWARDED_FOR
"3.237.16.173"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_CONNECTING_IP
"3.237.16.173"
HTTP_CDN_LOOP
"cloudflare"
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_CF_VISITOR
"{\"scheme\":\"https\"}"
HTTP_CF_RAY
"7d2874cc1829093a-IAD"
HTTP_X_VERSION
"611"
HTTP_X_APP_USER
"vsjjwwecjm"
HTTP_X_APPLICATION
"wordpress"
HTTP_X_FORWARDED_HOST
"bendfp.org"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_CLIENT_REAL_IP
"3.237.16.173"
HTTP_X_REAL_IP
"3.237.16.173"
WPR_ENC
"_gzip"
WPR_SSL
"-https"
SCRIPT_URI
"http://bendfp.org/reading/an-altar-in-the-world/"
SCRIPT_URL
"/reading/an-altar-in-the-world/"
HTTP_AUTHORIZATION
""
HTTPS
"on"
cw_allowed_ip
"1"
REDIRECT_STATUS
"200"
REDIRECT_WPR_ENC
"_gzip"
REDIRECT_WPR_SSL
"-https"
REDIRECT_SCRIPT_URI
"http://bendfp.org/reading/an-altar-in-the-world/"
REDIRECT_SCRIPT_URL
"/reading/an-altar-in-the-world/"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_cw_allowed_ip
"1"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1685968534.5514
REQUEST_TIME
1685968534
empty
0. Whoops\Handler\PrettyPageHandler