"no images were found" in nextgen widget
-
I’m trying to create a widget in which a single image from a gallery will be randomly loaded with each page.
http://chocolatesforbreakfast.fr.kevinkanarek.com/
(See at the top of the right sidebar)Just 2 of the 20 images load correctly with each page reload, otherwise I’m getting the error” “no images were found”
The same gallery works fine when inserted onto a post instead of a widget:
http://chocolatesforbreakfast.fr.kevinkanarek.com/pamela-moore/test-gallery/Is this a known issue?
install details below:
– WordPress up to date? Version 3.9.1
– NextGEN up to date? 2.0.66.16
– What version of NextGEN Gallery did you upgrade from? 2.0.61(please confirm the following, with your server host tech) :
– MySQL up to date (at least 5.0)? 5.1.73
– PHP up to date (at least 5.2.4)? 5.5.37
– The mod_rewrite Apache module activated?
– PHP Safe Mode OFF?
-
I am getting the exact same issue. When using the widget, Instead of images I am getting “no images were found”
@kevin-green21 – What are you using to display the gallery with?
– Cais.
The gallery that’s not working is being displayed via NextGEN widget. Here are the settings:
Show 1, Original Images
Random
210 x 400
Only which are listed
7the same gallery is referenced via shortcode at the bottom of the sidebar and, as you can see, works fine. However that is not the effect I need: at each page load, it begins again from the first slide, whereas I want need just one image chosen randomly per page load.
thanks,
Kevin@kevin-green21 – We’re seeing intermittent results using those specific settings so I am unsure what exactly would be the cause of this issue. As it is, I’ll make sure to put this into our internal notes for our developers to review.
– Cais.
ok, thanks.
Is there any other way of achieving the needed result using nextgen? the key here being to load a random image from a set on page load@kevin-green21 – A shortcode along these lines might be of interest:
[ngg_images gallery_ids=7 order_by="rand()" display_type=photocrati-nextgen_basic_thumbnails disable_pagination=1 images_per_page=1]
There are a few more parameters you may want to use as well:
– override_thumbnail_settings=1
– thumbnail_width=210
– thumbnail_height=400This is provided your theme can render shortcode structures in its sidebars. If not, see this article: http://wpfirstaid.com/2012/10/use-shortcodes-in-text-widgets/
– Cais.
It’s mostly working now!
http://chocolatesforbreakfast.fr.kevinkanarek.com/the only remaining glitch is that if you click “Show as slideshow” link it adds a lot of vertical space at the bottom, and remains in that state even when you click into another page.
So ideally I would like to just disable those “Show as slideshow” / “Show as Picture Links entirely in this sidebar widget. I ‘d rather put a manual link to a gallery page instead.
By the way, thanks for all your help so far and the link to wpfirstaid, which was essential in getting my theme (Thesis 2.1) to run ngg shortcode in the widget. All this work is just to recreate the Thesis 1.x “Multimedia Box” feature in the 2.x. Many Thesis users are missing that deprecated feature — so once this works I plan to post this solution on their forum as well.)
thanks,
Kevin@kevin-green21 – I would expect you just need to add the
show_slideshow_link=0
parameter into your shortcode to remove that text link.Also to note, you can set most of these parameters as defaults via Gallery > Gallery Settings > NextGEN Basic Thumbnails but given your intended usage I would recommend keeping all of these parameters as specifics in the shortcode itself.
Thanks!
– Cais.
yep, everything now works 100%!
Thanks for all your help.
For anyone that’s curious is the complete shortcode:[ngg_images gallery_ids=7 order_by="rand()" display_type=photocrati-nextgen_basic_thumbnails disable_pagination=1 images_per_page=1= override_thumbnail_settings=1 thumbnail_width=210 thumbnail_height=400 override_gallery_settings=1 show_slideshow_link=0]
Useful solution, thanks. Cross-linked back to http://wordpress.org/support/topic/after-update-widget-wont-work
The solution I found also seems to work, editing plugins/nextgen_gallery/products/photocrati_nextgen/modules/nextgen_galler_display/class.displayed_gallery.php
I linked above but here it is again http://wordpress.org/support/topic/widget-no-longer-works-after-update-to-nextgen?replies=6
NB you have to edit the file in 2 areas as I described in 2 posts on that page.I have a site at: themontyclan.dscloud.me/wordpress
since the last update my nextgen galleries are giving me no images found.
I not sure what the short codes mean but I have tried to patch them into my post and get nothing. I have tried, cleaning image cash and disabling other plugins with no luck. I host my own site using my synology nas box so the version of wordpress is a little older….2.82 I think. I have over 61 galleries and 1000 pics so I dont really want to have to reinsert all images again. Under gallery management I can see all of the images.“random” option will result in “no images were found”
When set to “recently added”, images are shown.
I am not using the slide show option, I just have thumbnails and when clicked a larger view is displayed.
The text in the post for the gallery looks like this
<img class=”ngg_displayed_gallery mceItem” alt=”” src=”http://themontyclan.dscloud.me/wordpress/index.php/nextgen-attach_to_post/preview/id–176281752″ />
The gallery Id is 61.
@beebrasil – Let’s keep to your own topic as the issue you are describing does not really match the OP.
@hlanggo – Yes, we are aware of this now.
Thanks!
– Cais.
- The topic ‘"no images were found" in nextgen widget’ is closed to new replies.