WordPress.org

Forums

  1. smarx80
    Member
    Posted 1 year ago #

    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/

  2. Srdjan
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for your suggestion, we'll add it to our queue.

  3. nyodulf
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic