Bug #74189 [Com]: PHP Notice: Unknown: file created in the system's temporary directory in Unknow

From: Date: Thu, 28 Feb 2019 16:54:09 +0000
Subject: Bug #74189 [Com]: PHP Notice: Unknown: file created in the system's temporary directory in Unknow
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219768@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74189&edit=1 ID: 74189 Comment by: spam2 at rhsoft dot net Reported by: costinel dot manole at gmail dot com Summary: PHP Notice: Unknown: file created in the system's temporary directory in Unknow Status: Closed Type: Bug Package: *General Issues Operating System: Centos 7 PHP Version: 7.1.2 Block user comment: N Private report: N New Comment: besdies that bugreport is 3 years old you can comment and write what you want in php.ini when a vhost override points to a non-existing folder Previous Comments: ------------------------------------------------------------------------ [2019-02-28 16:02:42] absfregs at gmail dot com to solve is simple, only coment the upload_tmp_dir with ";" in the file "php.ini" PHP 7.3.1 ------------------------------------------------------------------------ [2017-03-01 12:57:08] costinel dot manole at gmail dot com I found the problem. upload_tmp_dir was overridden for a specific site in vhosts.conf, and that folder was deleted recently. Thank you for help, ans sorry for losing your time. I still consider that the mesage of that notice can be improved. (eg: 'Can not write to upload_tmp_dir') ------------------------------------------------------------------------ [2017-03-01 12:21:14] spam2 at rhsoft dot net just check the permissions of every parent folder and make sure nothing overrides "upload_tmp_dir" - verify that with phpinfo() ------------------------------------------------------------------------ [2017-03-01 12:16:47] costinel dot manole at gmail dot com I can copy or delete files from php in upload_tmp_dir. But $_FILES['userfile']['tmp_name'] returns my sys_temp_dir I have tried all combinations of folders including: upload_tmp_dir = "/var/www/upload" sys_temp_dir = "/tmp" ------------------------------------------------------------------------ [2017-03-01 11:44:32] nikic@php.net The notice occurs if creating a temporary file in the specified directory failed and PHP has to fall back to the system temporary directory. Can you please check whether the directory you specified by upload_tmp_dir is actually writable by the user PHP runs under? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=74189 -- Edit this bug report at https://bugs.php.net/bug.php?id=74189&edit=1

« previous php.bugs (#219768) next »