Fixing “Missing a temporary folder” error on Wordpress 2.7 uploader

Homepage > Diary > Coding > Fixing “Missing a temporary folder” error on Wordpress 2.7 uploader

Sun 01/04/2009

in Coding, PHP

Recently I’ve found that some local (XAMPP powered) installations of Wordpress 2.7 on Linux and Mac return an odd error when user tries to upload a media by both the flash and the browser uploader.
The error raised is Missing a temporary folder as shown in the picture below:

Wordpress 2.7 missing temporary folder error

Wordpress 2.7 missing temporary folder error

I’ve not yet dug the problem, anyway it seems related to misconfigured temporary paths in the local environment.

You can easily overcome this problem by editing the php.ini file located in etc/ folder, uncommenting the line  upload_tmp_dir (by deleting the semi-colon “;”) and pointing the variable to a folder using an absolute path. In Linux possible steps are:

  1. open a terminal
  2. create a temporary folder for all apache tasks in your user folder and grant all right to all users:
    mkdir wwwtmp && chmod 0777 wwwtmp
  3. edit php.ini with your text editor and set the temporary folder (you must switch to root user)
    su
    vim /opt/lampp/etc/php.ini
    upload_tmp_dir = /home/my_user/wwwtmp/

    Remeber to remove preceding “;”

  4. save the file (in vim type :wq an press enter) and restart xampp
    /opt/lampp/./lampp restart

If everything went fine the error won’t be raised anymore.

Share this:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • BlinkList
  • blogmarks
  • DZone
  • LinkedIn
  • MySpace
  • NewsVine
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Ping.fm
  • Yahoo! Buzz
No Related Posts

Tags: , ,

42 Responses to this post:

Leave a Reply ()

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

* required.