• I’m getting following error while trying to “Inserting Media” to “Media Library”

    Missing a temporary folder.

    php.ini:

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ; https://php.net/upload-tmp-dir
    ;upload_tmp_dir =

    system default:

    [ec2-user@ip-10-XXX-XXX-XX ~]$ ls -ld /tmp/
    drwxrwxrwt. 12 root root 4096 Dec 22 10:24 /tmp/
    [ec2-user@ip-10-XXX-XXX-XX ~]$

    any ideas what am I missing?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there a1exus,

    Hope you’re well!

    It seems that upload_tmp_dir is disabled. If this is a hosted site, you should contact your hosting provider and they should be able to help you.

    Since you have an access to your php.ini you can modify the php.ini it like this:

    upload_tmp_dir = {$path}/tmp/php

    Hope it helps! ??

    Best Regards,
    Calvin

    Thread Starter a1exus

    (@a1exus)

    Calvin,

    I’m hosting provider myself) and I’m trying to figure this out.
    According to my php.ini:

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ; https://php.net/upload-tmp-dir
    ;upload_tmp_dir =

    … in my case upload_tmp_dir is commented out, unspecified and _NOT_ disabled, so system default should be used, yet with all that I’m still getting:

    Missing a temporary folder.

    Hello a1exus,

    Hope you’re well! ??

    I suggest you input your code on any template file you have in your active theme to display the full path of your tmp folder(if have any). The code will try to input full path for upload_tmp_dir and system default tmp dir. If you can’t see anything then it means there is no tmp folder for both system.

    Hope it helps! ??

    Take care,
    Calvin

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