Error message
Warning: file_put_contents(sites/default/files/php/twig/6479fb1828adc_page.html.twig_uZ4YJW4rdNErkiw9-MD10EngR//.htaccess): failed to open stream: Permission denied in
Drupal\Component\FileSecurity\FileSecurity::writeFile() (line
155 of
core/lib/Drupal/Component/FileSecurity/FileSecurity.php).
Drupal\Component\FileSecurity\FileSecurity::writeFile('sites/default/files/php/twig/6479fb1828adc_page.html.twig_uZ4YJW4rdNErkiw9-MD10EngR', '/.htaccess', '# Deny all requests from Apache 2.4+.
Require all denied
# Deny all requests from Apache 2.0-2.2.
Deny from all
# Turn off all options we don't need.
Options -Indexes -ExecCGI -Includes -MultiViews
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
# If we know how to do it safely, disable the PHP engine entirely.
php_flag engine off
', ) (Line: 29)
Drupal\Component\FileSecurity\FileSecurity::writeHtaccess('sites/default/files/php/twig/6479fb1828adc_page.html.twig_uZ4YJW4rdNErkiw9-MD10EngR') (Line: 96)
Drupal\Component\PhpStorage\FileStorage->ensureDirectory('sites/default/files/php/twig/6479fb1828adc_page.html.twig_uZ4YJW4rdNErkiw9-MD10EngR') (Line: 86)
Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save('6479fb1828adc_page.html.twig_uZ4YJW4rdNErkiw9-MD10EngR', '<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* themes/basic/templates/page.html.twig */
class __TwigTemplate_9479b5190fe13c8c621c3e0d90a55eedc968bab20abdcf385aefe1929957aef8 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$tags = ["set" => 1, "if" => 11];
$filters = ["render" => 1, "escape" => 3];
$functions = [];
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['render', 'escape'],
[]
);
} catch (SecurityError $e) {
$e->setSourceContext($this->getSourceContext());
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;
}
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
$context["main_menu"] = $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "primary_menu", [])));
// line 2
$context["secondary_menu"] = $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "secondary_menu", [])));
// line 3
echo "env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["attributes"] ?? null), "addClass", [0 => "layout-container", 1 => ((( // line 5
($context["main_menu"] ?? null) || ($context["secondary_menu"] ?? null))) ? ("with-navigation") : ("")), 2 => (( // line 6
($context["secondary_menu"] ?? null)) ? ("with-subnav") : (""))], "method")), "html", null, true);
// line 7
echo ">
";
// line 11
if ($this->getAttribute(($context["page"] ?? null), "header", [])) {
// line 12
echo "
";
// line 15
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "header", [])), "html", null, true);
echo "
";
}
// line 20
echo "
";
// line 21
if ((($context["main_menu"] ?? null) || ($context["secondary_menu"] ?? null))) {
// line 22
echo "
";
// line 24
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["main_menu"] ?? null)), "html", null, true);
echo "
";
// line 25
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["secondary_menu"] ?? null)), "html", null, true);
echo "
";
}
// line 29
echo "
";
// line 39
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "breadcrumb", [])), "html", null, true);
echo "
";
// line 41
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "highlighted", []))) {
// line 42
echo " ";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "highlighted", [])), "html", null, true);
echo "
";
}
// line 44
echo "
";
// line 45
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title_prefix"] ?? null)), "html", null, true);
echo "
";
// line 47
if (($context["title"] ?? null)) {
// line 48
echo " ";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title"] ?? null)), "html", null, true);
echo "
";
}
// line 50
echo "
";
// line 51
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title_suffix"] ?? null)), "html", null, true);
echo "
";
// line 52
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "help", [])), "html", null, true);
echo "
";
// line 54
if (($context["tabs"] ?? null)) {
// line 55
echo " ";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["tabs"] ?? null)), "html", null, true);
echo "
";
}
// line 57
echo "
";
// line 58
if (($context["action_links"] ?? null)) {
// line 59
echo " <ul>";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["action_links"] ?? null)), "html", null, true);
echo "</ul>
";
}
// line 61
echo "
";
// line 65
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "content", [])), "html", null, true);
echo "
";
// line 70
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "sidebar_first", []))) {
// line 71
echo "
";
// line 72
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "sidebar_first", [])), "html", null, true);
echo "
";
}
// line 75
echo "
";
// line 76
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "sidebar_second", []))) {
// line 77
echo "
";
// line 78
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "sidebar_second", [])), "html", null, true);
echo "
";
}
// line 81
echo "
";
// line 88
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "footer", []))) {
// line 89
echo "
";
// line 92
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "footer", [])), "html", null, true);
echo "
";
}
// line 97
echo "
";
}
public function getTemplateName()
{
return "themes/basic/templates/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 247 => 97, 239 => 92, 234 => 89, 232 => 88, 223 => 81, 217 => 78, 214 => 77, 212 => 76, 209 => 75, 203 => 72, 200 => 71, 198 => 70, 190 => 65, 184 => 61, 178 => 59, 176 => 58, 173 => 57, 167 => 55, 165 => 54, 160 => 52, 156 => 51, 153 => 50, 147 => 48, 145 => 47, 140 => 45, 137 => 44, 131 => 42, 129 => 41, 124 => 39, 112 => 29, 105 => 25, 101 => 24, 90 => 22, 88 => 21, 85 => 20, 77 => 15, 72 => 12, 70 => 11, 64 => 7, 62 => 6, 61 => 5, 59 => 3, 57 => 2, 55 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("", "themes/basic/templates/page.html.twig", "/home/jamesbalowski/asia-pacific-solidarity.net/themes/basic/templates/page.html.twig");
}
}
') (Line: 111)
Drupal\Core\Template\TwigPhpStorageCache->write('6479fb1828adc_page.html.twig_uZ4YJW4rdNErkiw9-MD10EngR', '<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* themes/basic/templates/page.html.twig */
class __TwigTemplate_9479b5190fe13c8c621c3e0d90a55eedc968bab20abdcf385aefe1929957aef8 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$tags = ["set" => 1, "if" => 11];
$filters = ["render" => 1, "escape" => 3];
$functions = [];
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['render', 'escape'],
[]
);
} catch (SecurityError $e) {
$e->setSourceContext($this->getSourceContext());
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;
}
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
$context["main_menu"] = $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "primary_menu", [])));
// line 2
$context["secondary_menu"] = $this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "secondary_menu", [])));
// line 3
echo "env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["attributes"] ?? null), "addClass", [0 => "layout-container", 1 => ((( // line 5
($context["main_menu"] ?? null) || ($context["secondary_menu"] ?? null))) ? ("with-navigation") : ("")), 2 => (( // line 6
($context["secondary_menu"] ?? null)) ? ("with-subnav") : (""))], "method")), "html", null, true);
// line 7
echo ">
";
// line 11
if ($this->getAttribute(($context["page"] ?? null), "header", [])) {
// line 12
echo "
";
// line 15
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "header", [])), "html", null, true);
echo "
";
}
// line 20
echo "
";
// line 21
if ((($context["main_menu"] ?? null) || ($context["secondary_menu"] ?? null))) {
// line 22
echo "
";
// line 24
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["main_menu"] ?? null)), "html", null, true);
echo "
";
// line 25
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["secondary_menu"] ?? null)), "html", null, true);
echo "
";
}
// line 29
echo "
";
// line 39
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "breadcrumb", [])), "html", null, true);
echo "
";
// line 41
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "highlighted", []))) {
// line 42
echo " ";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "highlighted", [])), "html", null, true);
echo "
";
}
// line 44
echo "
";
// line 45
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title_prefix"] ?? null)), "html", null, true);
echo "
";
// line 47
if (($context["title"] ?? null)) {
// line 48
echo " ";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title"] ?? null)), "html", null, true);
echo "
";
}
// line 50
echo "
";
// line 51
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["title_suffix"] ?? null)), "html", null, true);
echo "
";
// line 52
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "help", [])), "html", null, true);
echo "
";
// line 54
if (($context["tabs"] ?? null)) {
// line 55
echo " ";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["tabs"] ?? null)), "html", null, true);
echo "
";
}
// line 57
echo "
";
// line 58
if (($context["action_links"] ?? null)) {
// line 59
echo " <ul>";
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["action_links"] ?? null)), "html", null, true);
echo "</ul>
";
}
// line 61
echo "
";
// line 65
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "content", [])), "html", null, true);
echo "
";
// line 70
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "sidebar_first", []))) {
// line 71
echo "
";
// line 72
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "sidebar_first", [])), "html", null, true);
echo "
";
}
// line 75
echo "
";
// line 76
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "sidebar_second", []))) {
// line 77
echo "
";
// line 78
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "sidebar_second", [])), "html", null, true);
echo "
";
}
// line 81
echo "
";
// line 88
if ($this->env->getExtension('Drupal\Core\Template\TwigExtension')->renderVar($this->getAttribute(($context["page"] ?? null), "footer", []))) {
// line 89
echo "
";
// line 92
echo $this->env->getExtension('Drupal\Core\Template\TwigExtension')->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed($this->getAttribute(($context["page"] ?? null), "footer", [])), "html", null, true);
echo "
";
}
// line 97
echo "
";
}
public function getTemplateName()
{
return "themes/basic/templates/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 247 => 97, 239 => 92, 234 => 89, 232 => 88, 223 => 81, 217 => 78, 214 => 77, 212 => 76, 209 => 75, 203 => 72, 200 => 71, 198 => 70, 190 => 65, 184 => 61, 178 => 59, 176 => 58, 173 => 57, 167 => 55, 165 => 54, 160 => 52, 156 => 51, 153 => 50, 147 => 48, 145 => 47, 140 => 45, 137 => 44, 131 => 42, 129 => 41, 124 => 39, 112 => 29, 105 => 25, 101 => 24, 90 => 22, 88 => 21, 85 => 20, 77 => 15, 72 => 12, 70 => 11, 64 => 7, 62 => 6, 61 => 5, 59 => 3, 57 => 2, 55 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("", "themes/basic/templates/page.html.twig", "/home/jamesbalowski/asia-pacific-solidarity.net/themes/basic/templates/page.html.twig");
}
}
') (Line: 487)
Twig\Environment->loadClass('__TwigTemplate_9479b5190fe13c8c621c3e0d90a55eedc968bab20abdcf385aefe1929957aef8', 'themes/basic/templates/page.html.twig', NULL) (Line: 445)
Twig\Environment->loadTemplate('themes/basic/templates/page.html.twig') (Line: 64)
twig_render_template('themes/basic/templates/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array) (Line: 501)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 159)
__TwigTemplate_b11ec51ec802acf1c9edc9a26048be76151ceb48e31ed0271c6516ad1e8634bc->doDisplay(Array, Array) (Line: 455)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 422)
Twig\Template->display(Array) (Line: 434)
Twig\Template->render(Array) (Line: 64)
twig_render_template('themes/basic/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array) (Line: 147)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 148)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)