Twig_Error_Syntax
Unknown "render" tag. Twig_Error_Syntax thrown with message "Unknown "render" tag." Stacktrace: #13 Twig_Error_Syntax in /home/d573310/public_html/wp-content/themes/dsi/templates/single-services.twig:21 #12 Twig_Parser:subparse in /home/d573310/public_html/wp-content/plugins/timber-library/vendor/twig/twig/lib/Twig/Parser.php:103 #11 Twig_Parser:parse in /home/d573310/public_html/wp-content/plugins/timber-library/vendor/twig/twig/lib/Twig/Environment.php:712 #10 Twig_Environment:parse in /home/d573310/public_html/wp-content/plugins/timber-library/vendor/twig/twig/lib/Twig/Environment.php:770 #9 Twig_Environment:compileSource in /home/d573310/public_html/wp-content/plugins/timber-library/vendor/twig/twig/lib/Twig/Environment.php:452 #8 Twig_Environment:loadTemplate in /home/d573310/public_html/wp-content/plugins/timber-library/vendor/twig/twig/lib/Twig/Environment.php:363 #7 Twig_Environment:render in /home/d573310/public_html/wp-content/plugins/timber-library/lib/Loader.php:74 #6 Timber\Loader:render in /home/d573310/public_html/wp-content/plugins/timber-library/lib/Timber.php:318 #5 Timber\Timber:compile in /home/d573310/public_html/wp-content/plugins/timber-library/lib/Timber.php:362 #4 Timber\Timber:fetch in /home/d573310/public_html/wp-content/plugins/timber-library/lib/Timber.php:389 #3 Timber\Timber:render in /home/d573310/public_html/wp-content/themes/dsi/single.php:188 #2 include in /home/d573310/public_html/wp-includes/template-loader.php:74 #1 require_once in /home/d573310/public_html/wp-blog-header.php:19 #0 require in /home/d573310/public_html/index.php:17
Stack frames (14)
13
Twig_Error_Syntax
/
templates
/
single-services.twig
21
12
Twig_Parser
subparse
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Parser.php
103
11
Twig_Parser
parse
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
712
10
Twig_Environment
parse
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
770
9
Twig_Environment
compileSource
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
452
8
Twig_Environment
loadTemplate
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
363
7
Twig_Environment
render
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Loader.php
74
6
Timber
\
Loader
render
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Timber.php
318
5
Timber
\
Timber
compile
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Timber.php
362
4
Timber
\
Timber
fetch
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Timber.php
389
3
Timber
\
Timber
render
/
single.php
188
2
include
/
home
/
d573310
/
public_html
/
wp-includes
/
template-loader.php
74
1
require_once
/
home
/
d573310
/
public_html
/
wp-blog-header.php
19
0
require
/
home
/
d573310
/
public_html
/
index.php
17
/
home
/
d573310
/
public_html
/
wp-content
/
themes
/
dsi
/
templates
/
single-services.twig
{% include '@hero.twig' with {title: 'Services' } %}
 
