rename(sites/default/files/

Created on 31 July 2023, over 1 year ago
Updated 15 October 2023, about 1 year ago

Problem/Motivation

after cache is cleared i can see following :

Warning: rename(sites/default/files/php/twig/._rAbyAdSmwoyj3Pv1ZrX0QWLXYQ,sites/default/files/php/twig/64c0be_eu_cookie_compliance_with_5YdDqUUAYhI_UUI_Z5dPdgwY0/egC8DrKjrLFHiSEp4jOUY.php): Access is denied (code: 5) in Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save() (line 88 of core\lib\Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage.php).
Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save('64c815fce60be_eu_cookie_compliance_with_5YdDqUUAYhI_UUI_Z5dPdgwY0', '<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* modules/contrib/eu_cookie_compliance/templates/eu_cookie_compliance_withdraw.html.twig */
class __TwigTemplate_a27ca6a5a670e88606f7ddd8490b6cd4 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
        $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
        $this->checkSecurity();
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 22
        echo "";
        echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["withdraw_tab_button_label"] ?? null), 22, $this->source), "html", null, true);
        echo "

  
    
      ";
        // line 26
        echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["message"] ?? null), 26, $this->source), "html", null, true);
        echo "
    
    
      extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["olivero_primary_button_classes"] ?? null), 29, $this->source), "html", null, true);
        echo "\">";
        echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["withdraw_action_button_label"] ?? null), 29, $this->source), "html", null, true);
        echo "
    
  

";
    }

    public function getTemplateName()
    {
        return "modules/contrib/eu_cookie_compliance/templates/eu_cookie_compliance_withdraw.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  53 => 29,  47 => 26,  39 => 22,);
    }

    public function getSourceContext()
    {
        return new Source("", "modules/contrib/eu_cookie_compliance/templates/eu_cookie_compliance_withdraw.html.twig", "D:\\wamp64\\www\\d10tn\\d10\\web\\modules\\contrib\\eu_cookie_compliance\\templates\\eu_cookie_compliance_withdraw.html.twig");
    }
    
    public function checkSecurity()
    {
        static $tags = array();
        static $filters = array("escape" => 22);
        static $functions = array();

        try {
            $this->sandbox->checkSecurity(
                [],
                ['escape'],
                []
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

            if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

    }
}
') (Line: 112)
Drupal\Core\Template\TwigPhpStorageCache->write('64c815fce60be_eu_cookie_compliance_with_5YdDqUUAYhI_UUI_Z5dPdgwY0', '<?php
πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @coaston
  • πŸ‡³πŸ‡΄Norway svenryen

    @coaston sorry for taking some time to follow up.

    What version of Drupal are you using?

    It seems to me this is a problem with the file system. Would you be able to share the twig file so that we can rule out twig content being the trigger of this issue?

  • Status changed to Postponed: needs info about 1 year ago
Production build 0.71.5 2024