• Hi,

    I have a weird problem with my media library.

    It all started when I changed hosting companies.

    My blog was stored in a folder named public_html/blog in my previous host.

    Now, it is stored in a folder named blog.howtogetyourexbackfast.com

    What is happening is that now when I try to upload anything to my media library, the WP software creates a folder named blog in the public_html folder (which is a whole other website) and uploads the file there.
    The software thinks my blog is still in a folder named blog, in the public_html folder like it was on my old web host.

    public_html/blog/wp-content/uploads

    I tested this by deleting the blog folder, and then uploading something to my media library, and it recreated the same path: blog/wp-content/uploads in the public_html folder, again, and placed the file there.

    My question is, what php file(s) do I need to edit (or replace) to correct this problem.

    Thank you for your help, this has been driving my crazy for a while.

    Scott

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Did you perhaps set a fixed directory for content, overriding the default, in wp-config.php? See https://codex.www.ads-software.com/Editing_wp-config.php#Moving_uploads_folder to know what to look for.

    Thread Starter honesteddypublishing

    (@s_williams)

    Oh, I also wanted to add my WP install is up to date, and this site is installed on a sub-domain, it always has been..

    Thread Starter honesteddypublishing

    (@s_williams)

    I didn’t change anything, I just moved my sites from one host to another.

    Thread Starter honesteddypublishing

    (@s_williams)

    Well, I did have to update some of the wp-config.

    DB name, username, and password when i changed hosts.

    But, that was all I touched.

    I don’t know much about code.

    Thread Starter honesteddypublishing

    (@s_williams)

    I figured it out.

    In the WP dashboard under settings>media

    there was an option to tell the software where to upload the media files, it was wrong, it displayed a jumble of my old hosting, and my new hosting.

    I set it to the default wp-content/uploads, and saved it.

    Now, it works great, but, when I went back to check those settings I changed, they are not there any more.

    There isn’t even an option to change the path anymore…it’s gone!

    Tested it again, it still works.

    Don’t know what happened to those settings, though.

    I’m happy.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem With Media Library After Changing Hosting Companies’ is closed to new replies.