• I’m using WordPress 6.2.x and Nginx, and I’m having intermittent issues uploading media. I get “Missing a temporary folder.” When i checked, the default temporary folder (/tmp) is missing, i tried to add the config below but the error still exist
    define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

    is any other way to solve this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The media library does not *necessarily* upload media into a /tmp directory. This is not controlled by WordPress, this is a server setting and more specifically probably a php setting.

    See here,

    PHP: Handling file uploads – Manual

    and here,

    wp_upload_dir() – Function | Developer.www.remarpro.com

    If you are having these types of issues, I would ask your hosting server support.

    Have you check the spelling? Because from your explanation above, one uses ‘temp’ and the other uses ‘tmp’.

    That could be the cause.

    Thread Starter anugrahjaya1

    (@anugrahjaya1)

    Yes, I already checked the spelling. In php.ini is set into /tmp, but sometimes I can’t upload got the error “Missing a temporary folder.” I read some of the articles related to my issue and found the need to define WP_TEMP_DIR, so I defined to /wp-content/temp, also created the temp folder inside wp-content, but still nor working

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing a temporary folder’ is closed to new replies.