I am building a site using Flexslider as the main page's slider, via views. The slider was working fine over the last few days, and I was going to delve into tweaking the css for it, when I checked for updates, and I updated it - and updated the db. Now it is kicking off errors.
I have FlexSlider, and FlexSlider Views Style enabled. The error message I am receiving is:
Notice: Undefined index: uri in theme_flexslider_list() (line 48 of /var/www/vhosts/mydomain.com/httpdocs/sites/all/modules/flexslider/theme/flexslider.theme.inc).
Now the slider is not functioning, and I am not sure what the issue is. I deleted the view entirely, and started over. No dice.
I then removed flexslider from the db, and deleted it's files, and started over again...this time the slider works, but the error continues...now it is listed three times...
Any help would be greatly appreciated.
Comment | File | Size | Author |
---|---|---|---|
#60 | screenshot.jpg | 389.83 KB | Chimos |
#30 | 2069435-fields-broken-alpha2.patch | 13.93 KB | minorOffense |
#22 | 2069435-fix-for-uri-notice.patch | 1007 bytes | jpstrikesback |
#16 | flex-alpha2.jpg | 229.22 KB | Chimos |
Comments
Comment #1
deltaag CreditAttribution: deltaag commentedSame issue here. Updated to alpha2 and flexslider disappeared.
Comment #2
jerry CreditAttribution: jerry commentedHere as well, using the flexslider field formatter and the Picture integration. Upon display, these warnings are logged:
This doesn't seem to affect flex-formatted Views Slideshow displays. Reverting to -alpha1 restored normal operation of the field formatter.
Comment #3
justawayfarer CreditAttribution: justawayfarer commentedAfter update to alpha-2 also got uri in theme_flexslider_list(). Slider working but thumbnails as navigation are now missing. I am also using the Picture module.
Comment #4
minorOffense CreditAttribution: minorOffense commentedIn the mean time I'd suggest continuing to use alpha1.
If you're using an externally integrated module (i.e. Picture) try using FlexSlider without it and see if the error persists. It may be due to the changes to the theme functions that the Picture module integration needs updating.
@dmkeene Did you clear the cache on your site after updating? The theme registry would need to be rebuilt due to some of the changes. Also any views plugin cache would need to be reset as well.
I'll see about that error specifically and see if I can make a smoother upgrade path for alpha3
Comment #5
minorOffense CreditAttribution: minorOffense commentedAlso, could you post a copy of your optionset? It'll help me replicate the issue.
Comment #6
pneedle CreditAttribution: pneedle commentedJust chiming in: after installing the update, I'm getting the error message:
"Notice: Undefined index: uri in theme_flexslider_list() (line 48 of ...../flexslider/theme/flexslider.theme.inc)."
Successfully reverted to alpha1:
Removed alpha2, replaced with alpha1, cleared caches and ran update.php to get back to proper functioning.
Comment #7
dmkeene CreditAttribution: dmkeene commentedYes, cleared the cache. Ran Cron, Dumped the tables associated with the module and started from scratch. Upon reinstallation, cleared the cache, etc...
As for option sets - for flexslider or views? Flexslider options are default. View is:
Comment #8
dmkeene CreditAttribution: dmkeene commentedWent ahead and reverted to alpha1 - all is well...for now.
Although, I am having a time of attempting to get the slide centered on the page. As each slide loads, they offset to the right by about 1-2px. The first is off by about 7px, then it gets worse as each slide loads. Not exactly the place for it, but if you had a quick tip...
Comment #9
joshuautley CreditAttribution: joshuautley commentedReverted after update as well due to the same error.
Comment #10
alexander.sibert CreditAttribution: alexander.sibert commentedI have the same issue on two pages:
http://lafox.de (front page) (see errors)
and http://neofelis.de/referenzen/key-book (Screenshots of my portfolio) (here is the Flex slider hidden)
I cleared cache, executed the cron, updated the tables and resaved the view and Flex slider module settings.
Comment #11
fkarczeski CreditAttribution: fkarczeski commentedSame issue here. Using Flexslider fields but images do not load after update.
Tried to do a little debugging but I didn't get too far. Seems like the $items variable in the flexslider.tpl.php file is NULL and therefore nothing gets printed. I'm not sure if I am looking in the right place tho.
Comment #12
Tregonia CreditAttribution: Tregonia commentedWhat is the best way to revert the module back to alpha 1 for those of us that are not sure how to revert a module.
Comment #13
joshuautley CreditAttribution: joshuautley commentedDisable the module (all of it that was checked - 4 parts total).
Delete it from the server (not a Drupal task - I use FTP - some use Git).
Reinstall it from the install path (is a Drupal task).
Enable the module (and any of its parts you need). That's it.
Comment #14
Tregonia CreditAttribution: Tregonia commentedThis worked for me. I thank you.
Comment #15
minorOffense CreditAttribution: minorOffense commentedItems being null would be a problem. Probably something in the preprocessor then.
Comment #16
Chimos CreditAttribution: Chimos commentedI'm using default and a custom flexslider configuration, and none of them is showing the slide after updating form alpha1 to alpha2.
I'm using media too as a widget, just updated to 7x-2.0 alpha2 (and some other modules).
The list wrapper is empty in html (attach image)
Went back to alpha1 and its working properly again.
Thanks!
Comment #17
sethviebrock CreditAttribution: sethviebrock commentedThis particular error occurs when there is no URI or link assigned to the slide image. I.e. if you're not linking out your slide anywhere. To suppress the error I just threw this above the
$output .=
concatenation, just below line 43. Didn't cause anything to fail in my case:Then you can do the output concatenation:
Comment #18
arx-e CreditAttribution: arx-e commentedI got similar issue with the dev version (upgrading 2.0-alpha1+13 to alpha1+17).
I needed some time to get the backups so I started going back in time via the commits page and I got the following results:
1. Latest dev 7.x-2.0-alpha1+17-dev: Slideshow renders OK but gives error messages:
Notice: Undefined index: uri in theme_flexslider_list() (line 48 of /.../modules/flexslider/theme/flexslider.theme.inc).
Notice: Undefined index: uri in theme_flexslider_list() (line 48 of /.../modules/flexslider/theme/flexslider.theme.inc).
Notice: Undefined index: uri in theme_flexslider_list() (line 48 of /.../modules/flexslider/theme/flexslider.theme.inc).
2. Dev version at commit 33dad68: Slideshow renders but damaged and gives the above 3 errors plus one more:
Notice: Trying to get property of non-object in flexslider_views_preprocess_flexslider() (line 45 of /home/.../modules/flexslider/flexslider_views/flexslider_views.module).
3. With version at the commit 8c765a0 and everything works OK.
4. Back to alpha1+17 and the same errors. Back to 8c765a0 all OK.
Another instance that uses the FlexSlider Views Slideshow was not affected.
Comment #19
alexander.sibert CreditAttribution: alexander.sibert commentedI reinstalled the Flexslider module like the description above but it works not.
Comment #20
jackhutton CreditAttribution: jackhutton commentedsame issue here. After updating to alpha 2 the flexslider doesn't render in views or in a standard flexslider page..
rolled it back..
Comment #21
jday CreditAttribution: jday commentedI upgraded to flexslider 2.0-alpha2 and the slideshows display fine but I was getting the line 48 error mentioned in the summary above. Adding the lines from #17 got rid off the errors for me. There were three listed, one for each slide. But I am using a link field to attach a destination to each slide, and I'm not using a pager.
Comment #22
jpstrikesback CreditAttribution: jpstrikesback commentedHere is #17 (essentially). This fixes the notice.
Comment #24
dansarmo CreditAttribution: dansarmo commentedLine 48 in flexslider.theme.inc :
'thumb' => isset($item['thumb']) ? $item['thumb'] : image_style_url($optionset->imagestyle_thumbnail, $item['uri']),
would be:
'thumb' => isset($item['thumb']) ? $item['thumb'] : image_style_url($optionset->imagestyle_thumbnail, isset($item['uri']) ? $item['uri'] : ''),
Comment #25
arx-e CreditAttribution: arx-e commentedI just tried the modification suggested in #24 over 7.x-2.0-alpha1+17-dev and I can confirm that the error messages have gone and the slider works as expected.
Comment #26
anatalsceo CreditAttribution: anatalsceo commented#25 modification also worked for me.
thanks dansarmo.
Comment #27
catchlight CreditAttribution: catchlight commentedSame happening here with 7.x-2.0-alpha2
Comment #28
jpstrikesback CreditAttribution: jpstrikesback commentedComment #29
jpstrikesback CreditAttribution: jpstrikesback commented#22: 2069435-fix-for-uri-notice.patch queued for re-testing.
Comment #30
minorOffense CreditAttribution: minorOffense commentedI've written a patch that fixes the notice and the fields issue. Please test and report back.
Comment #31
scottsawyer@minorOffense so far so good, thank you for the patch.
Comment #32
minorOffense CreditAttribution: minorOffense commentedPlease try it with flexslider fields and views on if you could.
Comment #33
arx-e CreditAttribution: arx-e commentedCan this patch be applied to the current dev version too? (7.x-2.0-alpha1+17-dev)
Comment #34
minorOffense CreditAttribution: minorOffense commentedIt should yes.
Comment #35
jpstrikesback CreditAttribution: jpstrikesback commentedPatch above works nicely in views.
Comment #36
jackhutton CreditAttribution: jackhutton commentedtrying to apply the patch.. prob my fault some way.. but i get first
removed the spaces at those positions in the patch
then tried again.. got
fatal: corrupt patch at line 28
turned on the views as noted in #32 and got the same error..
I'll keep at it..
Comment #37
minorOffense CreditAttribution: minorOffense commentedTrailing whitespace isn't a big deal. Won't affect the code/fix. But I'll make a note to trim it down when I merge it in.
If you want to make your life easier, you can clone the branch where the patch is applied.
https://drupal.org/node/1316346/git-instructions/2069435/nonmaintainer
Comment #38
drupov CreditAttribution: drupov commentedHi,
#30 worked for me on a view with a FlexSlider-Format. The view was just showing some collection of articles and their images. What the patch from #30 actually did was make the message "Notice: Undefined index: uri in theme_flexslider_list() (line 48..." disappear.
The view did actually work even before the patch, only the message was confusing. Anyway the patch made it disappear.
Comment #39
drupov CreditAttribution: drupov commentedAlso a note to #36 and #37:
If I apply the patch with git, I get the "whitespace"-errors:
If I apply it with patch, everything seems to work fine:
Comment #40
SkinAfter applying the patch flexlider is working again in my views, but not in an image field formatted with flexslider.
I have this problem on a server running php 5.3.x, on a local installation if I use php 5.4.x the same identical site starts to work.
Comment #41
minorOffense CreditAttribution: minorOffense commentedCan you try clearing your caches and updating the config on your fields display? Just go to manage display and resave the settings as required.
Comment #42
arx-e CreditAttribution: arx-e commentedI applied the patch (#30) over 7.x-2.0-alpha1+17-dev and I can confirm the module works OK with my setup which involves one slideshow via Views applied as a style and one via views applied as a style plugin to Views Slideshow (which ends in a node page display via EVA). Both work as expected.
I have don't have any fields setup to display via the flexslider formatter.
Comment #43
steveoriolAfter applying the patch and clearing all the caches,
flexlider still display a notice for a view displayed in 'Block' mode and with the Format:FlexSlider.. no it is OK, I have forgot to patch the good module path !"root_http/sites/all/modules/flexslider" is not use when there is a "root_http/sites/name_of_the_site/modules/flexslider" (multi-sites)
Comment #44
emmonsaz CreditAttribution: emmonsaz commented#30 patch restores the slideshow but still breaks maximenu integration: WARNING: theme hook maximenu_drop not found
Comment #45
mermentau CreditAttribution: mermentau commented#30 worked for me. The slider was always working, but I was getting a ton of error messages in the log which have now stopped. Applied the patch to 7.x-2.0-alpha2.
Comment #46
artis CreditAttribution: artis commentedHas this patch #30 been committed to dev?
Comment #47
minorOffense CreditAttribution: minorOffense commentedYes it has.
Comment #48
minorOffense CreditAttribution: minorOffense commentedComment #49
alexander.sibert CreditAttribution: alexander.sibert commentedAfter upgrade to lastest dev Version of Flexslider module it shows me no errors anymore on http://lafox.de but the Slider created with Views and pasted in with Panels is now hidden. I resaved the View and Flexslider Settings but without success.
Comment #50
alexander.sibert CreditAttribution: alexander.sibert commentedI cleared now the Drupal general cache and receive following error:
It is now assigned with the Picture module for Breakpoints.
Comment #51
Irisibk CreditAttribution: Irisibk commented#30 works for me too. Thanks a lot.
Comment #52
jackhutton CreditAttribution: jackhutton commentedMinor offense - thank you for your work on this . The latest dev works great
Comment #53
cesc1989 CreditAttribution: cesc1989 commented#24 works good. I did not have to downgrade the flexslider alpha version. You just need to change the line #24 mentions and it will no longer prompt the error notice.
Comment #54
Darren OhFixed in commit 7c0b80f.
Comment #55
helonaut CreditAttribution: helonaut commentedConfirmed, thank you very much for solving this quickly !
Comment #57
gilsbert CreditAttribution: gilsbert commentedHi, I have the same issue reported at #50.
PHP Fatal error: Call to undefined function template_preprocess_flexslider_list() in /srv/www/drupal/sites/all/modules/picture/flexslider_picture/theme/flexslider_picture.theme.inc on line 16
I have no idea how to fix it.
Regards,
Gilsberty
Comment #58
gilsbert CreditAttribution: gilsbert commentedNever mind.
My issue is reported here: https://drupal.org/node/2084979
Thanks.
Comment #58.0
gilsbert CreditAttribution: gilsbert commentedAnd updated the db
Comment #59
harrisonrce CreditAttribution: harrisonrce commentedhello, I have this version 7.x-2.0-alpha3, and the gallery's up in a field of infinite aggregate in drupal 7, but does not show all images can vary but if they enter 15 only shows 6, if admitted 25 sample 12, apparently all is well, the image path and everything, i checked from views and from fields directly but it always gives me the same. Anyone know how to fix this
Comment #60
Chimos CreditAttribution: Chimos commentedHi,
I upgraded to alpha3 and it seems that did not fix broken fields integration in my case (see html in screenshot)
I'm using flexslider library v2.2.2
Can you help? I missed something?
Thanks
Comment #61
Chimos CreditAttribution: Chimos commentedHi,
Flexslider module page says:
It did not fix broken fields integration in my case (see html in screenshot)
I'm using flexslider library v2.2.2
I have updated scripts, flushed cache and runned cron.
Can you help? I missed something?
Thanks