WordPress Update Errors
Today I've encountered a rather annoying problem.![]()
A friend of mine told me that there was a bug in the current WP version and that I needed to upgrade.
As it was a quite annoying bug (one that made it possible to ask for a password reset without confirmation),
I decided to upgrade as soon as possible. And I still curse that moment...
After the upgrade I wasn't able to upload or install things on my page. Still getting the same messages over and over again:
"Unable to locate WordPress Content directory (wp-content)"
"Warning: ftp_rawlist (): open_basedir restriction in effect. File (/tmp) is not within the allowed path(s)"
At first I just scratched my head and tried again, but the error was quite consistent, as it came back every time it tried.
Then I started to check all my files on the server, and just like I expected everything looked just like it's supposed to be.
Perhaps there went something wrong with the upgrade, so I decided to restore a backup. To my greatest horror the restore gave the same result. That was the moment that I started to search the tubes for more information.
Now we're a little hour later and I found a sollution.
- In your WP root create a folder called "tmp"
- Then ad the following string to your wp-config.php --> define('WP_TEMP_DIR','/tmp');
- Save the file
Those three simple steps solve the problem, at least it worked for me.