<div class="c-contentblock-gradient last-block">
  {# circle #}
  <div class="circle-box"><div class="circle--top-left--gradient">
    <div class="circle-inner"></div>
    </div>
  </div>
  {# / circle #}
  {# circle #}
  <div class="circle-box"><div class="circle--bottom-right--gradient">
    <div class="circle-inner"></div>
    </div>
  </div>
  {# / circle #}
    <div class="row">
      <div class="column small-12 medium-11 medium-centered large-uncentered large-12">
        {# breadcrumb #}
        <div class="  c-contentblock--nospace">
          {% render '@breadcrumbs' %}
        </div>
          {# / breadcrumb #}
          <div class="row c-contentblock ">
            <div class="column small-12">
              <div class="c-contentblock--separator">
                <p>
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi.
                </p>
              </div>
            </div>
            <div class="column small-12">
              <div class="row">
                <div class="column small-12 medium-4 c-contentblock--separator ">
                  {% render '@search' %}
                </div>
                <div class="column small-12 medium-4 c-contentblock--separator ">
                  {% include '@category-dropdown.twig' with {
                    text: "Select a County",
                    name: "county"
                  } %}
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Parser.php
        // node visitors
        if (null === $this->visitors) {
            $this->visitors = $this->env->getNodeVisitors();
        }
 
        if (null === $this->expressionParser) {
            $this->expressionParser = new Twig_ExpressionParser($this, $this->env);
        }
 
        $this->stream = $stream;
        $this->parent = null;
        $this->blocks = array();
        $this->macros = array();
        $this->traits = array();
        $this->blockStack = array();
        $this->importedSymbols = array(array());
        $this->embeddedTemplates = array();
 
        try {
            $body = $this->subparse($test, $dropNeedle);
 
            if (null !== $this->parent && null === $body = $this->filterBodyNodes($body)) {
                $body = new Twig_Node();
            }
        } catch (Twig_Error_Syntax $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($this->stream->getSourceContext());
            }
 
            if (!$e->getTemplateLine()) {
                $e->setTemplateLine($this->stream->getCurrent()->getLine());
            }
 
            throw $e;
        }
 
        $node = new Twig_Node_Module(new Twig_Node_Body(array($body)), $this->parent, new Twig_Node($this->blocks), new Twig_Node($this->macros), new Twig_Node($this->traits), $this->embeddedTemplates, $stream->getSourceContext());
 
        $traverser = new Twig_NodeTraverser($this->env, $this->visitors);
 
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
 
    public function setParser(Twig_ParserInterface $parser)
    {
        $this->parser = $parser;
    }
 
    /**
     * Converts a token stream to a node tree.
     *
     * @return Twig_Node_Module
     *
     * @throws Twig_Error_Syntax When the token stream is syntactically or semantically wrong
     */
    public function parse(Twig_TokenStream $stream)
    {
        if (null === $this->parser) {
            $this->parser = new Twig_Parser($this);
        }
 
        return $this->parser->parse($stream);
    }
 
    /**
     * Gets the Compiler instance.
     *
     * @return Twig_CompilerInterface
     *
     * @deprecated since 1.25 (to be removed in 2.0)
     */
    public function getCompiler()
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 1.25 and will be removed in 2.0.', __FUNCTION__), E_USER_DEPRECATED);
 
        if (null === $this->compiler) {
            $this->compiler = new Twig_Compiler($this);
        }
 
        return $this->compiler;
    }
 
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
 
    /**
     * Compiles a template source code.
     *
     * @param string|Twig_Source $source The template source code
     * @param string             $name   The template name (deprecated)
     *
     * @return string The compiled PHP source code
     *
     * @throws Twig_Error_Syntax When there was an error during tokenizing, parsing or compiling
     */
    public function compileSource($source, $name = null)
    {
        if (!$source instanceof Twig_Source) {
            @trigger_error(sprintf('Passing a string as the $source argument of %s() is deprecated since version 1.27. Pass a Twig_Source instance instead.', __METHOD__), E_USER_DEPRECATED);
            $source = new Twig_Source($source, $name);
        }
 
        try {
            return $this->compile($this->parse($this->tokenize($source)));
        } catch (Twig_Error $e) {
            $e->setSourceContext($source);
            throw $e;
        } catch (Exception $e) {
            throw new Twig_Error_Syntax(sprintf('An exception has been thrown during the compilation of a template ("%s").', $e->getMessage()), -1, $source, $e);
        }
    }
 
    public function setLoader(Twig_LoaderInterface $loader)
    {
        if (!$loader instanceof Twig_SourceContextLoaderInterface && 0 !== strpos(get_class($loader), 'Mock_')) {
            @trigger_error(sprintf('Twig loader "%s" should implement Twig_SourceContextLoaderInterface since version 1.27.', get_class($loader)), E_USER_DEPRECATED);
        }
 
        $this->loader = $loader;
    }
 
    /**
     * Gets the Loader instance.
     *
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
        if (!class_exists($cls, false)) {
            if ($this->bcGetCacheFilename) {
                $key = $this->getCacheFilename($name);
            } else {
                $key = $this->cache->generateKey($name, $mainCls);
            }
 
            if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
                $this->cache->load($key);
            }
 
            if (!class_exists($cls, false)) {
                $loader = $this->getLoader();
                if (!$loader instanceof Twig_SourceContextLoaderInterface) {
                    $source = new Twig_Source($loader->getSource($name), $name);
                } else {
                    $source = $loader->getSourceContext($name);
                }
 
                $content = $this->compileSource($source);
 
                if ($this->bcWriteCacheFile) {
                    $this->writeCacheFile($key, $content);
                } else {
                    $this->cache->write($key, $content);
                    $this->cache->load($key);
                }
 
                if (!class_exists($mainCls, false)) {
                    /* Last line of defense if either $this->bcWriteCacheFile was used,
                     * $this->cache is implemented as a no-op or we have a race condition
                     * where the cache was cleared between the above calls to write to and load from
                     * the cache.
                     */
                    eval('?>'.$content);
                }
            }
 
            if (!class_exists($cls, false)) {
                throw new Twig_Error_Runtime(sprintf('Failed to load Twig template "%s", index "%s": cache is corrupted.', $name, $index), -1, $source);
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
        @trigger_error(sprintf('The %s method is deprecated since version 1.22 and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
 
        return $this->templateClassPrefix;
    }
 
    /**
     * Renders a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function render($name, array $context = array())
    {
        return $this->loadTemplate($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string $name    The template name
     * @param array  $context An array of parameters to pass to the template
     *
     * @throws Twig_Error_Loader  When the template cannot be found
     * @throws Twig_Error_Syntax  When an error occurred during compilation
     * @throws Twig_Error_Runtime When an error occurred during rendering
     */
    public function display($name, array $context = array())
    {
        $this->loadTemplate($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Loader.php
        }
 
        $key = null;
        $output = false;
        if ( false !== $expires ) {
            ksort($data);
            $key = md5($file.json_encode($data));
            $output = $this->get_cache($key, self::CACHEGROUP, $cache_mode);
        }
 
        if ( false === $output || null === $output ) {
            $twig = $this->get_twig();
            if ( strlen($file) ) {
                $loader = $this->get_loader();
                $result = $loader->getCacheKey($file);
                do_action('timber_loader_render_file', $result);
            }
            $data = apply_filters('timber_loader_render_data', $data);
            $data = apply_filters('timber/loader/render_data', $data, $file);
            $output = $twig->render($file, $data);
        }
 
        if ( false !== $output && false !== $expires && null !== $key ) {
            $this->delete_cache();
            $this->set_cache($key, $output, self::CACHEGROUP, $expires, $cache_mode);
        }
        $output = apply_filters('timber_output', $output);
        return apply_filters('timber/output', $output, $data, $file);
    }
 
    protected function delete_cache() {
        Cleaner::delete_transients();
    }
 
    /**
     * Get first existing template.
     *
     * @param array|string $templates  Name(s) of the Twig template(s) to choose from.
     * @return string|bool             Name of chosen template, otherwise false.
     */
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Timber.php
        if ( $via_render ) {
            $file = apply_filters('timber_render_file', $file);
        } else {
            $file = apply_filters('timber_compile_file', $file);
        }
 
        $output = false;
 
        if ($file !== false) {
            if ( is_null($data) ) {
                $data = array();
            }
 
            if ( $via_render ) {
                $data = apply_filters('timber_render_data', $data);
            } else {
                $data = apply_filters('timber_compile_data', $data);
            }
 
            $output = $loader->render($file, $data, $expires, $cache_mode);
        }
 
        do_action('timber_compile_done');
        return $output;
    }
 
    /**
     * Compile a string.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * $welcome = Timber::compile_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   Optional. An array of data to use in Twig template.
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Timber.php
        $twig = $dummy_loader->get_twig();
        $template = $twig->createTemplate($string);
        return $template->render($data);
    }
 
    /**
     * Fetch function.
     *
     * @api
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The returned output.
     */
    public static function fetch( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::compile($filenames, $data, $expires, $cache_mode, true);
        $output = apply_filters('timber_compile_result', $output);
        return $output;
    }
 
    /**
     * Render function.
     *
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::get_context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
/
home
/
d573310
/
public_html
/
wp-content
/
plugins
/
timber-library
/
lib
/
Timber.php
     * Passes data to a Twig file and echoes the output.
     *
     * @api
     * @example
     * ```php
     * $context = Timber::get_context();
     *
     * Timber::render( 'index.twig', $context );
     * ```
     * @param array|string $filenames  Name of the Twig file to render. If this is an array of files, Timber will
     *                                 render the first file that exists.
     * @param array        $data       Optional. An array of data to use in Twig template.
     * @param bool|int     $expires    Optional. In seconds. Use false to disable cache altogether. When passed an
     *                                 array, the first value is used for non-logged in visitors, the second for users.
     *                                 Default false.
     * @param string       $cache_mode Optional. Any of the cache mode constants defined in TimberLoader.
     * @return bool|string The echoed output.
     */
    public static function render( $filenames, $data = array(), $expires = false, $cache_mode = Loader::CACHE_USE_DEFAULT ) {
        $output = self::fetch($filenames, $data, $expires, $cache_mode);
        echo $output;
        return $output;
    }
 
    /**
     * Render a string with Twig variables.
     *
     * @api
     * @example
     * ```php
     * $data = array(
     *     'username' => 'Jane Doe',
     * );
     *
     * Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
     * ```
     * @param string $string A string with Twig variables.
     * @param array  $data   An array of data to use in Twig template.
     * @return bool|string
     */
/
home
/
d573310
/
public_html
/
wp-content
/
themes
/
dsi
/
single.php
                'post_status' => 'publish',
         );
 
         $branches = array(
          'numberposts' => -1,
           'post_type'   => 'dsi_branches',
           'post_status' => 'publish',
           'orderby'        => 'title',
           'order'         => 'ASC'
           );
 
     $context['branches'] = new Timber\PostQuery($branches);
     $context['news'] = new Timber\PostQuery($news);
 
        Timber::render('single-media.twig', $context);
 
    } elseif( is_singular('dsi_services') ) {
        // $terms = wp_get_post_terms( $post_id, 'services_type');
        // $context['terms'] = $terms;
        Timber::render('single-services.twig', $context);
 
    } elseif( is_singular('dsi_charity') ) {
        $charity = array(
            'numberposts' => -1,
          'post_type'   => 'dsi_charity',
          'post_status' => 'publish',
          'orderby'        => 'title',
          'order'         => 'ASC'
          );
         $context['charity'] = new Timber\PostQuery($charity);
        Timber::render('single-charity.twig', $context);
    } else {
        Timber::render( array( 'single-' . $post->ID . '.twig', 'single-' . $post->post_type . '.twig', 'single.twig' ), $context );
    }
}
 
