InvalidArgumentException
View [@THEME.index.twig] not found. InvalidArgumentException thrown with message "View [@THEME.index.twig] not found." Stacktrace: #10 InvalidArgumentException in /var/www/vhosts/a-n.co.uk/public_html/bedrock/vendor/illuminate/view/FileViewFinder.php:137 #9 Illuminate\View\FileViewFinder:findInPaths in /var/www/vhosts/a-n.co.uk/public_html/bedrock/vendor/illuminate/view/FileViewFinder.php:79 #8 Illuminate\View\FileViewFinder:find in /var/www/vhosts/a-n.co.uk/public_html/bedrock/vendor/illuminate/view/Factory.php:129 #7 Illuminate\View\Factory:make in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/app/mu-plugins/core-framework/src/Themosis/Facades/Facade.php:66 #6 call_user_func_array in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/app/mu-plugins/core-framework/src/Themosis/Facades/Facade.php:66 #5 Themosis\Facades\Facade:__callStatic in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/app/mu-plugins/nexus-theme/src/Contract/BaseContract.php:134 #4 Themosis\Facades\View:make in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/app/mu-plugins/nexus-theme/src/Contract/BaseContract.php:134 #3 AD\Nexus\Theme\Contract\BaseContract:render in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/app/themes/a-n/index.php:37 #2 include in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/wp/wp-includes/template-loader.php:75 #1 require_once in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/wp/wp-blog-header.php:19 #0 require in /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/index.php:4
Stack frames (11)
10
InvalidArgumentException
/
vendor
/
illuminate
/
view
/
FileViewFinder.php
137
9
Illuminate
\
View
\
FileViewFinder
findInPaths
/
vendor
/
illuminate
/
view
/
FileViewFinder.php
79
8
Illuminate
\
View
\
FileViewFinder
find
/
vendor
/
illuminate
/
view
/
Factory.php
129
7
Illuminate
\
View
\
Factory
make
/
web
/
app
/
mu-plugins
/
core-framework
/
src
/
Themosis
/
Facades
/
Facade.php
66
6
call_user_func_array
/
web
/
app
/
mu-plugins
/
core-framework
/
src
/
Themosis
/
Facades
/
Facade.php
66
5
Themosis
\
Facades
\
Facade
__callStatic
/
web
/
app
/
mu-plugins
/
nexus-theme
/
src
/
Contract
/
BaseContract.php
134
4
Themosis
\
Facades
\
View
make
/
web
/
app
/
mu-plugins
/
nexus-theme
/
src
/
Contract
/
BaseContract.php
134
3
AD
\
Nexus
\
Theme
\
Contract
\
BaseContract
render
/
web
/
app
/
themes
/
a-n
/
index.php
37
2
include
/
web
/
wp
/
wp-includes
/
template-loader.php
75
1
require_once
/
web
/
wp
/
wp-blog-header.php
19
0
require
/
web
/
index.php
4
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
vendor
/
illuminate
/
view
/
FileViewFinder.php
    /**
     * Find the given view in the list of paths.
     *
     * @param  string  $name
     * @param  array   $paths
     * @return string
     *
     * @throws \InvalidArgumentException
     */
    protected function findInPaths($name, $paths)
    {
        foreach ((array) $paths as $path) {
            foreach ($this->getPossibleViewFiles($name) as $file) {
                if ($this->files->exists($viewPath = $path.'/'.$file)) {
                    return $viewPath;
                }
            }
        }
 
        throw new InvalidArgumentException("View [$name] not found.");
    }
 
    /**
     * Get an array of possible view files.
     *
     * @param  string  $name
     * @return array
     */
    protected function getPossibleViewFiles($name)
    {
        return array_map(function ($extension) use ($name) {
            return str_replace('.', '/', $name).'.'.$extension;
        }, $this->extensions);
    }
 
    /**
     * Add a location to the finder.
     *
     * @param  string  $location
     * @return void
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
vendor
/
illuminate
/
view
/
FileViewFinder.php
        }
    }
 
    /**
     * Get the fully qualified location of the view.
     *
     * @param  string  $name
     * @return string
     */
    public function find($name)
    {
        if (isset($this->views[$name])) {
            return $this->views[$name];
        }
 
        if ($this->hasHintInformation($name = trim($name))) {
            return $this->views[$name] = $this->findNamespacedView($name);
        }
 
        return $this->views[$name] = $this->findInPaths($name, $this->paths);
    }
 
    /**
     * Get the path to a template with a named path.
     *
     * @param  string  $name
     * @return string
     */
    protected function findNamespacedView($name)
    {
        list($namespace, $view) = $this->parseNamespaceSegments($name);
 
        return $this->findInPaths($view, $this->hints[$namespace]);
    }
 
    /**
     * Get the segments of a template with a named path.
     *
     * @param  string  $name
     * @return array
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
vendor
/
illuminate
/
view
/
Factory.php
        $data = array_merge($mergeData, $this->parseData($data));
 
        return tap($this->viewInstance($path, $path, $data), function ($view) {
            $this->callCreator($view);
        });
    }
 
    /**
     * Get the evaluated view contents for the given view.
     *
     * @param  string  $view
     * @param  array   $data
     * @param  array   $mergeData
     * @return \Illuminate\Contracts\View\View
     */
    public function make($view, $data = [], $mergeData = [])
    {
        $path = $this->finder->find(
            $view = $this->normalizeName($view)
        );
 
        // Next, we will create the view instance and call the view creator for the view
        // which can set any data, etc. Then we will return the view instance back to
        // the caller for rendering or performing other view manipulations on this.
        $data = array_merge($mergeData, $this->parseData($data));
 
        return tap($this->viewInstance($view, $path, $data), function ($view) {
            $this->callCreator($view);
        });
    }
 
    /**
     * Get the rendered contents of a partial from a loop.
     *
     * @param  string  $view
     * @param  array   $data
     * @param  string  $iterator
     * @param  string  $empty
     * @return string
     */
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
app
/
mu-plugins
/
core-framework
/
src
/
Themosis
/
Facades
/
Facade.php
        throw new \RuntimeException('Facade does not implement the "getFacadeAccessor" method.');
    }
 
    /**
     * Magic method. Use to dynamically call the registered
     * instance method.
     *
     * @param string $method The class method used.
     * @param array  $args   The method arguments.
     *
     * @return mixed
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getInstance();
 
        /*
         * Call the instance and its method.
         */
        return call_user_func_array([$instance, $method], $args);
    }
}
 
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
app
/
mu-plugins
/
core-framework
/
src
/
Themosis
/
Facades
/
Facade.php
        throw new \RuntimeException('Facade does not implement the "getFacadeAccessor" method.');
    }
 
    /**
     * Magic method. Use to dynamically call the registered
     * instance method.
     *
     * @param string $method The class method used.
     * @param array  $args   The method arguments.
     *
     * @return mixed
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getInstance();
 
        /*
         * Call the instance and its method.
         */
        return call_user_func_array([$instance, $method], $args);
    }
}
 
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
app
/
mu-plugins
/
nexus-theme
/
src
/
Contract
/
BaseContract.php
        $this->setData('wp_title', $this->core->getTheTitle($this->getPostId()));
    }
 
    /**
     * Render the template via renderer object
     *
     * @return void
     *
     * @author Adrian Toomer
     */
    public function render()
    {
        $data = $this->getMergedData();
 
        if (isset($_SERVER['HTTP_ACCEPT']) && in_array('application/json', explode(",", $_SERVER['HTTP_ACCEPT']))) {
            echo json_encode($data);
            exit;
        }
 
        return View::make($this->template, $data);
    }
 
    /**
     * Merge mock and dynamic data sets
     *
     * @return array
     *
     * @author Adrian Toomer
     */
    protected function getMergedData()
    {
        $this->beforeRender();
        return array_merge($this->mock_data, $this->getData());
    }
 
    /**
     * Return a response with headers etc
     *
     * @return Response
     *
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
app
/
mu-plugins
/
nexus-theme
/
src
/
Contract
/
BaseContract.php
        $this->setData('wp_title', $this->core->getTheTitle($this->getPostId()));
    }
 
    /**
     * Render the template via renderer object
     *
     * @return void
     *
     * @author Adrian Toomer
     */
    public function render()
    {
        $data = $this->getMergedData();
 
        if (isset($_SERVER['HTTP_ACCEPT']) && in_array('application/json', explode(",", $_SERVER['HTTP_ACCEPT']))) {
            echo json_encode($data);
            exit;
        }
 
        return View::make($this->template, $data);
    }
 
    /**
     * Merge mock and dynamic data sets
     *
     * @return array
     *
     * @author Adrian Toomer
     */
    protected function getMergedData()
    {
        $this->beforeRender();
        return array_merge($this->mock_data, $this->getData());
    }
 
    /**
     * Return a response with headers etc
     *
     * @return Response
     *
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
app
/
themes
/
a-n
/
index.php
  'to_ping' => '',
  'pinged' => '',
  'post_modified' => '2016-05-31 14:15:58',
  'post_modified_gmt' => '2016-05-31 13:15:58',
  'post_content_filtered' => '',
  'post_parent' => '0',
  'guid' => 'localhost:3000/?p=1',
  'menu_order' => '0',
  'post_type' => 'post',
  'post_mime_type' => '',
  'comment_count' => '1',
  'filter' => 'raw',
);
 
$contract->mock('posts', [
    $post,$post
]);
 
$contract->setTemplate('@THEME/index.twig');
$contract->render();
 
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
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;
    /**
     * Filter 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;
 
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
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' );
 
}
 
/
var
/
www
/
vhosts
/
a-n.co.uk
/
public_html
/
bedrock
/
web
/
index.php
<?php
/** WordPress view bootstrapper */
define('WP_USE_THEMES', true);
require(__DIR__ . '/wp/wp-blog-header.php');
 

