Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Error “There was an issue importing. No usable temp directory found.” while trying to import phrases

Status Resolved
Add-on / Version Publisher 3.1.3
Severity
EE Version 5.3.0 Build: 28/9/2019

Peter Parker

Mar 16, 2020

Hi, i’m getting the following error when i select a phrases csv file and try to import it with the phrases importer:

” There was an issue importing. No usable temp directory found.”

Please help.

Thanks
Axel

#1

BoldMinded (Brian)

The second part of that error message isn’t from Publisher. It’s coming from EE’s ee()->upload->display_errors() method, so it’s likely something to do with your system’s folder permissions or inability to access /tmp.

#2

BoldMinded (Brian)

Might help, but this is EE’s method to find the tmp path

public function _discover_temp_path()
 {
  $attempt = array();
        $ini_path = ini_get('upload_tmp_dir');

        if ($ini_path)
        {
            $attempt[] = realpath($ini_path);
        }

  $attempt[] = sys_get_temp_dir();
  $attempt[] = @getenv('TMP');
  $attempt[] = @getenv('TMPDIR');
  $attempt[] = @getenv('TEMP');

  $valid_temps = array_filter($attempt); // remove false's

  foreach ($valid_temps as $dir)
  {
   if (is_readable($dir) && is_writable($dir))
   {
    return $dir;
   }
  }

  return FALSE;
 }
#3

Peter Parker

Thank you very much Brian, that hint helped!

Login to reply