• I am getting an error Missing a temporary folder when i try to upload a file

    I am on shared hosting and I tried this following solution
    http://www.kingpabel.com/missing-a-temporary-folder/
    created a tmp folder
    and created a php.ini file in wp-admin folder with the code
    upload_tmp_dir = /home/username/public_html/tmp
    After doing this when i try to upload the file I get a new error which is.
    An error occurred in the upload. Please try again later

Viewing 1 replies (of 1 total)
  • Thread Starter cedam lee

    (@jakes9)

    I observed something weird
    When i use the above solution
    It gives me an error
    An error occurred in the upload. Please try again later

    I observed that the media library doesn’t load when i use this code in php ini file in wp-admin folder
    upload_tmp_dir = /home/username/public_html/tmp
    When i deleted the php.ini file and then again logged into my wordpress dashboard and opened the media library it loaded fine and bang I saw the image which i uploaded previously when i got that error “An error occurred in the upload. Please try again later”
    But that file was uploaded the problem was that media library didn’t load Whats happening here ???? Its a workaround but not a complete solution,

    Moreover when I looked at the bottom of the page I got these warnings too when I tried to upload the image with that php.ini file configured.

    Warning: Unknown: Failed to write session data (files).
    Please verify that the current setting of session.save_path is correct () in Unknown on line 0

Viewing 1 replies (of 1 total)

The topic ‘Missing a temporary folder while trying to upload file’ is closed to new replies.