Environment & details:

Key Value
civicrm_install_type wordpress
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx/1.8.0
REQUEST_URI /my-account
USER www-data
HOME /var/www
FCGI_ROLE RESPONDER
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_FILENAME /var/www/vhosts/a-n.co.uk/public_html/bedrock/web/index.php
SCRIPT_NAME /index.php
DOCUMENT_URI /index.php
DOCUMENT_ROOT /var/www/vhosts/a-n.co.uk/public_html/bedrock/web
SERVER_PROTOCOL HTTP/1.0
HTTPS on
GATEWAY_INTERFACE CGI/1.1
REMOTE_ADDR 54.224.225.228
REMOTE_PORT 55050
SERVER_ADDR 192.168.0.201
SERVER_PORT 443
SERVER_NAME new.a-n.co.uk
REDIRECT_STATUS 200
PHP_ADMIN_VALUE open_basedir=/var/www/vhosts/a-n.co.uk/public_html:/var/www/vhosts/a-n.co.uk/tmp upload_tmp_dir=/var/www/vhosts/a-n.co.uk/tmp display_errors=Off error_reporting=E_ERROR
PHP_VALUE include_path=.:/var/www/vhosts/a-n.co.uk/public_html/wp-content/plugins/civicrm/civicrm:/var/www/vhosts/a-n.co.uk/public_html/civicrm/crm/civicrm
APP_VERSION
HTTP_HOST new.a-n.co.uk
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1493199730.1419
REQUEST_TIME 1493199730
DB_NAME andigital
DB_USER andig
DB_PASSWORD kkg98fujf8
DB_HOST andigitalrds.cjuscbrajsqp.eu-west-1.rds.amazonaws.com
WP_ENV development
AN_DOMAIN new.a-n.co.uk
WP_HOME http://new.a-n.co.uk
WP_SITEURL http://new.a-n.co.uk/wp
WP_ORIG_HOME https://www.a-n.co.uk
WP_ORIG_SITEURL https://www.a-n.co.uk/wp
AUTH_KEY SyXN@R<58pVrSR4A0sKFgM053h|GZz~]L0QgK 1[~H@+k`U1nyNddisr,aXz^zl%
SECURE_AUTH_KEY A8fgM^iu||2r^5b,,l5~3jA|iMLb?#dxp+Oxu+7K-:9vL!^wh%8,hZH+kMRHv*O1
LOGGED_IN_KEY -i,ww:
NONCE_KEY %>]|+KY,Q`T]Z!4qCEO,`rZ,$Qd5a!}EJ(ot;P_}{k-ZVmI X5CpvcgNQ KUIbJQ
AUTH_SALT )b$_3:UY@rsy|j6S5`qVt6$/1DS1AJX4=^#aY`/;KY<<
SECURE_AUTH_SALT ~+H8BB?)h0x
LOGGED_IN_SALT um-(7{5+X{u$N^CC:CfoZQn8A;+jBze;!R~@pU9re@Sil`s]YSgz=vNa_tMe>@N7
NONCE_SALT (H-Fp=dc jK.I-w+D@$#/TYxC@}9{@WLF]0jOU8;<
Key Value
DB_NAME andigital
DB_USER andig
DB_PASSWORD kkg98fujf8
DB_HOST andigitalrds.cjuscbrajsqp.eu-west-1.rds.amazonaws.com
WP_ENV development
AN_DOMAIN new.a-n.co.uk
WP_HOME http://new.a-n.co.uk
WP_SITEURL http://new.a-n.co.uk/wp
WP_ORIG_HOME https://www.a-n.co.uk
WP_ORIG_SITEURL https://www.a-n.co.uk/wp
AUTH_KEY SyXN@R<58pVrSR4A0sKFgM053h|GZz~]L0QgK 1[~H@+k`U1nyNddisr,aXz^zl%
SECURE_AUTH_KEY A8fgM^iu||2r^5b,,l5~3jA|iMLb?#dxp+Oxu+7K-:9vL!^wh%8,hZH+kMRHv*O1
LOGGED_IN_KEY -i,ww:
NONCE_KEY %>]|+KY,Q`T]Z!4qCEO,`rZ,$Qd5a!}EJ(ot;P_}{k-ZVmI X5CpvcgNQ KUIbJQ
AUTH_SALT )b$_3:UY@rsy|j6S5`qVt6$/1DS1AJX4=^#aY`/;KY<<
SECURE_AUTH_SALT ~+H8BB?)h0x
LOGGED_IN_SALT um-(7{5+X{u$N^CC:CfoZQn8A;+jBze;!R~@pU9re@Sil`s]YSgz=vNa_tMe>@N7
NONCE_SALT (H-Fp=dc jK.I-w+D@$#/TYxC@}9{@WLF]0jOU8;<
0. Whoops\Handler\PrettyPageHandler