1

I just moved my WordPress website to a new domain & server. Everything seems to work fine except for installing new plugins. When I'm trying to install a new plugin, it's still trying to access the upload directory of the old server.

The error I get is:

Warning: touch() [function.touch]: Unable to create file /home/oldserver/domains/olddomain.com/public_html/website/wp-content/uploads/search-and-replace.tmp because Permission denied in /home/newserver/domains/newdomain.com/public_html/wp-admin/includes/file.php on line 179

Warning: unlink(/home/oldserver/domains/olddomain.com/public_html/website/wp-content/uploads/search-and-replace.tmp) [function.unlink]: Permission denied in /home/newserver/domains/newdomain.com/public_html/wp-admin/includes/file.php on line 493

I already changed the WordPress URL, Site URL and Upload Directory in the database wp_options table. What did I miss?

closed as too localized by fuxia Apr 10 '13 at 12:48

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • can we see your wp-config.php? – Tom J Nowell Apr 10 '13 at 12:10
  • Thanks, found the solution while clearing sensitive data. Will post my answer below. – user2019515 Apr 10 '13 at 12:12
2

In wp-config.php under the different salts there was a line, which I missed because it was directly under the different salts.

define('WP_TEMP_DIR',      '/home/oldserver/domains/olddomain.be/public_html/website/wp-content/uploads');

Obviously that needed to be changed to the new server path as well.

Not the answer you're looking for? Browse other questions tagged or ask your own question.