WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Media will not upload to second site, but show up for "network site" (5 posts)

  1. Dawa1
    Member
    Posted 1 year ago #

    I have a WordPress MU site that I set up but the files are not propagating correctly. When I upload images to the second site I have created, it gives me the error that "failed to upload due to an error Specified file failed upload test." when I use the fancy uploader, and it tells me that "Error saving media attachment." when I use basic loader.

    I looked into the remote server, and it did save the image in a file, so this particular image is set as follows;
    http://ftp.ftp-client.com/sub-directory-of-wordpress-mu-install/wp-content/uploads/sites/2/2013/01/1357273009_myimage.jpg

    I get a 404 here stating;
    Not Found

    The requested URL /sub-directory-of-wordpress-mu-install/wp-content/uploads/sites/2/2013/01/1357273009_myimage.jpg was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    The issue though is that my site is not on the ftp site I originally made, it is actually on a different domain than the original one I set up. So it looks like it is pulling out of root, but it has the wrong domain, because when I put in;
    http://myactualsite.com/sub-directory-of-wordpress-mu-install/wp-content/uploads/sites/2/2013/01/1357273009_myimage.jpg

    I am able to see the image just fine, so I just need to fix the .htaccess? I think that is not pointing to the correct domain name for root.

  2. Dawa1
    Member
    Posted 1 year ago #

    And if I am not supposed to change the .htaccess, maybe I need to change the setting in the "network" for the upload file path, but I would like to have a hard fix, since I will be making other sites in the same network.

    Thanks in advance who help this newbie :D

  3. Where on earth is your site getting the FTP information from? That should never be the case.

    Search your DB for http://ftp.ftp-client.com and see where that is.

  4. Dawa1
    Member
    Posted 1 year ago #

    Yeah it's strange. It is pulling the domain name I have set up when I first set up my server. So it is listed in my cPanel as "main domain", which I never ended up using, I just added my new domain to the list... if that makes sense.

    I searched my database with phpmyadmin for "ftp-client" portion of the domain, and it found 0 matches in any of the tables...

    It worked for one image after I deleted the "uploads" folder, but then it stopped working again, and now it seems to be working again.... strange. Maybe the cache wasn't cleared up, but it looks like it is working fine now. Hoping it stays that way :D

  5. Yeah... You know what, also check your wp-config.php file to see if someone hard coded it in there.

    I actually do that (I put a FTP only account in there, with a crazy password) so if someone gets into that file, everything else is safe.

Topic Closed

This topic has been closed to new replies.

About this Topic