• Hello,

    I’ve recently moved my wordpress blog to another server. I decided to host the images on a subdomain on the same server and host. I moved the uploads folder to the subdomain root.

    I already edited the paths so the path is static/uploads

    and the full URL is https://static.pisapapeles.net/uploads

    The images are separated by year and month.

    My problem is that whenever I upload an image, i get the error “An error occurred in the upload. Please try again later.” and the image is not added to the database. I checked via FTP and the image is uploaded but, for some reason, not added into the library.

    Any help or fixes will be very appreciated. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey eperezf,

    Please give it a try, keep folder path blank and enter https://static.pisapapeles.net/ in Full URL Path. Then try uploading image, I hope it will solve the problem.

    Please let me know if it does not solve the problem, I will be happy to help you further.

    Thanks
    Juhi

    I believe the problem is related to WordPress attempting to make its thumbnail, medium and large version copies of your images. In short, the photo is uploaded just fine, but when WordPress attempts to resize it, it’s either trying to get the image from the wrong place, or it’s not able to save the resized images to the right place.

    In theory this shouldn’t be an issue because the image directory is actually in a subdirectory of your website’s home directory, but it may be that your host’s settings effectively treat that directory as not being part of your main web site’s physical file paths because you applied a subdomain to it.

    In other words, it looks to you like it’s a subdirectory, but certain settings in the hosting environment tell PHP / WordPress that the directory does not exist as a subdirectory of your main site.

    Unfortunately there is no easy way to resolve this. I would say to contact your hosting company but my guess is that this is not something the average front-line tech can even understand, nonetheless address. You’d need some fairly advanced tech support to get this sorted out.

    Meanwhile, your best fix is to go back to not having a subdirectory. I know that’s not cool, but clearly you have a configuration issue.

    Thread Starter eperezf

    (@eperezf)

    Hi everyone!

    The problem was that the strings are serialized. I changed the paths in the DB directly. I forced a reinstall of WordPress and everything works fine now.

    Thanks!

    Good to hear that your problem is solved (y)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image uploaded but not added to library’ is closed to new replies.