• Resolved jasperazzi

    (@jasperazzi)


    Hi,

    I’ve just installed your plugin. It didn’t display any photos on the map. After switchting for firefox to safari I’ve discovered in the JS console an error for trying to get a thumbnail image. E.g. like this: https://overlandjournal.nl/wp-content/gallery/test2/thumbs/thumbs_england-london-bridge.jpg

    This page give’s a 404.In nextgen the thumbail options are default, and I’ve selected the test photo in the gallery and re-created a thumbnail image but alas.

    When configuring your plugin with [ thumbs=2], the pins, the map works as it should.

    https://overlandjournal.nl/test/

    I’ve added 2 maps to this URL; let me know if I can find somehting more out on where the failure comes from. Is this an update in nextgen gallery, or a setting over there? Or something in your plugin? Anyway, if you could kindly look into this that would be fantastic.

    br,Jasper

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jasperazzi

    (@jasperazzi)

    Hi @pablo2 .. could you kindly look into this issue or send me in the right direction?

    At the moment the plugin can’t be used with thumbnails like stated above.

    Plugin Author pablo2

    (@pablo2)

    Hi Jasper,

    I’m not sure what is causing this but I will try to help. There are online some web pages which you can check. Like this one: How to Fix ‘Failed To Load Resource’ Error in WordPress (wpbeginner.com)

    I suggest first checking if the thumb files physically exist at the location pointed in the in the console error using any FTP clinet or one in your cPanel. i.e. your_web_page_directory/wp-content/gallery/test2/thumbs/thumbs_IMG_4438-scaled.jpg

    If they are there it would mean a permission issue most likely.

    You can try to disable all other plugins. Maybe one of them is affecting this.

    If they are not there this would be strange. Hmm. I suppose you can see thumbnails on the NextGen Manage Galleries page? You can right-click on one of the thumbnails and open it in a new window to compare an address to this thumbnail with an address in the error. My pluggin suppose to aquire the same address.

    Please let me know what you will find out.

    Good luck

    Pawel

    Thread Starter jasperazzi

    (@jasperazzi)

    Hi Pawel,

    Thanks for looking into this for me and your extensive reply. I did some digging:

    The files are present in wp-content/gallery/test2/thumbs/
    -rw-r–r– 1 www-data www-data 15867 May 2 22:51 thumbs-IMG_4438-scaled.jpg
    And are right owner + world readable.

    The source for the gallery2 thumbnail image is: https://overlandjournal.nl/wp-content/gallery/test2/thumbs/thumbs-IMG_4438-scaled.jpg and that’s working.

    But when loading the plugin/map Safari console states the 404 for : https://overlandjournal.nl/wp-content/gallery/test2/thumbs/thumbs_IMG_4438-scaled.jpg

    See the difference in underscore / hyphen between ‘thumbs-filename.jpg’ or ‘thumbs_filename.jpg’. How does your plugin gets this URL? I’m at holiday with a laptop so a bit limited in checking out the source and debugging ??

    Kind regards, Jasper

    Plugin Author pablo2

    (@pablo2)

    Hi Jasper,

    Well-spotted difference and I found the reason and the solution.

    In one of the NextGEN gallery files I found this comment:

    // This next bit is annoying but necessary for legacy reasons. NextGEN until 3.19 stored thumbnails with a filename of “thumbs_(whatever.jpg)” which Google indexes as “thumbswhatever.jpg” which is not good for SEO. From 3.19 on the default setting is “thumbs-” but we must account for legacy sites.

    Fortunetly, they added an option in the settings to change it back to _.

    Please go to NextGEN Gallery > Other Options > MISCELLANEOUS > Use dashes instead of underscores when generating new image files > Change to NO.

    Please read the info when you hover above the option text. They are saying to use “Clear image cache” option after changing. Maybe thumbs will need to be recreated.

    I will add a fix also to my plugin to recognise which one to use but I don’t know how long it will take me. Maybe I will find some time over the weekend but maybe 2-3 weeks longer. When I will finish my plugin should choose a correct symbol regardless of this setting.

    Best reagrds,

    Pawel

    Thread Starter jasperazzi

    (@jasperazzi)

    Hi Pawel,

    Many thanks! It’s working with the legacy setting. I’ll upgrade when you have patched it.

    Thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘nextgen thumbnails problem’ is closed to new replies.