/
home
/
d573310
/
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;
 
/
home
/
d573310
/
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' );
 
}
 
/
home
/
d573310
/
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' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /services-detail/early-development/
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION Keep-Alive
CONTENT_LENGTH 0
HTTP_HOST downsyndrome.ie
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_HTTPS 1
REDIRECT_UNIQUE_ID W3K4K@KhKmDYmMQCKYxexgAAAgE
REDIRECT_SCRIPT_URL /services-detail/early-development/
REDIRECT_SCRIPT_URI https://downsyndrome.ie/services-detail/early-development/
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI downsyndrome.ie
REDIRECT_STATUS 200
UNIQUE_ID W3K4K@KhKmDYmMQCKYxexgAAAgE
SCRIPT_URL /services-detail/early-development/
SCRIPT_URI https://downsyndrome.ie/services-detail/early-development/
HTTPS on
SSL_TLS_SNI downsyndrome.ie
SERVER_SIGNATURE
SERVER_NAME downsyndrome.ie
SERVER_ADDR 91.210.235.60
SERVER_PORT 443
REMOTE_ADDR 54.198.126.110
DOCUMENT_ROOT /home/d573310/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/d573310/public_html
SERVER_ADMIN webmaster@downsyndrome.ie
SCRIPT_FILENAME /home/d573310/public_html/index.php
REMOTE_PORT 56808
REDIRECT_URL /services-detail/early-development/
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1534244907.0221
REQUEST_TIME 1534244907
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
0. Whoops\Handler\PrettyPageHandler