• Resolved 99ers

    (@99ers)


    I have this error on my site, it occurs after a day or a few hours.
    On the blogg posts this will show – “Invalid Displayed Gallery”.

    http://öquist.se/

    (This is what I did during writing this post here, I guess that the next time I fix this problem that the “id–1806” will be the one that I start with.)

    1:
    When I edit the post this is the text in the post.
    “<img class=”ngg_displayed_gallery mceItem” src=”http://xn--quist-iua.se/nextgen-attach_to_post/preview/id–1529” alt=”” data-mce-placeholder=”1″ />”

    2:
    I have to go here to fix the problem when it occurs,this is a screendump. I have “clicked” on the icon for the gallery in my post, under the tab “Visual” when editing.
    http://erephus.eu/snapr/firefox_2016-02-07_12-03-49.png

    What I do is that I fill in what gallery I want to show, that dialog is empty now. I save, then update the post and the gallery shows on the post.

    3:
    The text in the post have now changed to this.
    “<img class=”ngg_displayed_gallery mceItem” src=”http://xn--quist-iua.se/nextgen-attach_to_post/preview/id–1806” alt=”” data-mce-placeholder=”1″ />”

    After awhile I have to start over, I get “Invalid Displayed Gallery” and I have to redo what I described above.
    The post I have edited is this, http://öquist.se/2016/01/03/oslo-och-akershus-fastning/, it is also the latest post on my wordpress site linked above.

    4.4.2 – WordPress up to date?
    2.1.23 – NextGEN up to date?
    New installation – What version of NextGEN Gallery did you upgrade from?

    5.5.47-cll – MySQL up to date (at least 5.0)?
    5.4.26 – PHP up to date (at least 5.2.4)?
    Yes – The mod_rewrite Apache module activated?
    Yes – PHP Safe Mode OFF?

    Yes – Does this error still occur if you switch your theme to a WordPress Twenty series theme and deactivate all plugins except NextGEN Gallery? (please be sure to clear your browser cache and reload your site after deactivating)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter 99ers

    (@99ers)

    Update:

    I have also after writing this post updated the photos in the gallery above through Lightroom. I use a plugin in Lightroom to handle the photos in Nextgen Gallery.

    This update through Lightroom did not produce the problem that I described in my post.

    No problems occur if I do the same through my site and upload new pictures through the Nextgen uploader.

    Plugin Contributor photocrati

    (@photocrati)

    @99ers – As your site appears to be displaying fine at the moment I cannot see what the issue might have been but it is good to see you appear to have it sorted out now.

    Thanks for the update.

    – Cais.

    Thread Starter 99ers

    (@99ers)

    Thank you for taking your time.

    I have just now changed all posts to using shortcodes.

    [ngg_images gallery_ids=”5″ display_type=”photocrati-nextgen_basic_thumbnails”]

    For me it may be a working “workaround”, I am hopeful that my problem will not concur again but I am not sure.

    The conclusion that I make from what I am writing below is that the the problem I had in my first post is due to that records was removed or perhaps was renamed in my database.

    I will try to find out what does it, if it is a plugin or if I can see any other connections.

    (I use record for row, I don’t know what would be more correct to use when referring to a “post” in the database.)

    I have browsed through the database, and I am making an assumption, the id–[number] should refer to a record in the database.

    I have created 2(3) more posts.

    Test post 2

    <img class=”ngg_displayed_gallery mceItem” src=”http://xn--quist-iua.se/nextgen-attach_to_post/preview/id–1882” alt=”” data-mce-placeholder=”1″ />

    Test post 1

    <img class=”ngg_displayed_gallery mceItem” src=”http://xn--quist-iua.se/nextgen-attach_to_post/preview/id–1879” alt=”” data-mce-placeholder=”1″ />

    And those two blog post created these records in the database.
    http://erephus.eu/snapr/firefox_2016-02-08_17-56-58.png

    For each blog post there is 3 records created in the database, Post_type for each respectively. And “Displayed Gallery” is the actual ID used in the blog post.

    Post_type

      Revision
      Displayed Gallery
      Post

    If I go back to my first post in this thread, and look at the ID in those 2 post the corresponding record have been removed from the database, both of them.

    Creating another blog post, using a shortcode.

    Test post 3

    [ngg_images gallery_ids=”58″ display_type=”photocrati-nextgen_basic_thumbnails”]

    It creates 2 new records in the database.

    http://erephus.eu/snapr/firefox_2016-02-08_18-07-00.png

    Post_type

      Revision
      Post
    Plugin Contributor photocrati

    (@photocrati)

    @99ers – Great troubleshooting and follow-up!! The <img> tag placeholder uses the id--[number] as a reference for the display which NextGEN Gallery can then use to render the display based on the specific settings that were used for that instance when the display was inserted into the post/page via the IGW … galleries inserted in this fashion use a custom CPT “Displayed Gallery”.

    Shortcodes on the other hand reference the options found under Gallery > Gallery Settings and render the display as those are set.

    Both methods dynamically render the display as needed.

    Generally, the only time you will see missing or “removed” records will be due to an overly aggressive database optimizer / cleaner …

    – Cais.

    Thread Starter 99ers

    (@99ers)

    Thank you!

    You pointed me in the right direction. I have been using a plugin “Better delete revision” Version 1.6.1 by Galerio and Urda.

    The problem is also on their support forum, https://wordpress.org/support/topic/removal-of-gallery-links-from-nextgen-gallery?replies=2, no replies.

    What that plugin does is that it removes the two topmost record of the three records created as described above.

    Plugin Contributor photocrati

    (@photocrati)

    @99ers – Thanks for the follow-up, hopefully the other plugin authors will find a better way to identify revisions in the database so this doesn’t continue to happen.

    – Cais.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Invalid Displayed Gallery’ is closed to new replies.