So if you are like many of the wordpress website masters that upgraded or installed the new version of WordPress 3.3 you might have found yourself getting the following error:
Upload Failed. No Temporary Folder (wording might be slightly different).
You probably searched high and low for an answer and didn’t get anywhere.
Fear not. I have the solution
So you have to be a little nerdy to do this, and you have to have root access. If you don’t have root access you need to tell the administrators of your website or hosting company to do this.
Go into your php.ini file. This is located in /etc/php5/apache2 (in Ubuntu)
So you do this:
you want to edit the file php.ini and search for:
when you get to that line make sure there is no ; in front of it. It should look like it is written open_basedir=
Now you want to add the path to your website. If you are hosting multiple wordpress sites you want to direct it to the main path of all the websites. For instance if you have all your vhosted websites in /var/www then you would change it to this:
MAKE SURE YOU HAVE A TRAILING / at the end (i.e. /var/www/ NOT /var/www )
save your php.ini file
Now go to your sites-available directory for apache2. In ubuntu this is located in /etc/apache2/sites-available
so type this:
this should display all the websites you are currently hosting or you might have one file that has all the vhost entries in it.
Edit each file that runs a wordpress website, or the master file if you just have the one (default is the name) and find the spot where it says
right under that line you want to put this:
php_admin_value open_basedir none
continue to add that line to each and every website you have that is running wordpress.
now Restart apache. In ubuntu you do that by typing this:exit.
That’s it! You should now be able to upload.