if you didn't pick a caption and main_image fields you will get one of these notices...
Notice: Undefined index: cation in views_slideshow_royalslider_views_pre_render()
Notice: Undefined index: main_image in views_slideshow_royalslider_views_pre_render()
the workaround here is to choose a caption and main_image fields save your changes, then return these back to none and save again.
Comments
Comment #1
mqannehuse this patch, it worked for me
Comment #2
mqannehComment #3
mqannehComment #5
alexweber commentedI'd run into something similar a while back and I can't remember why exactly but we decided to leave it but yeah it's annoying, so let's fix it!
Thanks for the patch!
Comment #7
johnpicozziHello - I am having the same issue with the latest version of the module (beta 6). I was able to address the issue by changing the if's from array_key_exists to !empty. I have attached a patch (based on beta 6) for review.
Comment #9
johnpicozziHere is a patch against the 7.x-1.x branch as well.
Comment #10
johnpicozziComment #12
thijsvdanker commentedThanks @johnpicozzi checking for
!emptychecks the missing cases better then the array key checks.Committed to 7.x-1.x.
Comment #13
thijsvdanker commentedComment #14
chroid commentedI can confirm that this patch fixes this same issue for me.
I'm defining a views slideshow based Royalslider formatter in my view and for reasons I won't go into (using DisplaySuite on the other side) I'm not using either of the 'Image' nor 'Caption' settings, so they are both set to '- None -'.
Patch resolves these notices/warnings immediately. Thanks!