Twig\Sandbox\SecurityNotAllowedMethodError

Calling "tag" method on a "ETwigViewRendererStaticClassProxy" object is not allowed.

/mnt/data/shnoulle/nginx/www/3LTS/upload/themes/survey/testDiv_vanilla/views/subviews/messages/welcome.twig(30)

18     In this file, you have access to the array aSurveyInfo that contains the datas of the current survey
19     To see what's inside aSurveyInfo, turn debug mode on and copy the following line to the end of this file:
20     {{ dump(aSurveyInfo) }}
21 
22 #}
23 
24 <!-- Welcome Message -->
25 <div id="{{ aSurveyInfo.id.welcomecontainer }}" class="{{ aSurveyInfo.class.welcomecontainer }}" {{ aSurveyInfo.attr.welcomecontainer }}>
26 
27     <!-- Survey Name -->
28     {{ C.Html.tag('h1', ({
29         'class':aSurveyInfo.class.surveyname ~ " text-center",
30     }), processString(aSurveyInfo.name,1) )
31     }}
32     <!-- Survey description -->
33     <div class="{{ aSurveyInfo.class.description }} text-info text-center" {{ aSurveyInfo.attr.description }}>
34         {{ processString(aSurveyInfo.description,1) }}
35     </div>
36 
37     <!-- Welcome text -->
38     <div class="{{ aSurveyInfo.class.welcome }} h4 text-primary" {{ aSurveyInfo.attr.welcome }}>
39         {{ processString(aSurveyInfo.welcome,1) }}
40     </div>
41 
42     <!-- Question count -->

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/3LTS/third_party/twig/twig/src/Extension/SandboxExtension.php(83): Twig\Sandbox\SecurityPolicy->checkMethodAllowed(ETwigViewRendererStaticClassProxy, "tag")
78     }
79 
80     public function checkMethodAllowed($obj, $method)
81     {
82         if ($this->isSandboxed()) {
83             $this->policy->checkMethodAllowed($obj, $method);
84         }
85     }
86 
87     public function checkPropertyAllowed($obj, $method)
88     {
#1
+
 /mnt/data/shnoulle/nginx/www/3LTS/third_party/twig/twig/src/Template.php(695): Twig\Extension\SandboxExtension->checkMethodAllowed(ETwigViewRendererStaticClassProxy, "tag")
690         if ($isDefinedTest) {
691             return true;
692         }
693 
694         if ($this->env->hasExtension('\Twig\Extension\SandboxExtension')) {
695             $this->env->getExtension('\Twig\Extension\SandboxExtension')->checkMethodAllowed($object, $method);
696         }
697 
698         // Some objects throw exceptions when they have __call, and the method we try
699         // to call is not supported. If ignoreStrictCheck is true, we should return null.
700         try {
#2
+
 /mnt/data/shnoulle/nginx/www/3LTS/tmp/runtime/twig_cache/7e/7e22825108908072a48c48e6b779ed7cab587ba9d231aa54af3481c3333493e3.php(71): Twig\Template->getAttribute(ETwigViewRendererStaticClassProxy, "tag", array("h1", array("class" => " survey-name text-center"), "Test broken theme"), "method")
66     <!-- Survey Name -->
67     ";
68         // line 28
69         echo $this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(($context["C"] ?? null), "Html", []), "tag", [0 => "h1", 1 => ["class" => ($this->sandbox->ensureToStringAllowed($this->getAttribute($this->getAttribute(        // line 29
70 ($context["aSurveyInfo"] ?? null), "class", []), "surveyname", [])) . " text-center")], 2 => LS_Twig_Extension::processString($this->sandbox->ensureToStringAllowed($this->getAttribute(        // line 30
71 ($context["aSurveyInfo"] ?? null), "name", [])), 1)], "method"));
72         // line 31
73         echo "
74     <!-- Survey description -->
75     <div class=\"";
76         // line 33
2021-05-17 16:45:09 nginx/1.20.0 Yii Framework/1.1.24-dev