All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

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