RuntimeException (400)
Template "item.html.twig" is not defined.
Previous exceptions
  • Template "item.html.twig" is not defined. (0)
RuntimeException thrown with message "Template "item.html.twig" is not defined." Stacktrace: #15 RuntimeException in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Twig/Twig.php:394 #14 Twig\Error\LoaderError in /home/u409040259/domains/mokmedis.eu/public_html/vendor/twig/twig/src/Loader/ChainLoader.php:142 #13 Twig\Loader\ChainLoader:getCacheKey in /home/u409040259/domains/mokmedis.eu/public_html/vendor/twig/twig/src/Environment.php:352 #12 Twig\Environment:getTemplateClass in /home/u409040259/domains/mokmedis.eu/public_html/vendor/twig/twig/src/Environment.php:446 #11 Twig\Environment:loadTemplate in /home/u409040259/domains/mokmedis.eu/public_html/vendor/twig/twig/src/Environment.php:424 #10 Twig\Environment:load in /home/u409040259/domains/mokmedis.eu/public_html/vendor/twig/twig/src/Environment.php:385 #9 Twig\Environment:render in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Twig/Twig.php:382 #8 Grav\Common\Twig\Twig:processSite in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Service/OutputServiceProvider.php:27 #7 Grav\Common\Service\OutputServiceProvider:Grav\Common\Service\{closure} in /home/u409040259/domains/mokmedis.eu/public_html/vendor/pimple/pimple/src/Pimple/Container.php:118 #6 Pimple\Container:offsetGet in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Processors/RenderProcessor.php:19 #5 Grav\Common\Processors\RenderProcessor:process in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Grav.php:131 #4 Grav\Common\Grav:Grav\Common\{closure} in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Grav.php:370 #3 Grav\Common\Grav:Grav\Common\{closure} in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Grav.php:346 #2 call_user_func_array in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Grav.php:346 #1 Grav\Common\Grav:__call in /home/u409040259/domains/mokmedis.eu/public_html/system/src/Grav/Common/Grav.php:132 #0 Grav\Common\Grav:process in /home/u409040259/domains/mokmedis.eu/public_html/index.php:54
Stack frames (16)
15
RuntimeException
/
system
/
src
/
Grav
/
Common
/
Twig
/
Twig.php
394
14
Twig
\
Error
\
LoaderError
/
vendor
/
twig
/
twig
/
src
/
Loader
/
ChainLoader.php
142
13
Twig
\
Loader
\
ChainLoader
getCacheKey
/
vendor
/
twig
/
twig
/
src
/
Environment.php
352
12
Twig
\
Environment
getTemplateClass
/
vendor
/
twig
/
twig
/
src
/
Environment.php
446
11
Twig
\
Environment
loadTemplate
/
vendor
/
twig
/
twig
/
src
/
Environment.php
424
10
Twig
\
Environment
load
/
vendor
/
twig
/
twig
/
src
/
Environment.php
385
9
Twig
\
Environment
render
/
system
/
src
/
Grav
/
Common
/
Twig
/
Twig.php
382
8
Grav
\
Common
\
Twig
\
Twig
processSite
/
system
/
src
/
Grav
/
Common
/
Service
/
OutputServiceProvider.php
27
7
Grav
\
Common
\
Service
\
OutputServiceProvider
Grav
\
Common
\
Service
\
{closure}
/
vendor
/
pimple
/
pimple
/
src
/
Pimple
/
Container.php
118
6
Pimple
\
Container
offsetGet
/
system
/
src
/
Grav
/
Common
/
Processors
/
RenderProcessor.php
19
5
Grav
\
Common
\
Processors
\
RenderProcessor
process
/
system
/
src
/
Grav
/
Common
/
Grav.php
131
4
Grav
\
Common
\
Grav
Grav
\
Common
\
{closure}
/
system
/
src
/
Grav
/
Common
/
Grav.php
370
3
Grav
\
Common
\
Grav
Grav
\
Common
\
{closure}
/
system
/
src
/
Grav
/
Common
/
Grav.php
346
2
call_user_func_array
/
system
/
src
/
Grav
/
Common
/
Grav.php
346
1
Grav
\
Common
\
Grav
__call
/
system
/
src
/
Grav
/
Common
/
Grav.php
132
0
Grav
\
Common
\
Grav
process
/
index.php
54
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Twig
/
Twig.php
            $this->twig->setCache(false);
        }
 
        // Get Twig template layout
        $template = $this->template($page->template() . $ext);
 
        try {
            $output = $this->twig->render($template, $vars + $twig_vars);
        } catch (\Twig_Error_Loader $e) {
            $error_msg = $e->getMessage();
            // Try html version of this template if initial template was NOT html
            if ($ext != '.html' . TWIG_EXT) {
                try {
                    $page->templateFormat('html');
                    $output = $this->twig->render($page->template() . '.html' . TWIG_EXT, $vars + $twig_vars);
                } catch (\Twig_Error_Loader $e) {
                    throw new \RuntimeException($error_msg, 400, $e);
                }
            } else {
                throw new \RuntimeException($error_msg, 400, $e);
            }
        }
 
        return $output;
    }
 
    /**
     * Wraps the Twig_Loader_Filesystem addPath method (should be used only in `onTwigLoader()` event
     * @param $template_path
     * @param null $namespace
     */
    public function addPath($template_path, $namespace = '__main__')
    {
        $this->loader->addPath($template_path, $namespace);
    }
 
    /**
     * Wraps the Twig_Loader_Filesystem prependPath method (should be used only in `onTwigLoader()` event
     * @param $template_path
     * @param null $namespace
Arguments
  1. "Template "item.html.twig" is not defined."
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
vendor
/
twig
/
twig
/
src
/
Loader
/
ChainLoader.php
 
        return $this->hasSourceCache[$name] = false;
    }
 
    public function getCacheKey($name)
    {
        $exceptions = [];
        foreach ($this->loaders as $loader) {
            if ($loader instanceof ExistsLoaderInterface && !$loader->exists($name)) {
                continue;
            }
 
            try {
                return $loader->getCacheKey($name);
            } catch (LoaderError $e) {
                $exceptions[] = \get_class($loader).': '.$e->getMessage();
            }
        }
 
        throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode(', ', $exceptions).')' : ''));
    }
 
    public function isFresh($name, $time)
    {
        $exceptions = [];
        foreach ($this->loaders as $loader) {
            if ($loader instanceof ExistsLoaderInterface && !$loader->exists($name)) {
                continue;
            }
 
            try {
                return $loader->isFresh($name, $time);
            } catch (LoaderError $e) {
                $exceptions[] = \get_class($loader).': '.$e->getMessage();
            }
        }
 
        throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode(', ', $exceptions).')' : ''));
    }
}
Arguments
  1. "Template "item.html.twig" is not defined."
    
Exception message: Template "item.html.twig" is not defined.
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
vendor
/
twig
/
twig
/
src
/
Environment.php
    /**
     * Gets the template class associated with the given string.
     *
     * The generated template class is based on the following parameters:
     *
     *  * The cache key for the given template;
     *  * The currently enabled extensions;
     *  * Whether the Twig C extension is available or not;
     *  * PHP version;
     *  * Twig version;
     *  * Options with what environment was created.
     *
     * @param string   $name  The name for which to calculate the template class name
     * @param int|null $index The index if it is an embedded template
     *
     * @return string The template class name
     */
    public function getTemplateClass($name, $index = null)
    {
        $key = $this->getLoader()->getCacheKey($name).$this->optionsHash;
 
        return $this->templateClassPrefix.hash('sha256', $key).(null === $index ? '' : '___'.$index);
    }
 
    /**
     * Gets the template class prefix.
     *
     * @return string The template class prefix
     *
     * @deprecated since 1.22 (to be removed in 2.0)
     */
    public function getTemplateClassPrefix()
    {
        @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.
Arguments
  1. "item.html.twig"
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
vendor
/
twig
/
twig
/
src
/
Environment.php
    /**
     * Loads a template internal representation.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @param string $name  The template name
     * @param int    $index The index if it is an embedded template
     *
     * @return \Twig_TemplateInterface A template instance representing the given template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     *
     * @internal
     */
    public function loadTemplate($name, $index = null)
    {
        return $this->loadClass($this->getTemplateClass($name), $name, $index);
    }
 
    /**
     * @internal
     */
    public function loadClass($cls, $name, $index = null)
    {
        $mainCls = $cls;
        if (null !== $index) {
            $cls .= '___'.$index;
        }
 
        if (isset($this->loadedTemplates[$cls])) {
            return $this->loadedTemplates[$cls];
        }
 
        if (!class_exists($cls, false)) {
            if ($this->bcGetCacheFilename) {
                $key = $this->getCacheFilename($name);
            } else {
Arguments
  1. "item.html.twig"
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
vendor
/
twig
/
twig
/
src
/
Environment.php
     *
     * @param string|TemplateWrapper|\Twig\Template $name The template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     *
     * @return TemplateWrapper
     */
    public function load($name)
    {
        if ($name instanceof TemplateWrapper) {
            return $name;
        }
 
        if ($name instanceof Template) {
            return new TemplateWrapper($this, $name);
        }
 
        return new TemplateWrapper($this, $this->loadTemplate($name));
    }
 
    /**
     * Loads a template internal representation.
     *
     * This method is for internal use only and should never be called
     * directly.
     *
     * @param string $name  The template name
     * @param int    $index The index if it is an embedded template
     *
     * @return \Twig_TemplateInterface A template instance representing the given template name
     *
     * @throws LoaderError  When the template cannot be found
     * @throws RuntimeError When a previously generated cache is corrupted
     * @throws SyntaxError  When an error occurred during compilation
     *
     * @internal
     */
    public function loadTemplate($name, $index = null)
Arguments
  1. "item.html.twig"
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
vendor
/
twig
/
twig
/
src
/
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|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @return string The rendered template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function render($name, array $context = [])
    {
        return $this->load($name)->render($context);
    }
 
    /**
     * Displays a template.
     *
     * @param string|TemplateWrapper $name    The template name
     * @param array                  $context An array of parameters to pass to the template
     *
     * @throws LoaderError  When the template cannot be found
     * @throws SyntaxError  When an error occurred during compilation
     * @throws RuntimeError When an error occurred during rendering
     */
    public function display($name, array $context = [])
    {
        $this->load($name)->display($context);
    }
 
    /**
     * Loads a template.
     *
Arguments
  1. "item.html.twig"
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Twig
/
Twig.php
 
        $twig_vars['theme'] = $this->grav['config']->get('theme');
        $twig_vars['pages'] = $pages->root();
        $twig_vars['page'] = $page;
        $twig_vars['header'] = $page->header();
        $twig_vars['media'] = $page->media();
        $twig_vars['content'] = $content;
        $ext = '.' . ($format ? $format : 'html') . TWIG_EXT;
 
        // determine if params are set, if so disable twig cache
        $params = $this->grav['uri']->params(null, true);
        if (!empty($params)) {
            $this->twig->setCache(false);
        }
 
        // Get Twig template layout
        $template = $this->template($page->template() . $ext);
 
        try {
            $output = $this->twig->render($template, $vars + $twig_vars);
        } catch (\Twig_Error_Loader $e) {
            $error_msg = $e->getMessage();
            // Try html version of this template if initial template was NOT html
            if ($ext != '.html' . TWIG_EXT) {
                try {
                    $page->templateFormat('html');
                    $output = $this->twig->render($page->template() . '.html' . TWIG_EXT, $vars + $twig_vars);
                } catch (\Twig_Error_Loader $e) {
                    throw new \RuntimeException($error_msg, 400, $e);
                }
            } else {
                throw new \RuntimeException($error_msg, 400, $e);
            }
        }
 
        return $output;
    }
 
    /**
     * Wraps the Twig_Loader_Filesystem addPath method (should be used only in `onTwigLoader()` event
Arguments
  1. "item.html.twig"
    
  2. array:27 [
      "config" => Config {}
      "system" => array:25 [
        "absolute_urls" => false
        "timezone" => ""
        "default_locale" => null
        "param_sep" => ":"
        "wrapped_site" => false
        "reverse_proxy_setup" => false
        "force_ssl" => false
        "force_lowercase_urls" => true
        "custom_base_url" => ""
        "username_regex" => "^[a-z0-9_-]{3,16}$"
        "pwd_regex" => "(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
        "intl_enabled" => true
        "languages" => array:7 [
          "supported" => array:2 [
            0 => "lt"
            1 => "en"
          ]
          "include_default_lang" => true
          "translations" => true
          "translations_fallback" => true
          "session_store_active" => false
          "http_accept_language" => false
          "override_locale" => false
        ]
        "home" => array:2 [
          "alias" => "/pradinis"
          "hide_in_urls" => false
        ]
        "pages" => array:25 [
          "theme" => "motheme"
          "order" => array:2 [
            "by" => "default"
            "dir" => "asc"
          ]
          "list" => array:1 [
            "count" => 20
          ]
          "dateformat" => array:3 [
            "default" => null
            "short" => "jS M Y"
            "long" => "F jS \a\t g:ia"
          ]
          "publish_dates" => true
          "process" => array:2 [
            "markdown" => true
            "twig" => false
          ]
          "twig_first" => false
          "never_cache_twig" => false
          "events" => array:2 [
            "page" => true
            "twig" => true
          ]
          "markdown" => array:5 [
            "extra" => false
            "auto_line_breaks" => false
            "auto_url_links" => false
            "escape_markup" => false
            "special_chars" => array:2 [
              ">" => "gt"
              "<" => "lt"
            ]
          ]
          "types" => array:7 [
            0 => "txt"
            1 => "xml"
            2 => "html"
            3 => "htm"
            4 => "json"
            5 => "rss"
            6 => "atom"
          ]
          "append_url_extension" => ""
          "expires" => 604800
          "cache_control" => null
          "last_modified" => false
          "etag" => false
          "vary_accept_encoding" => false
          "redirect_default_route" => false
          "redirect_default_code" => "301"
          "redirect_trailing_slash" => true
          "ignore_files" => array:1 [
            0 => ".DS_Store"
          ]
          "ignore_folders" => array:2 [
            0 => ".git"
            1 => ".idea"
          ]
          "ignore_hidden" => true
          "url_taxonomy_filters" => true
          "frontmatter" => array:2 [
            "process_twig" => false
            "ignore_fields" => array:2 [
              0 => "form"
              1 => "forms"
            ]
          ]
        ]
        "cache" => array:10 [
          "enabled" => true
          "check" => array:1 [
            "method" => "file"
          ]
          "driver" => "auto"
          "prefix" => "g"
          "clear_images_by_default" => true
          "cli_compatibility" => false
          "lifetime" => 604800
          "gzip" => false
          "allow_webserver_gzip" => false
          "redis" => array:1 [
            "socket" => false
          ]
        ]
        "twig" => array:7 [
          "cache" => true
          "debug" => true
          "auto_reload" => true
          "autoescape" => false
          "undefined_functions" => true
          "undefined_filters" => true
          "umask_fix" => false
        ]
        "assets" => array:12 [
          "css_pipeline" => false
          "css_pipeline_include_externals" => true
          "css_pipeline_before_excludes" => true
          "css_minify" => true
          "css_minify_windows" => false
          "css_rewrite" => true
          "js_pipeline" => false
          "js_pipeline_include_externals" => true
          "js_pipeline_before_excludes" => true
          "js_minify" => true
          "enable_asset_timestamp" => false
          "collections" => array:1 [
            "jquery" => "system://assets/jquery/jquery-2.x.min.js"
          ]
        ]
        "errors" => array:2 [
          "display" => "1"
          "log" => true
        ]
        "debugger" => array:3 [
          "enabled" => false
          "shutdown" => array:1 [
            "close_connection" => false
          ]
          "twig" => true
        ]
        "images" => array:5 [
          "default_image_quality" => 85
          "cache_all" => false
          "cache_perms" => "0755"
          "debug" => false
          "auto_fix_orientation" => false
        ]
        "media" => array:5 [
          "enable_media_timestamp" => false
          "unsupported_inline_types" => []
          "allowed_fallback_types" => []
          "auto_metadata_exif" => false
          "upload_limit" => 268435456
        ]
        "session" => array:8 [
          "enabled" => true
          "initialize" => true
          "timeout" => 1800
          "name" => "grav-site"
          "secure" => false
          "httponly" => true
          "split" => true
          "path" => null
        ]
        "gpm" => array:5 [
          "releases" => "stable"
          "proxy_url" => null
          "method" => "auto"
          "verify_peer" => true
          "official_gpm_only" => true
        ]
        "strict_mode" => array:2 [
          "yaml_compat" => true
          "twig_compat" => true
        ]
      ]
      "theme" => array:3 [
        "streams" => array:1 [
          "schemes" => array:1 [
            "theme" => array:2 [
              "type" => "ReadOnlyStream"
              "prefixes" => array:1 [
                "" => array:2 [
                  0 => "user/themes/motheme"
                  1 => "user/themes/x-corporation"
                ]
              ]
            ]
          ]
        ]
        "logo" => "mokmedisFullLogo_cWhite.png"
        "copyright" => "Mokmedis 2017"
      ]
      "site" => array:9 [
        "title" => "Mokmedis"
        "default_lang" => "lt"
        "author" => array:2 [
          "name" => "Joe Bloggs"
          "email" => "joe@test.com"
        ]
        "taxonomies" => array:2 [
          0 => "category"
          1 => "tag"
        ]
        "metadata" => array:1 [
          "description" => "Grav is an easy to use, yet powerful, open source flat-file CMS"
        ]
        "summary" => array:4 [
          "enabled" => true
          "format" => "short"
          "size" => 300
          "delimiter" => "==="
        ]
        "redirects" => null
        "routes" => null
        "blog" => array:1 [
          "route" => "/blog"
        ]
      ]
      "uri" => Uri {}
      "assets" => Assets {}
      "taxonomy" => Taxonomy {}
      "browser" => Browser {}
      "base_dir" => "/home/u409040259/domains/mokmedis.eu/public_html"
      "home_url" => "/en"
      "base_url" => "/en"
      "base_url_absolute" => "http://mokmedis.eu/en"
      "base_url_relative" => "/en"
      "base_url_simple" => ""
      "theme_dir" => "/home/u409040259/domains/mokmedis.eu/public_html/user/themes/motheme"
      "theme_url" => "/user/themes/motheme"
      "html_lang" => "en"
      "language_codes" => LanguageCodes {}
      "form" => null
      "form_max_filesize" => 256
      "form_json_response" => []
      "langswitcher" => {}
      "pages" => Page {}
      "page" => Page {}
      "header" => {}
      "media" => Media {}
      "content" => """
        <blockquote>\n
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ultricies tristique nulla et mattis. Phasellus id massa eget nisl congue blandit sit amet id ligula. Praesent et nulla eu augue tempus sagittis. Mauris faucibus nibh et nibh cursus in vestibulum sapien egestas. Curabitur ut lectus tortor. Sed ipsum eros, egestas ut eleifend non, elementum vitae eros.\n
        -- <cite> Ronald Wade</cite></p>\n
        </blockquote>
        """
    ]
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Service
/
OutputServiceProvider.php
 
namespace Grav\Common\Service;
 
use Grav\Common\Page\Page;
use Grav\Common\Twig\Twig;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
 
class OutputServiceProvider implements ServiceProviderInterface
{
    public function register(Container $container)
    {
        $container['output'] = function ($c) {
            /** @var Twig $twig */
            $twig = $c['twig'];
 
            /** @var Page $page */
            $page = $c['page'];
 
            return $twig->processSite($page->templateFormat());
        };
    }
}
 
Arguments
  1. "html"
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
vendor
/
pimple
/
pimple
/
src
/
Pimple
/
Container.php
    {
        if (!isset($this->keys[$id])) {
            throw new UnknownIdentifierException($id);
        }
 
        if (
            isset($this->raw[$id])
            || !\is_object($this->values[$id])
            || isset($this->protected[$this->values[$id]])
            || !\method_exists($this->values[$id], '__invoke')
        ) {
            return $this->values[$id];
        }
 
        if (isset($this->factories[$this->values[$id]])) {
            return $this->values[$id]($this);
        }
 
        $raw = $this->values[$id];
        $val = $this->values[$id] = $raw($this);
        $this->raw[$id] = $raw;
 
        $this->frozen[$id] = true;
 
        return $val;
    }
 
    /**
     * Checks if a parameter or an object is set.
     *
     * @param string $id The unique identifier for the parameter or object
     *
     * @return bool
     */
    public function offsetExists($id)
    {
        return isset($this->keys[$id]);
    }
 
    /**
Arguments
  1. Grav {}
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Processors
/
RenderProcessor.php
<?php
/**
 * @package    Grav.Common.Processors
 *
 * @copyright  Copyright (C) 2015 - 2018 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */
 
namespace Grav\Common\Processors;
 
class RenderProcessor extends ProcessorBase implements ProcessorInterface
{
    public $id = 'render';
    public $title = 'Render';
 
    public function process()
    {
        $container = $this->container;
        $output =  $container['output'];
 
        if ($output instanceof \Psr\Http\Message\ResponseInterface) {
            // Support for custom output providers like Slim Framework.
        } else {
            // Use internal Grav output.
            $container->output = $output;
            $container->fireEvent('onOutputGenerated');
 
            // Set the header type
            $container->header();
 
            echo $container->output;
 
            // remove any output
            $container->output = '';
 
            $this->container->fireEvent('onOutputRendered');
        }
    }
}
 
Arguments
  1. "output"
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Grav.php
        } elseif ($values) {
            $instance = self::$instance;
            foreach ($values as $key => $value) {
                $instance->offsetSet($key, $value);
            }
        }
 
        return self::$instance;
    }
 
    /**
     * Process a request
     */
    public function process()
    {
        // process all processors (e.g. config, initialize, assets, ..., render)
        foreach ($this->processors as $processor) {
            $processor = $this[$processor];
            $this->measureTime($processor->id, $processor->title, function () use ($processor) {
                $processor->process();
            });
        }
 
        /** @var Debugger $debugger */
        $debugger = $this['debugger'];
        $debugger->render();
 
        register_shutdown_function([$this, 'shutdown']);
    }
 
    /**
     * Set the system locale based on the language and configuration
     */
    public function setLocale()
    {
        // Initialize Locale if set and configured.
        if ($this['language']->enabled() && $this['config']->get('system.languages.override_locale')) {
            $language = $this['language']->getLanguage();
            setlocale(LC_ALL, strlen($language) < 3 ? ($language . '_' . strtoupper($language)) : $language);
        } elseif ($this['config']->get('system.default_locale')) {
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Grav.php
     *
     * @param  array $values
     *
     * @return static
     */
    protected static function load(array $values)
    {
        $container = new static($values);
 
        $container['grav'] = $container;
 
        $container['debugger'] = new Debugger();
        $debugger = $container['debugger'];
 
        // closure that measures time by wrapping a function into startTimer and stopTimer
        // The debugger can be passed to the closure. Should be more performant
        // then to get it from the container all time.
        $container->measureTime = function ($timerId, $timerTitle, $callback) use ($debugger) {
            $debugger->startTimer($timerId, $timerTitle);
            $callback();
            $debugger->stopTimer($timerId);
        };
 
        $container->measureTime('_services', 'Services', function () use ($container) {
            $container->registerServices($container);
        });
 
        return $container;
    }
 
    /**
     * Register all services
     * Services are defined in the diMap. They can either only the class
     * of a Service Provider or a pair of serviceKey => serviceClass that
     * gets directly mapped into the container.
     *
     * @return void
     */
    protected function registerServices()
    {
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Grav.php
 
                ob_end_flush();
                @ob_flush();
                flush();
            }
        }
 
        // Run any time consuming tasks.
        $this->fireEvent('onShutdown');
    }
 
    /**
     * Magic Catch All Function
     * Used to call closures like measureTime on the instance.
     * Source: http://stackoverflow.com/questions/419804/closures-as-class-members
     */
    public function __call($method, $args)
    {
        $closure = $this->$method;
        call_user_func_array($closure, $args);
    }
 
    /**
     * Initialize and return a Grav instance
     *
     * @param  array $values
     *
     * @return static
     */
    protected static function load(array $values)
    {
        $container = new static($values);
 
        $container['grav'] = $container;
 
        $container['debugger'] = new Debugger();
        $debugger = $container['debugger'];
 
        // closure that measures time by wrapping a function into startTimer and stopTimer
        // The debugger can be passed to the closure. Should be more performant
Arguments
  1. "render"
    
  2. "Render"
    
  3. Closure {
      class: "Grav\Common\Grav"
      this: Grav { …}
      use: {
        $processor: RenderProcessor { …}
      }
    }
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Grav.php
 
                ob_end_flush();
                @ob_flush();
                flush();
            }
        }
 
        // Run any time consuming tasks.
        $this->fireEvent('onShutdown');
    }
 
    /**
     * Magic Catch All Function
     * Used to call closures like measureTime on the instance.
     * Source: http://stackoverflow.com/questions/419804/closures-as-class-members
     */
    public function __call($method, $args)
    {
        $closure = $this->$method;
        call_user_func_array($closure, $args);
    }
 
    /**
     * Initialize and return a Grav instance
     *
     * @param  array $values
     *
     * @return static
     */
    protected static function load(array $values)
    {
        $container = new static($values);
 
        $container['grav'] = $container;
 
        $container['debugger'] = new Debugger();
        $debugger = $container['debugger'];
 
        // closure that measures time by wrapping a function into startTimer and stopTimer
        // The debugger can be passed to the closure. Should be more performant
Arguments
  1. Closure {
      class: "Grav\Common\Grav"
      parameters: {
        $timerId: {}
        $timerTitle: {}
        $callback: {}
      }
      use: {
        $debugger: Debugger { …}
      }
    }
    
  2. array:3 [
      0 => "render"
      1 => "Render"
      2 => Closure {
        class: "Grav\Common\Grav"
        this: Grav { …}
        use: {
          $processor: RenderProcessor { …}
        }
      }
    ]
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
system
/
src
/
Grav
/
Common
/
Grav.php
            $instance = self::$instance;
            foreach ($values as $key => $value) {
                $instance->offsetSet($key, $value);
            }
        }
 
        return self::$instance;
    }
 
    /**
     * Process a request
     */
    public function process()
    {
        // process all processors (e.g. config, initialize, assets, ..., render)
        foreach ($this->processors as $processor) {
            $processor = $this[$processor];
            $this->measureTime($processor->id, $processor->title, function () use ($processor) {
                $processor->process();
            });
        }
 
        /** @var Debugger $debugger */
        $debugger = $this['debugger'];
        $debugger->render();
 
        register_shutdown_function([$this, 'shutdown']);
    }
 
    /**
     * Set the system locale based on the language and configuration
     */
    public function setLocale()
    {
        // Initialize Locale if set and configured.
        if ($this['language']->enabled() && $this['config']->get('system.languages.override_locale')) {
            $language = $this['language']->getLanguage();
            setlocale(LC_ALL, strlen($language) < 3 ? ($language . '_' . strtoupper($language)) : $language);
        } elseif ($this['config']->get('system.default_locale')) {
            setlocale(LC_ALL, $this['config']->get('system.default_locale'));
Arguments
  1. "measureTime"
    
  2. array:3 [
      0 => "render"
      1 => "Render"
      2 => Closure {
        class: "Grav\Common\Grav"
        this: Grav { …}
        use: {
          $processor: RenderProcessor { …}
        }
      }
    ]
    
/
home
/
u409040259
/
domains
/
mokmedis.eu
/
public_html
/
index.php
 
// Set timezone to default, falls back to system if php.ini not set
date_default_timezone_set(@date_default_timezone_get());
 
// Set internal encoding if mbstring loaded
if (!extension_loaded('mbstring')) {
    die("'mbstring' extension is not loaded.  This is required for Grav to run correctly");
}
mb_internal_encoding('UTF-8');
 
// Get the Grav instance
$grav = Grav::instance(
    array(
        'loader' => $loader
    )
);
 
// Process the page
try {
    $grav->process();
} catch (\Exception $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
    throw $e;
}
 

Environment & details:

empty
empty
empty
empty
Key Value
redirect_after_login
"/news/just-some-text-today"
user
User {}
Key Value
LSPHP_ProcessGroup
"on"
PATH
"/usr/local/bin:/bin:/usr/bin"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_HOST
"mokmedis.eu"
HTTP_USER_AGENT
"claudebot"
HTTP_X_FORWARDED_FOR
"44.200.77.59"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_REAL_IP
"44.200.77.59"
HTTP_X_REAL_PORT
"45726"
HTTP_X_FORWARDED_PORT
"80"
HTTP_X_PORT
"80"
HTTP_X_LSCACHE
"1"
DOCUMENT_ROOT
"/home/u409040259/domains/mokmedis.eu/public_html"
REMOTE_ADDR
"44.200.77.59"
REMOTE_PORT
"19732"
SERVER_ADDR
"2a02:4780:9:1064:0:1861:7583:3"
SERVER_NAME
"mokmedis.eu"
SERVER_ADMIN
""
SERVER_PORT
"80"
REQUEST_SCHEME
"http"
REQUEST_URI
"/en/news/just-some-text-today"
REDIRECT_URL
"/en/news/just-some-text-today"
REDIRECT_REQUEST_METHOD
"GET"
PROXY_REMOTE_ADDR
"2a02:4780:1:18::2"
CRAWLER_USLEEP
"1000"
CRAWLER_LOAD_LIMIT_ENFORCE
"25"
REDIRECT_STATUS
"200"
SCRIPT_FILENAME
"/home/u409040259/domains/mokmedis.eu/public_html/index.php"
QUERY_STRING
""
SCRIPT_URI
"http://mokmedis.eu/en/news/just-some-text-today"
SCRIPT_URL
"/en/news/just-some-text-today"
SCRIPT_NAME
"/index.php"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"LiteSpeed"
REQUEST_METHOD
"GET"
X-LSCACHE
"on,crawler,esi,combine"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711617595.0017
REQUEST_TIME
1711617595
Key Value
LSPHP_ProcessGroup
"on"
PATH
"/usr/local/bin:/bin:/usr/bin"
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler