Skip to content

Temp folder util makes unclear assumptions #39

Description

@solsson

From #37

<h1>An error occurred</h1>
<p><em>Runtime error (code 8): tempnam(): file created in the system's temporary directory


<!-- Error level 8. Stack trace:
file	line	function
/srv/cms/rweb/repos-web/conf/System.class.php	489	tempnam
/srv/cms/rweb/repos-web/conf/System.class.php	169	_getSystemTemp
/srv/cms/rweb/repos-web/lib/smarty/smarty.inc.php	49	getApplicationTemp
/srv/cms/rweb/repos-web/conf/Presentation.class.php	191	smarty_getInstance
/srv/cms/rweb/repos-web/conf/Presentation.class.php	155	__construct
/srv/cms/rweb/repos-web/index.php	9	getInstance
 -->

</em></p>

Trying explicitly setting TMP in FPM pool config:

env[TMP] = /tmp

Try unsetting all (3?) env vars used for temp. Otherwise the fallback route using tempnam should be removed and throw explicit error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions