Configure the Drupal temporary directory

How to fix Drupal temporary files directory Error? You might get "Temporary file directory" error while pushing local files to production, development environment on another server. You can fix this error, Just to change "Temporary directory" file path in file system config page (admin/config/media/file-system).

Configure the Drupal temporary directory

You have hard code temporary directory path option also. Just add below code in bottom of your settings.php file (sites/default/settings.php).

$conf['file_temporary_path'] = '/tmp';