Support » Fixing WordPress » Automatic plugin installation trying to do things in old dir

  • Resolved nuxt


    Unable to create file /home/usr/public_html/123/wp-content/uploads/ajax-contact.tmp because No such file or directory in /home/usr/public_html/wp-admin/includes/file.php on line 177

    As you can see, I’ve moved my wordpress from subdir “123” and moved it to root of the domain.

    WordPress settings, and the mysql database are all correct and show root directory settings, the only thing causing my issues is automatic plugin installation, what gives?

    Cloudflare in dev mode so it’s not causing any issues either. Thank you in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Go to your site’s /wp-admin/options.php screen. This is the master settings screen for all options. Don’t change anything you don’t understand here, you can break the site.

    Next, look for “upload_path”. See if it has the correct setting for the directories. It may be blank, which should be correct, but if it has the wrong path here (with the 123 in it), then you can correct it.

    /wp-admin/options.php is just a web formatted version of mysql database i sifted through.

    Same thing, /home/usr/public_html/wp-content/uploads is what its set at. Would removing this to blank likely help remedy it? Thanks for the prompt response! 🙂

    Changing it to blank probably won’t fix the problem if it has the correct value there already.

    Thing is that it has to be getting that 123 directory from somewhere, and the only place it can get that data from is in the database. So you need to find what in the database still has the wrong value.

    Oh, if you’re using any caching plugins, try disabling them or clearing their caches. That might help.

    I’m quite familiar with mysql, I’ve gone through the whole database, manually and through several search terms. It is all in correct order with no problems.

    As I say the site works fine, it’s just the automatic plugin installer that seems to broke.

    Not using any caching plugins, zero plugins are installed. Hence I’m on here as it seems more like it’s broke than a bug, as it’s giving no indication of any issues in the database, so I’m at a loss to what it is.

    Well, like I said, it has to be getting that incorrect subdirectory path from somewhere. So the first thing is to find that.

    Do you have the WP_TEMP_DIR defined as the old path in the wp-config.php file (or elsewhere, perhaps)? Also check for WP_CONTENT_DIR.

    Boom, nail > head.

    Been stressing over a clients joomla problem all day, didn’t even check the config.php file… Thanks for the heads up on the WP_TEMP_DIR setting hiding away, will remember that in the future.


    Cool. Glad I could help. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Automatic plugin installation trying to do things in old dir’ is closed to new replies.