WordPress.org

Ready to get started?Download WordPress

Forums

  1. smarx80
    Member
    Posted 9 months 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 9 months ago #

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

  3. nyodulf
    Member
    Posted 9 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic