RuntimeException
Unable to create the cache directory (/home/newevolution/newevolutiondesigns.com/cache/gantry5/g5_helium/twig/95). RuntimeException thrown with message "Unable to create the cache directory (/home/newevolution/newevolutiondesigns.com/cache/gantry5/g5_helium/twig/95)." Stacktrace: #11 RuntimeException in /home/newevolution/newevolutiondesigns.com/libraries/gantry5/classes/Gantry/Component/Twig/TwigCacheFilesystem.php:59 #10 Gantry\Component\Twig\TwigCacheFilesystem:write in /home/newevolution/newevolutiondesigns.com/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:457 #9 Twig_Environment:loadTemplate in /home/newevolution/newevolutiondesigns.com/libraries/gantry5/vendor/twig/twig/lib/Twig/Environment.php:363 #8 Twig_Environment:render in /home/newevolution/newevolutiondesigns.com/libraries/gantry5/classes/Gantry/Component/Theme/AbstractTheme.php:163 #7 Gantry\Component\Theme\AbstractTheme:render in /home/newevolution/newevolutiondesigns.com/templates/g5_helium/index.php:23 #6 require in /home/newevolution/newevolutiondesigns.com/libraries/src/Document/HtmlDocument.php:658 #5 Joomla\CMS\Document\HtmlDocument:_loadTemplate in /home/newevolution/newevolutiondesigns.com/libraries/src/Document/HtmlDocument.php:720 #4 Joomla\CMS\Document\HtmlDocument:_fetchTemplate in /home/newevolution/newevolutiondesigns.com/libraries/src/Document/HtmlDocument.php:535 #3 Joomla\CMS\Document\HtmlDocument:parse in /home/newevolution/newevolutiondesigns.com/libraries/src/Application/CMSApplication.php:1030 #2 Joomla\CMS\Application\CMSApplication:render in /home/newevolution/newevolutiondesigns.com/libraries/src/Application/SiteApplication.php:778 #1 Joomla\CMS\Application\SiteApplication:render in /home/newevolution/newevolutiondesigns.com/libraries/src/Application/CMSApplication.php:202 #0 Joomla\CMS\Application\CMSApplication:execute in /home/newevolution/newevolutiondesigns.com/index.php:49
Stack frames (12)
11
RuntimeException
/
classes
/
Gantry
/
Component
/
Twig
/
TwigCacheFilesystem.php
59
10
Gantry
\
Component
\
Twig
\
TwigCacheFilesystem
write
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
457
9
Twig_Environment
loadTemplate
/
vendor
/
twig
/
twig
/
lib
/
Twig
/
Environment.php
363
8
Twig_Environment
render
/
classes
/
Gantry
/
Component
/
Theme
/
AbstractTheme.php
163
7
Gantry
\
Component
\
Theme
\
AbstractTheme
render
/
home
/
newevolution
/
newevolutiondesigns.com
/
templates
/
g5_helium
/
index.php
23
6
require
/
home
/
newevolution
/
newevolutiondesigns.com
/
libraries
/
src
/
Document
/
HtmlDocument.php
658
5
Joomla
\
CMS
\
Document
\
HtmlDocument
_loadTemplate
/
home
/
newevolution
/
newevolutiondesigns.com
/
libraries
/
src
/
Document
/
HtmlDocument.php
720
4
Joomla
\
CMS
\
Document
\
HtmlDocument
_fetchTemplate
/
home
/
newevolution
/
newevolutiondesigns.com
/
libraries
/
src
/
Document
/
HtmlDocument.php
535
3
Joomla
\
CMS
\
Document
\
HtmlDocument
parse
/
home
/
newevolution
/
newevolutiondesigns.com
/
libraries
/
src
/
Application
/
CMSApplication.php
1030
2
Joomla
\
CMS
\
Application
\
CMSApplication
render
/
home
/
newevolution
/
newevolutiondesigns.com
/
libraries
/
src
/
Application
/
SiteApplication.php
778
1
Joomla
\
CMS
\
Application
\
SiteApplication
render
/
home
/
newevolution
/
newevolutiondesigns.com
/
libraries
/
src
/
Application
/
CMSApplication.php
202
0
Joomla
\
CMS
\
Application
\
CMSApplication
execute
/
home
/
newevolution
/
newevolutiondesigns.com
/
index.php
49
    {
        $hash = hash('sha256', $className . '-' . PHP_VERSION);
        return $this->directory.$hash[0].$hash[1].'/'.$hash.'.php';
    }
    /**
     * {@inheritdoc}
     */
    public function load($key)
    {
        @include_once $key;
    }
    /**
     * {@inheritdoc}
     */
    public function write($key, $content)
    {
        $dir = dirname($key);
        if (!is_dir($dir)) {
            if (false === @mkdir($dir, 0777, true) && !is_dir($dir)) {
                throw new \RuntimeException(sprintf('Unable to create the cache directory (%s).', $dir));
            }
        } elseif (!is_writable($dir)) {
            throw new \RuntimeException(sprintf('Unable to write in the cache directory (%s).', $dir));
        }
        $tmpFile = tempnam($dir, basename($key));
        if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $key)) {
            @chmod($key, 0666 & ~umask());
            if (self::FORCE_BYTECODE_INVALIDATION == ($this->options & self::FORCE_BYTECODE_INVALIDATION)) {
                // Compile cached file into bytecode cache
                if (function_exists('opcache_invalidate')) {
                    // Silence error in case if `opcache.restrict_api` directive is set.
                    @opcache_invalidate($key, true);
                } elseif (function_exists('apc_compile_file')) {
                    @apc_compile_file($key);
                }
            }
            return;
        }
        throw new \RuntimeException(sprintf('Failed to write cache file "%s".', $key));
    }
            }
 
            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);
            }
        }
 
        if (!$this->runtimeInitialized) {
            $this->initRuntime();
        @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.
     *
 
            $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
     */
    public function render($file, array $context = [])
    {
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $this->renderer()->render($file, $context);
    }
 
    /**
     * Compile and render twig string.
     *
     * @param string $string
     * @param array $context
     * @return string
     */
    public function compile($string, array $context = [])
    {
        $renderer = $this->renderer();
        $template = $renderer->createTemplate($string);
 
        // Include Gantry specific things to the context.
        $context = $this->getContext($context);
 
        return $template->render($context);
    }
 
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */
 
defined('_JEXEC') or die;
 
// Bootstrap Gantry framework or fail gracefully (inside included file).
$gantry = include __DIR__ . '/includes/gantry.php';
 
/** @var \Gantry\Framework\Theme $theme */
$theme = $gantry['theme'];
 
// All the custom twig variables can be defined in here:
$context = array();
 
// Render the page.
echo $theme->render('index.html.twig', $context);
 
     * @param   string  $directory  The name of the template
     * @param   string  $filename   The actual filename
     *
     * @return  string  The contents of the template
     *
     * @since   1.7.0
     */
    protected function _loadTemplate($directory, $filename)
    {
        $contents = '';
 
        // Check to see if we have a valid template file
        if (file_exists($directory . '/' . $filename))
        {
            // Store the file path
            $this->_file = $directory . '/' . $filename;
 
            // Get the file content
            ob_start();
            require $directory . '/' . $filename;
            $contents = ob_get_contents();
            ob_end_clean();
        }
 
        // Try to find a favicon by checking the template and root folder
        $icon = '/favicon.ico';
 
        foreach (array($directory, JPATH_BASE) as $dir)
        {
            if (file_exists($dir . $icon))
            {
                $path = str_replace(JPATH_BASE, '', $dir);
                $path = str_replace('\\', '/', $path);
                $this->addFavicon(Uri::base(true) . $path . $icon);
                break;
            }
        }
 
        return $contents;
    }
 
        if (!file_exists($directory . '/' . $template . '/' . $file))
        {
            $file = 'index.php';
        }
 
        // Load the language file for the template
        $lang = \JFactory::getLanguage();
 
        // 1.5 or core then 1.6
        $lang->load('tpl_' . $template, JPATH_BASE, null, false, true)
            || $lang->load('tpl_' . $template, $directory . '/' . $template, null, false, true);
 
        // Assign the variables
        $this->template = $template;
        $this->baseurl = Uri::base(true);
        $this->params = isset($params['params']) ? $params['params'] : new Registry;
 
        // Load
        $this->_template = $this->_loadTemplate($directory . '/' . $template, $file);
 
        return $this;
    }
 
    /**
     * Parse a document template
     *
     * @return  HtmlDocument  instance of $this to allow chaining
     *
     * @since   1.7.0
     */
    protected function _parseTemplate()
    {
        $matches = array();
 
        if (preg_match_all('#<jdoc:include\ type="([^"]+)"(.*)\/>#iU', $this->_template, $matches))
        {
            $template_tags_first = array();
            $template_tags_last = array();
 
            $options['title'] = (isset($args[3])) ? $args[3] : null;
        }
 
        parent::$_buffer[$options['type']][$options['name']][$options['title']] = $content;
 
        return $this;
    }
 
    /**
     * Parses the template and populates the buffer
     *
     * @param   array  $params  Parameters for fetching the template
     *
     * @return  HtmlDocument instance of $this to allow chaining
     *
     * @since   1.7.0
     */
    public function parse($params = array())
    {
        return $this->_fetchTemplate($params)->_parseTemplate();
    }
 
    /**
     * Outputs the template to the browser.
     *
     * @param   boolean  $caching  If true, cache the output
     * @param   array    $params   Associative array of attributes
     *
     * @return  string The rendered data
     *
     * @since   1.7.0
     */
    public function render($caching = false, $params = array())
    {
        $this->_caching = $caching;
 
        if (empty($this->_template))
        {
            $this->parse($params);
        }
     */
    protected function render()
    {
        // Setup the document options.
        $this->docOptions['template'] = $this->get('theme');
        $this->docOptions['file']     = $this->get('themeFile', 'index.php');
        $this->docOptions['params']   = $this->get('themeParams');
 
        if ($this->get('themes.base'))
        {
            $this->docOptions['directory'] = $this->get('themes.base');
        }
        // Fall back to constants.
        else
        {
            $this->docOptions['directory'] = defined('JPATH_THEMES') ? JPATH_THEMES : (defined('JPATH_BASE') ? JPATH_BASE : __DIR__) . '/themes';
        }
 
        // Parse the document.
        $this->document->parse($this->docOptions);
 
        // Trigger the onBeforeRender event.
        \JPluginHelper::importPlugin('system');
        $this->triggerEvent('onBeforeRender');
 
        $caching = false;
 
        if ($this->isClient('site') && $this->get('caching') && $this->get('caching', 2) == 2 && !\JFactory::getUser()->get('id'))
        {
            $caching = true;
        }
 
        // Render the document.
        $data = $this->document->render($caching, $this->docOptions);
 
        // Set the application output data.
        $this->setBody($data);
 
        // Trigger the onAfterRender event.
        $this->triggerEvent('onAfterRender');
                    $this->setUserState('users.login.form.data', array('return' => \JUri::getInstance()->toString()));
                    $this->set('themeFile', 'offline.php');
                    $this->setHeader('Status', '503 Service Temporarily Unavailable', 'true');
                }
 
                if (!is_dir(JPATH_THEMES . '/' . $template->template) && !$this->get('offline'))
                {
                    $this->set('themeFile', 'component.php');
                }
 
                // Ensure themeFile is set by now
                if ($this->get('themeFile') == '')
                {
                    $this->set('themeFile', $file . '.php');
                }
 
                break;
        }
 
        parent::render();
    }
 
    /**
     * Route the application.
     *
     * Routing is the process of examining the request environment to determine which
     * component should receive the request. The component optional parameters
     * are then set in the request object to be processed when the application is being
     * dispatched.
     *
     * @return  void
     *
     * @since   3.2
     */
    protected function route()
    {
        // Execute the parent method
        parent::route();
 
        $Itemid = $this->input->getInt('Itemid', null);
        }
    }
 
    /**
     * Execute the application.
     *
     * @return  void
     *
     * @since   3.2
     */
    public function execute()
    {
        // Perform application routines.
        $this->doExecute();
 
        // If we have an application document object, render it.
        if ($this->document instanceof \JDocument)
        {
            // Render the application output.
            $this->render();
        }
 
        // If gzip compression is enabled in configuration and the server is compliant, compress the output.
        if ($this->get('gzip') && !ini_get('zlib.output_compression') && ini_get('output_handler') !== 'ob_gzhandler')
        {
            $this->compress();
 
            // Trigger the onAfterCompress event.
            $this->triggerEvent('onAfterCompress');
        }
 
        // Send the application response.
        $this->respond();
 
        // Trigger the onAfterRespond event.
        $this->triggerEvent('onAfterRespond');
    }
 
    /**
     * Check if the user is required to reset their password.
{
    include_once __DIR__ . '/defines.php';
}
 
if (!defined('_JDEFINES'))
{
    define('JPATH_BASE', __DIR__);
    require_once JPATH_BASE . '/includes/defines.php';
}
 
require_once JPATH_BASE . '/includes/framework.php';
 
// Set profiler start time and memory usage and mark afterLoad in the profiler.
JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
 
// Instantiate the application.
$app = JFactory::getApplication('site');
 
// Execute the application.
$app->execute();
 

Environment & details:

Key Value
Itemid 465
option com_content
view article
catid 20
id 20
empty
empty
empty
empty
Key Value
PATH /bin:/usr/bin:/sbin:/usr/sbin
RAILS_ENV production
SCRIPT_NAME /index.php
REQUEST_URI /20-sexy-pin-ups-by-edgar-sandoval
QUERY_STRING Itemid=465&option=com_content&view=article&catid=20&id=20
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /20-sexy-pin-ups-by-edgar-sandoval
REMOTE_PORT 51348
SCRIPT_FILENAME /home/newevolution/newevolutiondesigns.com/index.php
SERVER_ADMIN webmaster@newevolutiondesigns.com
DOCUMENT_ROOT /home/newevolution/newevolutiondesigns.com
REMOTE_ADDR 34.228.41.66
SERVER_PORT 443
SERVER_ADDR 75.119.210.27
SERVER_NAME newevolutiondesigns.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST newevolutiondesigns.com
HTTP_IF_MODIFIED_SINCE Sun, 23 Sep 2018 13:02:09 GMT
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNI newevolutiondesigns.com
HTTPS on
HTTP_AUTHORIZATION
DH_USER newevolution
ds_id_27592314
dsid 27592314
SCRIPT_URI https://newevolutiondesigns.com/20-sexy-pin-ups-by-edgar-sandoval
SCRIPT_URL /20-sexy-pin-ups-by-edgar-sandoval
UNIQUE_ID XBBoBkt30hsAABiNM-EAAAAh
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI newevolutiondesigns.com
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_DH_USER newevolution
REDIRECT_ds_id_27592314
REDIRECT_dsid 27592314
REDIRECT_SCRIPT_URI https://newevolutiondesigns.com/20-sexy-pin-ups-by-edgar-sandoval
REDIRECT_SCRIPT_URL /20-sexy-pin-ups-by-edgar-sandoval
REDIRECT_UNIQUE_ID XBBoBkt30hsAABiNM-EAAAAh
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1544579078.8253
REQUEST_TIME 1544579078
Key Value
PATH /bin:/usr/bin:/sbin:/usr/sbin
RAILS_ENV production
SCRIPT_NAME /index.php
REQUEST_URI /20-sexy-pin-ups-by-edgar-sandoval
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /20-sexy-pin-ups-by-edgar-sandoval
REMOTE_PORT 51348
SCRIPT_FILENAME /home/newevolution/newevolutiondesigns.com/index.php
SERVER_ADMIN webmaster@newevolutiondesigns.com
DOCUMENT_ROOT /home/newevolution/newevolutiondesigns.com
REMOTE_ADDR 34.228.41.66
SERVER_PORT 443
SERVER_ADDR 75.119.210.27
SERVER_NAME newevolutiondesigns.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_ACCEPT_ENCODING gzip
HTTP_CONNECTION close
HTTP_HOST newevolutiondesigns.com
HTTP_IF_MODIFIED_SINCE Sun, 23 Sep 2018 13:02:09 GMT
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNI newevolutiondesigns.com
HTTPS on
HTTP_AUTHORIZATION
DH_USER newevolution
ds_id_27592314
dsid 27592314
SCRIPT_URI https://newevolutiondesigns.com/20-sexy-pin-ups-by-edgar-sandoval
SCRIPT_URL /20-sexy-pin-ups-by-edgar-sandoval
UNIQUE_ID XBBoBkt30hsAABiNM-EAAAAh
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI newevolutiondesigns.com
REDIRECT_HTTPS on
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_DH_USER newevolution
REDIRECT_ds_id_27592314
REDIRECT_dsid 27592314
REDIRECT_SCRIPT_URI https://newevolutiondesigns.com/20-sexy-pin-ups-by-edgar-sandoval
REDIRECT_SCRIPT_URL /20-sexy-pin-ups-by-edgar-sandoval
REDIRECT_UNIQUE_ID XBBoBkt30hsAABiNM-EAAAAh
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1544579078.8253
REQUEST_TIME 1544579078
0. Whoops\Handler\PrettyPageHandler