Skip to content

Temp folder util makes unclear assumptions #39

@solsson

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.

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