• Hi,
    in these two files:
    includes/import-export.php on line 818
    embedded/includes/module-manager.php on line 691

    sys_get_temp_dir() is not working correctly on shared hosting servers.

    I suggest a little change that would work on both:

    $temp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();

    Thanks.

    http://wordpress.org/plugins/types/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks for your suggestion, we’ll add it to our queue.

    nyodulf

    (@nyodulf)

    I was having the same issue with another plugin, and the ini_get() solution didn’t work. However, WP’s own get_temp_dir() did work.

    I don’t know if there is a reason not to use the built-in function, but it worked for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sys_get_temp_dir’ is closed to new replies.