• Resolved steveja7

    (@steveja7)


    My configuration is setup so that I use my own thumbnails for my document gallery. I had two galleries and I was adding thumbnails and reviewing them. All of a sudden, I go back to my list on the settings page and where I once had 20 thumbnails, I have none.

    The only odd thing I can think of that I’ve done is that I deleted one thumbnail. That action was leading me to post a question of how I could add a thumbnail back to the document, but now I have a bigger problem.

    It is not clear to me how the list on the settings page gets created. Is that created when I add a dg shortcode to a page?

    https://ww.wp.xz.cn/plugins/document-gallery/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Steve,

    The Thumbnail Management tab is lazily generated as DGs are rendered. The first time any DG references that attachment, it’s populated. If you need to add a thumbnail to an attachment that does not yet exist in that list you can do that by way of the edit dialog for that attachment (there’s a meta box at the bottom that will allow the same manual setting of thumbnails).

    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Regarding your thumbnails disappearing, that is definitely a bit concerning. Would you mind enabling logging and attempting to reproduce that issue? If you can make it happen intentionally then that gives us somewhere to start in resolving the issue.

    -Dan

    Thread Starter steveja7

    (@steveja7)

    Ah! I see what you mean about the edit function in the media section. Great! One problem solved.

    I did have logging on already when this problem happened. I’m pasting below. It appears that the log only exists from the time I upgraded to 4.0. If memory serves, this problem happened a few days ago also with a previous version, but I didn’t pay much attention because I was navigating the product as a newbie. But, I wondered then if deleting a thumbnail caused the problem.

    1450747031,0,”(DG_Setup::maybeUpdate) Upgrading Document Gallery from version 4.1.3 to 4.1.4″
    1450747274,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747300,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747318,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747352,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747369,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747386,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747403,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747423,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747457,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747482,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747499,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747530,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747622,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747650,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747662,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747673,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747687,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450747698,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450749184,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450749252,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450749269,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450749277,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450749437,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450749443,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753568,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753582,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753613,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753639,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753654,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753657,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753674,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753677,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753697,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753701,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753718,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753720,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753739,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753743,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753758,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753765,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450753778,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754001,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754028,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754028,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754080,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754260,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754260,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754281,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754341,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754341,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450754341,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754341,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450754341,0,”(DG_Thumb->save) Saving thumb with post_id = 297″
    1450754341,0,”(DG_Thumb->save) Saving thumb with post_id = 298″
    1450754341,0,”(DG_Thumb->save) Saving thumb with post_id = 299″
    1450754341,0,”(DG_Thumb->save) Saving thumb with post_id = 300″
    1450754342,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754342,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450754342,0,”(DG_Thumb->save) Saving thumb with post_id = 301″
    1450754342,0,”(DG_Thumb->save) Saving thumb with post_id = 302″
    1450754342,0,”(DG_Thumb->save) Saving thumb with post_id = 303″
    1450754342,0,”(DG_Thumb->save) Saving thumb with post_id = 304″
    1450754342,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754342,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450754342,0,”(DG_Thumb->save) Saving thumb with post_id = 305″
    1450754342,0,”(DG_Thumb->save) Saving thumb with post_id = 296″
    1450754421,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450754452,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754452,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450754453,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754453,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 170″
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 169″
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 168″
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 167″
    1450754453,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754453,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 166″
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 283″
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 280″
    1450754453,0,”(DG_Thumb->save) Saving thumb with post_id = 282″
    1450754454,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754454,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450754454,0,”(DG_Thumb->save) Saving thumb with post_id = 285″
    1450754482,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754585,0,”(DG_Admin::validateSettings) Validating thumbnail-management-tab tab.”
    1450754585,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754788,0,”(DG_Admin::validateSettings) Validating thumbnail-management-tab tab.”
    1450754788,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754808,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754808,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450754809,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754809,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450754809,0,”(DG_Thumb->save) Saving thumb with post_id = 164″
    1450754868,0,”(DG_Admin::validateSettings) Validating thumbnail-management-tab tab.”
    1450754868,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754868,0,”(DG_Thumber::thumbnailGenerationHarness) Creating thumb object.”
    1450754868,0,”(DG_Thumb->delete) Deleting thumb with post_id = 165″
    1450754868,0,”(DG_Thumb->save) Saving thumb with post_id = 165″
    1450754877,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754877,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450754941,0,”(DG_Admin::validateSettings) Validating thumbnail-management-tab tab.”
    1450754941,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754941,0,”(DG_Thumber::thumbnailGenerationHarness) Creating thumb object.”
    1450754941,0,”(DG_Thumb->delete) Deleting thumb with post_id = 166″
    1450754941,0,”(DG_Thumb->save) Saving thumb with post_id = 166″
    1450754956,0,”(DG_Admin::validateSettings) Validating thumbnail-management-tab tab.”
    1450754956,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754956,0,”(DG_Thumber::thumbnailGenerationHarness) Creating thumb object.”
    1450754956,0,”(DG_Thumb->delete) Deleting thumb with post_id = 167″
    1450754956,0,”(DG_Thumb->save) Saving thumb with post_id = 167″
    1450754969,0,”(DG_Admin::validateSettings) Validating thumbnail-management-tab tab.”
    1450754969,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450754969,0,”(DG_Thumber::thumbnailGenerationHarness) Creating thumb object.”
    1450754969,0,”(DG_Thumb->delete) Deleting thumb with post_id = 168″
    1450754969,0,”(DG_Thumb->save) Saving thumb with post_id = 168″
    1450755030,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755030,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450755236,0,”(DG_Admin::validateSettings) Validating general-tab tab.”
    1450755236,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755253,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755268,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755281,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755292,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755292,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450755293,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755293,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 170″
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 169″
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 168″
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 167″
    1450755293,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755293,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 166″
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 165″
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 164″
    1450755293,0,”(DG_Thumb->save) Saving thumb with post_id = 283″
    1450755294,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755294,0,”(DG_Thumber::getThumbers) Thumbnail Generators: DG_ImageThumber, DG_AudioVideoThumber”
    1450755294,0,”(DG_Thumb->save) Saving thumb with post_id = 280″
    1450755294,0,”(DG_Thumb->save) Saving thumb with post_id = 282″
    1450755294,0,”(DG_Thumb->save) Saving thumb with post_id = 285″
    1450755355,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450755363,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450755363,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450756665,0,”(DG_Logger::purgeExpiredEntries) Beginning scheduled log file purge.”
    1450756675,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450756675,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450756790,0,”(DG_Admin::validateSettings) Validating general-tab tab.”
    1450756794,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450756801,0,”(DG_Admin::validateSettings) Validating thumbnail-management-tab tab.”
    1450756801,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450756902,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450757555,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450757558,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450757573,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450757940,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450757994,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450758004,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450758039,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450758043,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450758061,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450758061,0,”(DocumentGallery::doShortcode) Generation Time: 0.00 s”
    1450758063,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450758063,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450758111,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450758111,0,”(DocumentGallery::doShortcode) Generation Time: 0.01 s”
    1450758130,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450758258,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450789641,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”
    1450789886,0,”(DG_Thumb::initThumbs) Populating thumbnail cache.”

    Plugin Author Dan Rossiter

    (@danrossiter)

    Thanks, Steve!

    Shortly after my last reply I did identify an issue in the upgrade process that would have resulted in blanking your thumbnails. That issue has since been resolved, but please do let me know if you run into anything similar.

    -Dan

    Thread Starter steveja7

    (@steveja7)

    I did notice the upgrade and I was hoping it was related to my problem. I did try a lot of things to recreate the problem but I was not successful. As you know, I’ve done a few upgrades lately, so I’m confident the upgrade process was related to my problem. 🙂

    I just installed 4.1.5 but I’m seeing something I’m not sure about. Before upgrading, I had about 20 thumbnails in the list. Most of them were the default pdf icons supplied by DG. Three of my documents did have thumbnails that I added. After upgrading to 4.1.5, my thumbnail list only has the 3 .jpg thumbnails that I added. The others are gone from the list.

    It kind of makes sense to me that only the non-default thumbnails should show in the list, so I’m hoping what I was seeing previously was an anomaly.

    Even though the thumbnails are missing from the list, the documents are still displaying as expected on the pages.

    Thanks for the great support on this forum.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hey Steve,

    You’ve just stumbled upon a bonafide feature 🙂 DG will purge everything with a failed thumbnail upon upgrade. The thinking is that new functionality in the upgraded version may be able to generate a thumbnail where the older version was not. So this will happen in any upgrade. DG will, however, show all attachments that have been processed, even if they did fail to generate a thumbnail. So once all galleries have been viewed and had a chance to fully load, the list should include all attachments across all galleries.

    -Dan

    Thread Starter steveja7

    (@steveja7)

    I write software myself, so I’m fully in support of “features”. 🙂

    Just to be clear, what is a “failed” thumbnail? In my use of DG, I don’t plan on allowing any auto-generated thumbnails and will upload my own jpg images to be used. I realize that DG is still doing something with them as I see the name is changed when the page is displayed. But, I can live with that.

    I’m hoping that failed simply means that I didn’t supply one and DG couldn’t generate one. In my case, my server can’t use Ghostscript or Imagick, and Thumber is overkill for my needs, so I don’t expect to ever let DG automatically handle thumbnails.

    Plugin Author Dan Rossiter

    (@danrossiter)

    In this case, “failed” is any attachment that DG has processed, where the thumbnail is a default icon. So your manual thumbnails will not fall into the “failed” category and in normal behavior should persist through an upgrade.

    What exactly do you mean by “the name is changed” though? The only thing that should be done against manual thumbnails is resizing to the configured max width/height, otherwise nothing should change from what you uploaded vs. what is displayed. If that’s not happening, then it very well may be something that needs addressing.

    -Dan

    Thread Starter steveja7

    (@steveja7)

    By the way, my list of thumbnails is back to showing the full list of DG documents, all but 3 are the generic pdf icons. So it seems something goes on in the background where DG is processing these. I suppose this is good for distributing load on the server, but I don’t like the uncertainty of what I will see in the list. I wish there was a way to tell DG to not do anything with thumbnails and only use the supplied images.

    As for the name changes, I drop an image on the list where I want to change from the generic thumbnail to my own. To be specific, the thumbnail image I drop is 4307_JerseyJazzFrontCover.jpg and the document name is 4307_JerseyJazzPageOne.pdf. On the resultant web page when looking at the source, the image name for the thumbnail is 4307_JerseyJazzPageOne-thum.jpeg.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Ah. I do see what you mean. I’m not sure if there is a good way to resolve that though. Disabling fancy thumbnails would stop the generation, but it would also not display your custom images =/ One option if you feel like getting your hands dirty in PHP is to remove the %data% attribute from the dg_icon_template. This will mean the front end never requests thumbnail generation since it relies on the data-id to perform thumbnail generation via ajax after page load.

    The image is definitely renamed. It’s passed through sanitization/normalization logic where size and name. The name of the uploaded image is completely ignored. The name will always be a derivation of the attachment associated with the image.

    -Dan

    Thread Starter steveja7

    (@steveja7)

    The image renaming is not a problem for me. I only mentioned it because it clued me in to the fact that the image I was dropping was not the same physical image the page was displaying.

    I may look into your suggestion of removing the %data% attribute, more as a learning experience than anything I need to do. For now, the plugin is working fine and doing what I want. Doing some extra processing that I don’t need is NOT a problem if the end result is good! 🙂

    Now that I understand what I’m seeing, all is good. Thanks!

    Plugin Author Dan Rossiter

    (@danrossiter)

    Sounds good! If you do decide to go that route and run into any questions don’t hesitate to let me know! 🙂

    -Dan

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

The topic ‘Thumbnail list vanished’ is closed to new replies.