Files being written to server root /tmp/ directory instead of site-specific one
-
The plugin is writing php files to the server root temp directory:
/tmp/wprss/twig-cache/c6
instead of to the site-specific temp directory:
/home/sejconf/tmp/wprss/twig-cache/c6
Did not find any options under Settings, support posts here or articles in the Plugin Knowledgebase on how to fix this so the temp files properly write to the /home/sejconf/tmp/ directory.
This plugin is the *only* one using the server root tmp directory. WordPress core and all other plugins are correctly using the /home/sejconf/tmp/ directory.
Any guidance on how to resolve this? Have copied the initial text (below) from one of the php files that’s being written if that helps to track down what’s going on.
Thank you.
===========
Sample Contents of “c6fbdd9a7b9aaa011951e25de1b4f6a707091cc7462b8e8b813b38af2281d2dc.php” file:
<?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;/* admin-intro-page.twig */
class __TwigTemplate_52128022f9943cb1076fbf30d8f6ed4fa454932dc02ff68a4cfa52e3183ed84e extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);$this->parent = false;
$this->blocks = [
];
}protected function doDisplay(array $context, array $blocks = [])
{
// line 1
echo “<div class=\”wrap\”>
<div class=\”wpra-wizard-head\”>
<div class=\”wpra-wizard-head__logo\”>
</div>
<div class=\”wpra-wizard-head__copy\”>
<div class=\”wpra-wizard-head__title\”>”;
// line 7
echo twig_escape_filter($this->env, ($context[“title”] ?? null), “html”, null, true);
echo “</div>
<div class=\”wpra-wizard-head__subtitle\”>”;
// line 8
echo twig_escape_filter($this->env, ($context[“subtitle”] ?? null), “html”, null, true);
echo “</div>
</div>
</div>
- The topic ‘Files being written to server root /tmp/ directory instead of site-specific one’ is closed to new replies.