• “Missing a temporary folder.” on new WP 4.0 when i try to load any media from my hard drive.

    Had this one yesturday on 3.9.2, decided to install new, fresh one.
    Same problem today.
    Also, cant upload/search for any theme and plugins.
    “An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.”

    Any help plz.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Give this a try. Add this line to wp-config.php

    // Setup a temporary folder for uploading and updating
    define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    @2bearstudio @giloo33

    Temporary folders should not be in web-accessible directories. This can be a security risk.

    If your webserver is not configured to have a server wide temporary folder (like /tmp or something), then you can configure it to any accessible folder, however you should choose one not in the web path.

    In the long run, you should ask your webhost what the proper temporary folder should be and why their PHP configuration is missing it.

    Thread Starter giloo33

    (@giloo33)

    Same or bit change… when i try to upload any picture form media->Media Library->Add New, i have now “Error saving media attachment.”

    Thread Starter giloo33

    (@giloo33)

    I have also one debug info:

    “Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to tcp://api.wordpress.org:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in E:\kunden\homepages\30\d542693708\www\wordpress\wp-includes\class-http.php on line 931”

    Had the same problem, fixed it by changing the permissions, using filezilla, to 770 recursively, starting with the upload directory in wp-content.

    `Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to tcp://api.wordpress.org:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in E:\kunden\homepages\28\d543246238\www\wp-includes\class-http.php on line 931

    can you help me to fix the above error?

    webmastercostalessgolf

    (@webmastercostalessgolf)

    I have had the exact same problem altafrahman, can I ask if you found a resolution to this?

    @giloo33 and @altafrahman I have the same problem as well. Did you find any solution, please?

    I don’t know if this may be of any help, but I had a lot of problems with permissions after unzipping the WordPress installation on the server itself. You should really unzip on your computer and then copy the unzipped file to your server. Otherwise it seem that in some case the server got all the permissions while you get limited ones on your files. If this is your case you may have to reinstall wp all together or call your server administrator.

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