WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Gallery title and ID out of sync after deleting galleries (5 posts)

  1. macaronilover
    Member
    Posted 10 months ago #

    If you delete galleries, the title and ID goes out of sync.

    For example, say I made 5 galleries named with the title { 1, 2, 3, 4, 5 }.
    Then I delete galleries { 2, 3, 4, 5 }.
    The next time I make a new gallery with the title { 2 }, the gallery ID for it will be 6.
    So I have a new gallery with the title { 2 } and gallery ID with { 6 }.

    I've been able to temporarily fix this problem manually by going into mysql and changing the "gid" and "galleryid" from "6" to "2".
    But the problem still persists if make a new gallery because of auto incrementation from some field/table. ( The new gallery will have an gallery ID of 7 ).

    I have to manually change the ID through mysql every time I make a new gallery.

    I've already searched the web for answers and found 2 other links addressing similar issues but no solution are listed.

    This plugin is awesome and would like to continue using it but ID syncing is crucial to my installation.

    If I can't find a solution, I'm going to have to find an alternative.
    Does someone out there know how to fix this problem?

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

  2. DoubleSixx
    Member
    Posted 10 months ago #

    Yeah it's always been that way, I learned to get over it and just ignore the numbers.

  3. tizz
    Member
    Posted 10 months ago #

    Yes, it's a non-problem, auto incrementation is the way database works.

  4. macaronilover
    Member
    Posted 10 months ago #

    Ah what a bummer. Thanks for the confirmation guys. Goodbye Nextgen!

  5. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    @macaronilover - Although this is a common database issue and not directly related to NextGEN Gallery, you are still free to submit a Feature Request to be able to re-index the database entries (or something similar that meets your needs).

    We have a form for just such ideas here: http://www.nextgen-gallery.com/feature-voting/

    Thanks!

    - Cais.

Reply

You must log in to post.

About this Plugin

About this Topic