• 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

    not

    http://chicagophoenix.com/wp-content/uploads/sites/2/2014/07/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)

    https://wordpress.org/plugins/instagram-slider-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I really don’t have any solution to your problem because the only way is to save image into the wp-content folder which is the default for all uploads!
    Are you using any cache plugins? If not try it migiht solve the issue!

    Thread Starter Rob Roy

    (@danetidwell)

    Well, that’s the great thing about the problem!

    When “Insert images into Media Library:” is checked, the plugin DOES save _that_ image to the correct location, it just doesn’t do the same thing with the image being displayed in the widget.

    What I’m asking is whether you can use the same code from “Insert images into Media Library:” to show the image on the widget front-end. Or to cause the widget to pull the image saved with the checkbox rather than create another one.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with plugin image location’ is closed to new replies.