WordPress.org

Forums

NextGEN Gallery
Keep losing the galleries from the posts (27 posts)

  1. acekin
    Member
    Posted 11 months ago #

    I have been experiencing this problem since I made the switch back to NextGEN Gallery. Periodically, about once a week or more, the thumbnail galleries disappear from the posts. In their place an error message appears "Gallery not found. Please check your settings." The gallery is surely there. I can enter Manage Galleries and select and manage any one of them. Another manifestation of the problem is the inability to insert new galleries into posts. It will not display any galleries to choose from. "Select Display Type" drop down will be empty.

    I can bring them all back by going to "Other Options" and choosing Reset Options/Reset all options to default settings. But, I have to go back to each option and enter my parameters once more. I have done it at least 4-5 times in the last 3 weeks or so. I am not sure what it triggering this behavior but it is getting to be quite a nuisance. The worse part is that I have no idea when the galleries stop working for the visitors unless I go back and check them periodically.

    I wonder if there is any fix, any suggestions to remedy this problem. I am running the latest version of NGG.

    http://www.keptlight.com

    Back to reset routine!

    Thanks,

    Cemal

    https://wordpress.org/plugins/nextgen-gallery/

  2. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - This is a very odd issue and very unique as well.

    Are all of the galleries going "missing", or is it just some of the galleries? Also, is the time frame consistently "x" number of days that may be related to any sort of caching you may be using?

    - Cais.

  3. acekin
    Member
    Posted 11 months ago #

    Cais, all the galleries disappear from all the posts and pages. I do not use a caching plugin per se, WordFence is the closest thing to that which I am willing to disable. The problem is I don't know how to trigger it or what triggers it. If you think disabling WordFence may help understand this behavior I will be happy to do that. WordFence recently started a speed up option using what they call "Falcon Engine" but I had this problem even before that.

    As far as the frequency or the interval between incidents I have not observed that. Maybe I will go back to my emails and forum posts to see if there is a pattern. But I am at a loss, total loss!

    Cemal

  4. FlT4ever
    Member
    Posted 11 months ago #

    I wouldn't say "unique" since I have the same problem. I can also confirm not changing anything at all on my site except nextgen update.

    Also, if you google "Gallery not found. Please check your settings" in brackets, there's a lot results. Sadly, they're solutions are way too complex for me as I'm not a programer.

    Ace, are you able to create new galleries via shortcode? If I do I the gallery not found message.

    Author, how do we roll back?

  5. tizz
    Member
    Posted 11 months ago #

    @acekin Since yours is a problem that comes periodically, I understand that in your situation it may be very difficult to follow the normal troubleshooting, but somehow you should try to put it in place because it is a good way to find or to exclude any conflicts with the theme or a plugin, and maybe the issue happens only periodically in reaction to a particular action.
    The thing to do would be disable all other plugins and activate a WordPress Twenty series theme, when galleries are in place, but you should stay in this situation for some days to see if the issue happens again, so I understand that it can be very annoying on a production site.
    Alternatively, even though it might not be as effective, you can arm yourself with patience and try one plugin at a time, and so if the issue happens you'll know that (at 99%) it's not that particular plugin, and you can go on with the deactivation of another plugin or theme.
    However, even if I don't have the evidence, this problem could be related to the database as well.
    Sorry if I'm not very helpful with this answer, but maybe it's something to chew on.

    @FlT4ever "Gallery not found. Please check your settings" is a generic message that doesn't necessarily reflect the source of the same problem.
    From a simple syntax error in a shortcode to more complex issues such as the one of the OP, the cause can be different. In this case, sometimes galleries are visible and sometimes not, and this is something that doesn't seem to happen to you. Here is the "uniqueness", because they disappear on their own, not after an user action (such as an update or a wrong shortcode).
    So you should open your own topic describing your own problem, because asking help in someone else's topic is useless for you and very bad for OP.
    As for roll back: http://wordpress.org/plugins/nextgen-gallery/developers/

  6. acekin
    Member
    Posted 11 months ago #

    Tizz, thank you for taking another stab at my problem. Thinking the process you described through, I cannot imagine an existing plugin is causing the problem. Because, they are all active now and everything is working. Disabling them will not gain any additional information for me, or for you.

    If as you speculate the problem may be due to a database problem, which is probably a more productive venue to follow, how can I go about detecting the offending piece in the DB? Are there tell-tale signs that may indicate a potential problem? If I send a copy of my DB backup to NG team will that help them to look into it?

    I am beginning to realize that being this invested into a technology can be a dead end road for all of us. With over 450 galleries and 5,000+ photographs in the collection I feel that I am trapped in that dead end street with nowhere to go. I truly wish developers of similar software can get together and establish a common storage platform. Other bells and whistles can be added by each developer to make their product more appealing while allowing the user to freely switch from one to the other.

    Thanks for your suggestions.

    Cemal

  7. acekin
    Member
    Posted 11 months ago #

    Come to think of it, one thing has changed on my site. I noticed an update to NextGEN Gallery and applied the update. Does this add any information for the Team NextGEN? I don't know how long after that the galleries actually broke.

    One workaround solution, although temporary, may be to add "Save YOUR Settings" and "Restore YOUR setting" options to the tools.

    Cemal

  8. acekin
    Member
    Posted 11 months ago #

    OK it happened again! There is now additional information, pure luck! One post with three galleries inserted by NGG 2.x lost all three galleries. I edited the post and inserted one of the galleries using the shortcode and it now displays under the error message. Look at the post:
    http://www.keptlight.com/salute-to-viktor-plotnikov/

    you will see three error messages indicating missing galleries. Under the first error message you will see the gallery thumbnails coming from the shortcode insertion.

    The code for the new style insertion is:
    <img class="ngg_displayed_gallery mceItem" src="http://www.keptlight.com/nextgen-attach_to_post/preview/id--5359" alt="" />

    Clearly the "id" is not the same ID used in the shortcode. This must be a new ID numbering system. What seems to be different this time is that only one gallery insertion is broken although I have not checked every single post. And that insertion was done using NGG 2.x tool and its inserted code. I don't know why other gallery insertions are intact this time but I am grateful for that, for the time being. I also tried using the gallery insertion tool in a post that seems to be working as well. When all of them fail, the insertion tool fails as well.

    I hope this unusual break (a lucky break) provides more information to the support team.

    Cemal

  9. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - This is looking rather complicated but possibly some leads to consider ...

    The message text "Invalid Displayed Gallery" is basically only generated in three places.

    The first is when NextGEN Gallery's debugging is active (that is not the case on your site).
    The second is when a shortcode is not properly written (again not the case as your shortcode worked correctly on the sample page).

    The third instance of this error message refers to when the "code for the new style insertion" is used (read: the ATP was used to insert the display) and NextGEN does not find or cannot reference the placeholder ID that was written for that insertion.

    Unfortunately, this only tells us why the message appears not what is causing the issue for the ID to not be "found" as the page is being rendered.

    We may need to have our developers look into your site (again, my apologies for all of these inconveniences) to see if they can sort out what is the root issue to this as I cannot think of anything off-hand that would remove or negate these effects.

    So far, the only work-around has been to use the Reset Option, correct?

    - Cais.

    PS: Please feel free to start a new Bug Report (http://www.nextgen-gallery.com/report-bug/) on this as it is very unusual and we would definitely like to get to the source of it. C.

  10. acekin
    Member
    Posted 11 months ago #

    Thank you Cais for your reply. I will start a bug report in addition to keeping this thread open.

    This time, I did not have to reset anything. Only one gallery insertion was broken and others were working, including the NGG gallery insertion tool in a post.

    Is my observation about the new ID system correct? Because the number in the line of code I shared has nothing to do with the gallery numbers I have.

    Your team has full admin access to my site, it was in the private message I sent a while back, and it is still valid.

    Cemal

  11. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - Thanks for confirming the credentials you shared before. I have already written this issue up for our developers to review.

    The placeholder ID number is not relevant to the gallery/album ID as displays inserted with the ATP are kept as unique instances so they each have a unique ID. In most cases this is not even apparent unless you look at the "Text" tab of the editor.

    - Cais.

  12. acekin
    Member
    Posted 11 months ago #

    Thank you Cais. I will leave that post the way it is with missing galleries and one shortcode gallery working. I hope they will get a chance to look at it quickly so that I can bring back the gallery display on that page. One of them is very special to me.

    Cemal

  13. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - Perhaps you could simply use shortcode structures on that page temporarily (and leave the ATP insertions as well) so you will be able to display you images (which I think is most important ... and I enjoy looking at them as time allows) and we will still have a live example of the issue.

    Granted the "Invalid Displayed Gallery" messages will still be there but may not be so noticeable in the short-term.

    - Cais.

  14. acekin
    Member
    Posted 11 months ago #

    Well, it happened again. I lost all the galleries this time. I will keep it there for a limited time and get back to work. If anyone from the NGG team still would like to see what is on my site please use the login credentials I have sent to you.

    http://www.keptlight.com/exhibits/ (select any of the exhibits)
    http://www.keptlight.com/portfolios/ (select any of the portfolios)

    to see the missing galleries. Or choose any of the posts to see the same. This is very disconcerting. I should add that these are all shortcode insertions, now they are acting up.

    Cemal

  15. acekin
    Member
    Posted 11 months ago #

    I had to reset all the settings to default to bring back the galleries which are important for my site. I really need to find a permanent solution to this, maybe I will organize my galleries totally outside the realm of WordPress. I used to use Slideshowpro, maybe I will revive my license and slowly migrate all my photographs to that. I pain for sure, but, live and learn.

    Incidentally, the gallery that was inserted by NG 2.x gallery insert tool still does not display other than an error message. I will keep the error message until I hear from NGG or give up on this solution, whichever comes first.

    This is the post with the error messages instead of galleries displaying. What is displaying properly is the old shortcode insertion of the same galleries. Maybe the presence of the new syntax is the source of the problem, who knows?

    http://www.keptlight.com/salute-to-viktor-plotnikov/

    Cemal

  16. acekin
    Member
    Posted 11 months ago #

    Currently my galleries are displayed, but I am curious about the integrity of the code to display the gallery with the new method. As I wrote before, the code is:
    <img class="ngg_displayed_gallery mceItem" src="http://www.keptlight.com/nextgen-attach_to_post/preview/id--5359" alt="" />

    It worked when I inserted the gallery (or several galleries on that page) now it does not do anything other than to produce the error message. Is the code correct? I do not know this syntax so I am unable to figure out if there is wrong ling, extra dash or a missing dash, or, ...

    Would it be possible to add the option to use the old shortcode instead of the new method to the insertion tool?

    Cemal

  17. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - As noted before there is nothing specifically wrong with the "placeholder" <img> tag(s) you are referring to ... those are the references that NextGEN Gallery uses to dynamically render the gallery being displayed.

    As best as I can tell, something is affecting these references and essentially appears to be removing the gallery connections. For example, in your ATP inserted galleries (those showing "red triangles" in the editor) there are no galleries actually chosen. This condition will produce the message you are seeing.

    Editing those insertions and re-adding the gallery does correct the display, but something once again appears to be "removing" this later ... this may lead to a possible caching issue of your site in general (usually by a service outside of WordPress).

    Similar incidents have happened in the past with gallery selections being removed from the ATP insertion but that was specifically when the post was saved and related to a specific theme (which you are not using) and happened immediately, not a few days later.

    We are still not seeing this issue anywhere else, it is very unique in how it is presenting; and, unfortunately since it takes days for the event to re-occur the troubleshooting could take as long or much longer as the timeframe of the issue should be taken into account as well.

    We would really like to try to help you get this sorted out. Ideally we can keep to one place to carry on the discussions, and that would be best served by following up via our Bug Report conversation as splitting the conversation between these two venues may cause an important piece of information to fall through the cracks and be lost.

    - Cais.

  18. acekin
    Member
    Posted 11 months ago #

    Thank you Cais. I would like to provide a status update for the sake of complete information on the thread.

    Since your login to my site and reworking the new code insertion and my resetting the settings to defaults gallery presentations seem to be stable. Additionally, I made sure that the location of all the galleries is the same, they all point to their respective named folders under:
    wp-content/gallery

    I am also in the process of recreating all new thumbnails and they are showing properly in their respective posts. It will take a while because I am doing one gallery at a time and I have 400+ galleries. I am about 10% done but will continue to regen all the gallery thumbnails to make sure that they go to the right places and relate to the galleries they belong. It is kind of empirical validation of the integrity of the installation. I wish I could update all the thumbnails of all the galleries at once, but I will finish this in due time.

    I have turned off WordFence Falcon engine that offers site speed up in case its caching may contribute to the complexity.

    I will monitor the gallery behavior and report any anomaly here again.

    I appreciate all the help I have received from the NextGEN team, thank you.

    Cemal

  19. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - Thanks, again, for the updates and your immense patience with us and the "validation" of your galleries.

    Please let us know if anything more comes to mind on this issue ... it is interesting to note the use of WordFence Falcon (personally I cannot speak to its merits but there may be concerns with its caching interfering on some sites ... I believe WPEngine specifically noted it for their customers).

    - Cais.

  20. acekin
    Member
    Posted 11 months ago #

    OK, I have done it again! I did two things:

    1. Installed a new plugin LazyLoad and
    2. Used WP Clean to delete the accumulated crud, then used its Optimize feature
    and the galleries are gone

    I wish I checked the working of the galleries before doing the next thing. I am not sure in what order I did it. But suffice it to say that I have been using WP Clean longer than LazyLoad. So, it is possible that it's optimize routine may be a factor. After I reset the NGG settings I will try WP Clean once more when I have more time.

    Cemal

  21. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - IIRC, WP Clean has caused some issues in the past ... not sure if that might be causing some of the problems you are seeing now.

    - Cais.

  22. acekin
    Member
    Posted 11 months ago #

    You do recall correctly, I can verify that it is indeed WP Clean Up plugin doing some "cleaning" even before "Optimize". I took that step and the galleries disappeared again. Needless to say WP Clean Up is now deep cleaned from my site. This is a validated problem, I am not sure what it is cleaning, or whether NGG is leaving some traces that appear like "dirt" to be cleaned. That is up to NGG and WP Clean teams to figure out.

    One problem "Restore" did not fix is the set of galleries that were inserted with the new insertion tool (the official name may be different). I need to reinsert them, and I will repeat a couple of feature requests:

    1. Allow saving and restoring user settings
    2. Include an option to use the old shortcode which seems to be more robust, unless there are compelling reasons for using the new tool. I know I can do it manually but it will be convenient if I can do it at the time of insertion. Furthermore, it will maintain compatibility with other similar plugins, unless you specifically do not want that.
      I will now add other options I had before, but will not use WP Clean Up again.

    Cemal

  23. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - Just to verify, this was the "WP DB Clean" plugin you are referring to as "WP Clean"? (I checked you site again, JIC, and see it is most definitely gone.)

    The ATP is actually more robust, at least as we see it, than the old shortcode structure methods as not all possibilities of the ATP are easily exposed as parameters to be used in a standard shortcode.

    You are always welcome to put forward any thoughts or ideas for Feature Requests on this form: http://www.nextgen-gallery.com/feature-voting/ ... or, if it's easier you can also use our Contact Us (http://www.nextgen-gallery.com/contact) form as well.

    Thanks for the additional follow-up!

    - Cais.

  24. acekin
    Member
    Posted 11 months ago #

    The cleaning plugin is NOT WB DB Clean, but "WP Clean Up". I used to use WP DB Clean but the other looked simpler to use! Little did I know that it also had a very strong vacuum cleaner! I will also try WP Clean Up on my test bed site to see if it causes the same problem. If it does NOT, then there is something different on my WP NGG tables that present a ready to corrupt situation. The cleaning should not even touch these tables though, it is supposed to clean the redundant posts, spam comments, etc. Unless, of course, in the process of deleting redundant copies of posts the integrity of the real posts is compromised. How, I have no idea.

    Cemal

  25. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - This is very valuable information, I was not thinking of the "WP Clean Up" plugin when I made the comment earlier.

    Thank you, I will update our notes on that as well.

    - Cais.

  26. acekin
    Member
    Posted 11 months ago #

    I can confirm with confidence that using "WP Clean Up" plugin and using it to delete what it considers redundant data (Revision, Draft, Auto Draft, Moderated Comments, Spam Comments, Trash Comments, Orphan Postmeta, Orphan Commentmeta, Orphan Relationships, Dashboard Transient Feed) breaks NextGEN Gallery presentation. I ran the same plugin on my test bed site and as soon as I clicked on "Delete All" button, the plugin cleaned up all the debris but the gallery display is broken.

    Since I have run this test on my production site with months of troubles, and now on a test site with minimal content, I will consider the relationship between two plugins "hostile". I will post this message with a link to this thread to WP Clean Up support forum as well.

    Just as WP Clean Up author should check what may be causing this harm, it may be prudent for NGG team to investigate that as well just in case another similar plugin may cause the same problem and it may be due to an issue in NextGEN plugin. No other plugins are adversely affected by the cleaning process.

    Cemal

  27. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    @acekin - Thanks, we will be reviewing this issue further.

    As it is, if the WP Clean Up author has any input we would be happy to work together to try to get this sorted out as quickly as possible so these plugins do not clash in such a "hostile" manner.

    - Cais.

Reply

You must log in to post.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic