• I am getting this error after my friend changed the site server “Missing a temporary folder.”

    Solutions I tried:

    The first option is:

    1.Log into Hosting Cpanel of your server or use your FTP.

    2.Locate wp-config.php file in the root of your wordpress site.

    Add following code after /* That’s all, stop editing! Happy blogging. */:

    define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/wp-content/temp/’);
    3.Save the file

    Create a new folder temp in wp-content folder.

    The second option is:

    1.Log into Hosting Cpanel of your server or use your FTP.

    2.Open public_html folder.

    3.Now create a file with a name php.ini.

    4.Place the following code inside the file:

    upload_tmp_dir= /home/username/public_html/temp/
    5.Save the file.

    6.Create a temp folder at the same location, i.e. inside public_html.

    Note: I read many blog articles, they said, ask your hosting provider. My friend gives me free hosting on his VPS server, and he changed the server. And he does not know, how to solve this problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I take it the article you read is not one from ww.wp.xz.cn but rather a specific hosting site. Doing a quick search I think I ran into the same article. If you use that hosting platform, then it should work but most of the time the issue is with incorrect file and directory permissions.

    Define the temp directory like you already did and then temporary change the permissions for the tmp directory to 777. If everything starts to work, you know there is a permission issue.

    DO NOT LEAVE IT LIKE THIS.

    Visit https://codex.ww.wp.xz.cn/Hardening_WordPress and have a look at the file permissions section. If this starts to cause issues, you should contact your host and have them fix the file permissions.

    I have created a folder and also see uploads folder was missing i a have created that as well – but the error is same – can you suggest anything else?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Missing a temporary folder error while uploading a media’ is closed to new replies.