Issue with plugin image location
I have a somewhat complicated setup so let me try to explain the problem.
I’m running WordPress on Amazon Web Services Elastic Beanstalk.
When traffic increases, the system scales additional instances and when it decreases, those instances are deleted. To accomplish this, each WordPress server instance is created from a static volume. Images are stored on Amazon Cloudfront, the database is an RDS MySQL database.
The issue I’m having is that the plugin saves the instagram image to one running instance. If there are 10 running, it only shows up on one, but the database thinks that it is there, so it appears on the 9 other server instances as a broken image. When the one volume with the image is deleted because traffic has decreased, they all still reference a photo that isn’t there anymore.
However, the solution seems to be in the implementation of the feature that saves the image to the wordpress media library. The plugin is saving the image to the correct location – http://d1ssgse0g050i5.cloudfront.net/wp-content/uploads/sites/2/2014/07/20235724/2090a33d4ec23607b1d0650560dbe095.jpg
If the box “Insert images into Media Library” is checked, is there a way to have the plugin pull from that location instead of the default (which gets deleted several times a day)
- The topic ‘Issue with plugin image location’ is closed to new replies.