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/vhosts/activetameside.com/httpdocs/wp-content/themes/active-tameside/page-templates/about-page.php:26 #3 Whoops\Run:handleError in /var/www/vhosts/activetameside.com/httpdocs/wp-content/themes/active-tameside/page-templates/about-page.php:26 #2 include in /var/www/vhosts/activetameside.com/httpdocs/wp-includes/template-loader.php:106 #1 require_once in /var/www/vhosts/activetameside.com/httpdocs/wp-blog-header.php:19 #0 require in /var/www/vhosts/activetameside.com/httpdocs/index.php:21
Stack frames (5)
4
Whoops\Exception\ErrorException
/page-templates/about-page.php26
3
Whoops\Run handleError
/page-templates/about-page.php26
2
include
/var/www/vhosts/activetameside.com/httpdocs/wp-includes/template-loader.php106
1
require_once
/var/www/vhosts/activetameside.com/httpdocs/wp-blog-header.php19
0
require
/var/www/vhosts/activetameside.com/httpdocs/index.php21
/var/www/vhosts/activetameside.com/httpdocs/wp-content/themes/active-tameside/page-templates/about-page.php
  $charity_section = get_field('charity_section');
  $team_section_intro = get_field('team_section_intro');
  $team_members = get_field('team_members');
  $careers_section = get_field('careers_section');
?>
 
<div class="full-about-page-wrapper">
  <div class="site-center">
    <div class="about-page-intro">
      <div class="col width-6of12">
        <div class="about-page-intro-left-col">
          <h1 class="default-page-title">
            <?php echo the_title(); ?>
          </h1>
          <?php echo the_content(); ?>
        </div>
      </div>
      <div class="col width-6of12">
        <div class="about-page-intro-right-col">
          <?php foreach ($ctas as $cta): ?>
            <div class="display-inline width-6of12">
              <div class="indv-about-page-cta">
                <a href="<?php echo $cta['link']; ?>"><?php echo $cta['title']; ?></a>
              </div>
            </div>
          <?php endforeach ?>
        </div>
      </div>
    </div>
  </div>
 
 
  <div class="default-page-wrapper">
  <?php while(the_flexible_field("flexible_general_page")): ?>
 
    <?php if(get_row_layout() == "fullwidth_content_area"):  ?>
      <?php 
        $fullwidth_content = get_sub_field('fullwidth_content');
      ?>
      <div class="default-flex-content-area flex-margins">
Arguments
  1. "Invalid argument supplied for foreach()"
    
/var/www/vhosts/activetameside.com/httpdocs/wp-content/themes/active-tameside/page-templates/about-page.php
  $charity_section = get_field('charity_section');
  $team_section_intro = get_field('team_section_intro');
  $team_members = get_field('team_members');
  $careers_section = get_field('careers_section');
?>
 
<div class="full-about-page-wrapper">
  <div class="site-center">
    <div class="about-page-intro">
      <div class="col width-6of12">
        <div class="about-page-intro-left-col">
          <h1 class="default-page-title">
            <?php echo the_title(); ?>
          </h1>
          <?php echo the_content(); ?>
        </div>
      </div>
      <div class="col width-6of12">
        <div class="about-page-intro-right-col">
          <?php foreach ($ctas as $cta): ?>
            <div class="display-inline width-6of12">
              <div class="indv-about-page-cta">
                <a href="<?php echo $cta['link']; ?>"><?php echo $cta['title']; ?></a>
              </div>
            </div>
          <?php endforeach ?>
        </div>
      </div>
    </div>
  </div>
 
 
  <div class="default-page-wrapper">
  <?php while(the_flexible_field("flexible_general_page")): ?>
 
    <?php if(get_row_layout() == "fullwidth_content_area"):  ?>
      <?php 
        $fullwidth_content = get_sub_field('fullwidth_content');
      ?>
      <div class="default-flex-content-area flex-margins">
/var/www/vhosts/activetameside.com/httpdocs/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. "/var/www/vhosts/activetameside.com/httpdocs/wp-content/themes/active-tameside/page-templates/about-page.php"
    
/var/www/vhosts/activetameside.com/httpdocs/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. "/var/www/vhosts/activetameside.com/httpdocs/wp-includes/template-loader.php"
    
/var/www/vhosts/activetameside.com/httpdocs/index.php
if( !session_id() ) {
    session_start();
}
 
/**
 * 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. "/var/www/vhosts/activetameside.com/httpdocs/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
Key Value
bowling-booking
array:4 [
  "sessionId" => "2c83b8e236ff0946cb755a8d36499114"
  "user" => []
  "cart" => []
  "payment" => []
]
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/accessibility/"
USER
"lyndseactivtam"
HOME
"/var/www/vhosts/activetameside.com"
SCRIPT_NAME
"/index.php"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/accessibility/"
REMOTE_PORT
"54720"
SCRIPT_FILENAME
"/var/www/vhosts/activetameside.com/httpdocs/index.php"
SERVER_ADMIN
"root@localhost"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/activetameside.com/httpdocs"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/vhosts/activetameside.com/httpdocs"
REMOTE_ADDR
"3.216.28.250"
SERVER_PORT
"443"
SERVER_ADDR
"172.31.93.11"
SERVER_NAME
"www.activetameside.com"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_IF_MODIFIED_SINCE
"Sat, 04 Jul 2020 22:36:24 GMT"
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_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_REAL_IP
"3.216.28.250"
HTTP_HOST
"www.activetameside.com"
proxy-nokeepalive
"1"
HTTPS
"on"
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
W3TC_ENC
"_gzip"
W3TC_SSL
"_ssl"
HTTP_AUTHORIZATION
""
SCRIPT_URI
"https://www.activetameside.com/accessibility/"
SCRIPT_URL
"/accessibility/"
UNIQUE_ID
"X3Vq-IiCwUo1FSMJ3hxNRAAAAAA"
REDIRECT_STATUS
"200"
REDIRECT_HTTPS
"on"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_W3TC_ENC
"_gzip"
REDIRECT_W3TC_SSL
"_ssl"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_SCRIPT_URI
"https://www.activetameside.com/accessibility/"
REDIRECT_SCRIPT_URL
"/accessibility/"
REDIRECT_UNIQUE_ID
"X3Vq-IiCwUo1FSMJ3hxNRAAAAAA"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1601530620.2236
REQUEST_TIME
1601530620
APP_ENV
"DEV"
APP_URL
"https://www.activetameside.com"
API_KEY_SENDGRID
"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"
API_KEY_WORLDPAY
"L_S_34a44ffa-8118-475b-9370-0f9965dfdce3"
Key Value
APP_ENV
"DEV"
APP_URL
"https://www.activetameside.com"
API_KEY_SENDGRID
"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"
API_KEY_WORLDPAY
"L_S_34a44ffa-8118-475b-9370-0f9965dfdce3"
0. Whoops\Handler\PrettyPageHandler