Whoops \ Exception \ ErrorException (E_RECOVERABLE_ERROR)
Argument 2 passed to view() must be of the type array, string given, called in /home/zonemark/public_html/wp-content/themes/zone2018/template-services.php on line 24 and defined Whoops\Exception\ErrorException thrown with message "Argument 2 passed to view() must be of the type array, string given, called in /home/zonemark/public_html/wp-content/themes/zone2018/template-services.php on line 24 and defined" Stacktrace: #5 Whoops\Exception\ErrorException in /home/zonemark/public_html/wp-content/themes/zone2018/vendor/wp-kit/utils/helpers.php:56 #4 Whoops\Run:handleError in /home/zonemark/public_html/wp-content/themes/zone2018/vendor/wp-kit/utils/helpers.php:56 #3 view in /home/zonemark/public_html/wp-content/themes/zone2018/template-services.php:24 #2 include in /home/zonemark/public_html/wp-includes/template-loader.php:74 #1 require_once in /home/zonemark/public_html/wp-blog-header.php:19 #0 require in /home/zonemark/public_html/index.php:17
Stack frames (6)
5
Whoops
\
Exception
\
ErrorException
/
vendor
/
wp-kit
/
utils
/
helpers.php
56
4
Whoops
\
Run
handleError
/
vendor
/
wp-kit
/
utils
/
helpers.php
56
3
view
/
template-services.php
24
2
include
/
home
/
zonemark
/
public_html
/
wp-includes
/
template-loader.php
74
1
require_once
/
home
/
zonemark
/
public_html
/
wp-blog-header.php
19
0
require
/
home
/
zonemark
/
public_html
/
index.php
17
/
home
/
zonemark
/
public_html
/
wp-content
/
themes
/
zone2018
/
vendor
/
wp-kit
/
utils
/
helpers.php
            if (is_array($key)) {
                return app('session')->put($key);
            }
            return app('session')->get($key, $default);
        }
        
    }
 
    if ( ! function_exists('view') ) {
        
        /**
         * Helper function to build views.
         *
         * @param string $view      The view relative path, name.
         * @param array  $data      Passed data.
         * @param array  $mergeData
         *
         * @return string
         */
        function view($view = null, array $data = [], array $mergeData = [])
        {
            $factory = app('view');
            if (func_num_args() === 0) {
                return $factory;
            }
            return $factory->make($view, $data, $mergeData)->render();
        }
        
    }
    
    /*----------------------------------------------*\
        #PATHS
    \*----------------------------------------------*/
 
    if( ! function_exists('resources_path') ) {
        
        /**
         * Gets the resources path
         *
         * @return string
Arguments
  1. "Argument 2 passed to view() must be of the type array, string given, called in /home/zonemark/public_html/wp-content/themes/zone2018/template-services.php on line 24 and defined"
    
/
home
/
zonemark
/
public_html
/
wp-content
/
themes
/
zone2018
/
vendor
/
wp-kit
/
utils
/
helpers.php
            if (is_array($key)) {
                return app('session')->put($key);
            }
            return app('session')->get($key, $default);
        }
        
    }
 
    if ( ! function_exists('view') ) {
        
        /**
         * Helper function to build views.
         *
         * @param string $view      The view relative path, name.
         * @param array  $data      Passed data.
         * @param array  $mergeData
         *
         * @return string
         */
        function view($view = null, array $data = [], array $mergeData = [])
        {
            $factory = app('view');
            if (func_num_args() === 0) {
                return $factory;
            }
            return $factory->make($view, $data, $mergeData)->render();
        }
        
    }
    
    /*----------------------------------------------*\
        #PATHS
    \*----------------------------------------------*/
 
    if( ! function_exists('resources_path') ) {
        
        /**
         * Gets the resources path
         *
         * @return string
Arguments
  1. 4096
    
  2. "Argument 2 passed to view() must be of the type array, string given, called in /home/zonemark/public_html/wp-content/themes/zone2018/template-services.php on line 24 and defined"
    
  3. "/home/zonemark/public_html/wp-content/themes/zone2018/vendor/wp-kit/utils/helpers.php"
    
  4. 56
    
  5. array:1 [
      "view" => "elements"
    ]
    
/
home
/
zonemark
/
public_html
/
wp-content
/
themes
/
zone2018
/
template-services.php
    <?php echo view('elements/page-header', ['colour' => 'sea-light']); ?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
        <!-- Section Intro -->
        <section class="section  bg-sea-light  section--services">
            
            <div class="row  align-center">
                
                <div class="columns  small-12  medium-10  js-reveal-fade-up">
                    
                    <?php the_content(); ?>
    
                </div>
                
            </div>
            
            <?php if(have_rows('service_points')) : ?>
            
                <?php echo view('elements', 'chevron'); ?>
                
            </section>
            
            <!-- Timeline Section -->
            <section class="timeline  section">
                
                <div class="row">
                    
                    <?php
                        
                        $i = 0;
                        $r = 0;
                        
                        while ( have_rows('service_points') ) : the_row();
                        
                        $i++;
                        $r++;
                        
                        $order = 'style="z-index:' . (count(get_field('service_points')) - $r) . '"';
                    
Arguments
  1. "elements"
    
  2. "chevron"
    
/
home
/
zonemark
/
public_html
/
wp-includes
/
template-loader.php
    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;
 
Arguments
  1. "/home/zonemark/public_html/wp-content/themes/zone2018/template-services.php"
    
/
home
/
zonemark
/
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( dirname(__FILE__) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
Arguments
  1. "/home/zonemark/public_html/wp-includes/template-loader.php"
    
/
home
/
zonemark
/
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( dirname( __FILE__ ) . '/wp-blog-header.php' );
 
Arguments
  1. "/home/zonemark/public_html/wp-blog-header.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/what-we-do/services/"
CONTEXT_DOCUMENT_ROOT
"/home/zonemark/public_html"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/home/zonemark/public_html"
GATEWAY_INTERFACE
"CGI/1.1"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_CF_CONNECTING_IP
"54.198.126.110"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_RAY
"44bc378435f2ae38-BOS"
HTTP_CF_VISITOR
"{\"scheme\":\"http\"}"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"www.zonemarketing.co.uk"
HTTP_IF_MODIFIED_SINCE
"Tue, 22 May 2018 21:42:22 GMT"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_X_FORWARDED_FOR
"54.198.126.110"
HTTP_X_FORWARDED_PROTO
"http"
PATH
"/bin:/usr/bin"
QUERY_STRING
""
REDIRECT_CONTEXT_DOCUMENT_ROOT
"/home/zonemark/public_html"
REDIRECT_CONTEXT_PREFIX
""
REDIRECT_DOCUMENT_ROOT
"/home/zonemark/public_html"
REDIRECT_GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
REDIRECT_HTTP_ACCEPT_ENCODING
"gzip"
REDIRECT_HTTP_CF_CONNECTING_IP
"54.198.126.110"
REDIRECT_HTTP_CF_IPCOUNTRY
"US"
REDIRECT_HTTP_CF_RAY
"44bc378435f2ae38-BOS"
REDIRECT_HTTP_CF_VISITOR
"{\"scheme\":\"http\"}"
REDIRECT_HTTP_CONNECTION
"Keep-Alive"
REDIRECT_HTTP_HOST
"www.zonemarketing.co.uk"
REDIRECT_HTTP_IF_MODIFIED_SINCE
"Tue, 22 May 2018 21:42:22 GMT"
REDIRECT_HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
REDIRECT_HTTP_X_FORWARDED_FOR
"54.198.126.110"
REDIRECT_HTTP_X_FORWARDED_PROTO
"http"
REDIRECT_PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
REDIRECT_PATH_TRANSLATED
"/usr/share/ilabs_antimalware/commands/checkdenied"
REDIRECT_QUERY_STRING
""
REDIRECT_REDIRECT_STATUS
"302"
REDIRECT_REMOTE_ADDR
"172.68.54.48"
REDIRECT_REMOTE_PORT
"23892"
REDIRECT_REQUEST_METHOD
"GET"
REDIRECT_REQUEST_SCHEME
"http"
REDIRECT_REQUEST_URI
"/what-we-do/services/"
REDIRECT_SCRIPT_FILENAME
""
REDIRECT_SCRIPT_NAME
"/what-we-do/services/"
REDIRECT_SCRIPT_URI
"http://www.zonemarketing.co.uk/what-we-do/services/"
REDIRECT_SCRIPT_URL
"/what-we-do/services/"
REDIRECT_SERVER_ADDR
"51.255.91.99"
REDIRECT_SERVER_ADMIN
"[email protected]"
REDIRECT_SERVER_NAME
"www.zonemarketing.co.uk"
REDIRECT_SERVER_PORT
"80"
REDIRECT_SERVER_PROTOCOL
"HTTP/1.1"
REDIRECT_SERVER_SIGNATURE
""
REDIRECT_SERVER_SOFTWARE
"Apache"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"W3bCirqvOc2oIVhVZNw0EQAAAFY"
REDIRECT_URL
"/what-we-do/services/"
REMOTE_ADDR
"172.68.54.48"
REMOTE_PORT
"23892"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
SCRIPT_FILENAME
"/home/zonemark/public_html/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"http://www.zonemarketing.co.uk/what-we-do/services/"
SCRIPT_URL
"/what-we-do/services/"
SERVER_ADDR
"51.255.91.99"
SERVER_ADMIN
"[email protected]"
SERVER_NAME
"www.zonemarketing.co.uk"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
UNIQUE_ID
"W3bCirqvOc2oIVhVZNw0EQAAAFY"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
"1534509706.5"
REQUEST_TIME
"1534509706"
argv
[]
argc
"0"
Key Value
CONTEXT_DOCUMENT_ROOT
"/home/zonemark/public_html"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/home/zonemark/public_html"
GATEWAY_INTERFACE
"CGI/1.1"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_CF_CONNECTING_IP
"54.198.126.110"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_RAY
"44bc378435f2ae38-BOS"
HTTP_CF_VISITOR
"{"scheme":"http"}"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"www.zonemarketing.co.uk"
HTTP_IF_MODIFIED_SINCE
"Tue, 22 May 2018 21:42:22 GMT"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
HTTP_X_FORWARDED_FOR
"54.198.126.110"
HTTP_X_FORWARDED_PROTO
"http"
PATH
"/bin:/usr/bin"
QUERY_STRING
""
REDIRECT_CONTEXT_DOCUMENT_ROOT
"/home/zonemark/public_html"
REDIRECT_CONTEXT_PREFIX
""
REDIRECT_DOCUMENT_ROOT
"/home/zonemark/public_html"
REDIRECT_GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
REDIRECT_HTTP_ACCEPT_ENCODING
"gzip"
REDIRECT_HTTP_CF_CONNECTING_IP
"54.198.126.110"
REDIRECT_HTTP_CF_IPCOUNTRY
"US"
REDIRECT_HTTP_CF_RAY
"44bc378435f2ae38-BOS"
REDIRECT_HTTP_CF_VISITOR
"{"scheme":"http"}"
REDIRECT_HTTP_CONNECTION
"Keep-Alive"
REDIRECT_HTTP_HOST
"www.zonemarketing.co.uk"
REDIRECT_HTTP_IF_MODIFIED_SINCE
"Tue, 22 May 2018 21:42:22 GMT"
REDIRECT_HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
REDIRECT_HTTP_X_FORWARDED_FOR
"54.198.126.110"
REDIRECT_HTTP_X_FORWARDED_PROTO
"http"
REDIRECT_PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
REDIRECT_PATH_TRANSLATED
"/usr/share/ilabs_antimalware/commands/checkdenied"
REDIRECT_QUERY_STRING
""
REDIRECT_REDIRECT_STATUS
"302"
REDIRECT_REMOTE_ADDR
"172.68.54.48"
REDIRECT_REMOTE_PORT
"23892"
REDIRECT_REQUEST_METHOD
"GET"
REDIRECT_REQUEST_SCHEME
"http"
REDIRECT_REQUEST_URI
"/what-we-do/services/"
REDIRECT_SCRIPT_FILENAME
""
REDIRECT_SCRIPT_NAME
"/what-we-do/services/"
REDIRECT_SCRIPT_URI
"http://www.zonemarketing.co.uk/what-we-do/services/"
REDIRECT_SCRIPT_URL
"/what-we-do/services/"
REDIRECT_SERVER_ADDR
"51.255.91.99"
REDIRECT_SERVER_ADMIN
"[email protected]"
REDIRECT_SERVER_NAME
"www.zonemarketing.co.uk"
REDIRECT_SERVER_PORT
"80"
REDIRECT_SERVER_PROTOCOL
"HTTP/1.1"
REDIRECT_SERVER_SIGNATURE
""
REDIRECT_SERVER_SOFTWARE
"Apache"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"W3bCirqvOc2oIVhVZNw0EQAAAFY"
REDIRECT_URL
"/what-we-do/services/"
REMOTE_ADDR
"172.68.54.48"
REMOTE_PORT
"23892"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_URI
"/what-we-do/services/"
SCRIPT_FILENAME
"/home/zonemark/public_html/index.php"
SCRIPT_NAME
"/index.php"
SCRIPT_URI
"http://www.zonemarketing.co.uk/what-we-do/services/"
SCRIPT_URL
"/what-we-do/services/"
SERVER_ADDR
"51.255.91.99"
SERVER_ADMIN
"[email protected]"
SERVER_NAME
"www.zonemarketing.co.uk"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
UNIQUE_ID
"W3bCirqvOc2oIVhVZNw0EQAAAFY"
0. Whoops\Handler\PrettyPageHandler