WordPress tries to create a temporary file during uploads, plugin installs, and core updates. The process uses PHP’s tempnam() function, which relies on a writable temporary directory.
If the directory is missing, unwritable, or the server lacks space, tempnam() fails and WordPress returns this error.