WordPress.org

Forums

Instagram Slider Widget
Issue with plugin image location (3 posts)

  1. Rob Roy
    Member
    Posted 9 months ago #

    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/

  2. jetonr
    Member
    Plugin Author

    Posted 9 months ago #

    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!

  3. Rob Roy
    Member
    Posted 8 months ago #

    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.

Reply

You must log in to post.

About this Plugin

  • Instagram Slider Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.