I get this error. And the editing modes are not stable.
Notice: Undefined property: view::$_vns_captions in include() (line 45 of /WWW/kas.siteograf.com/sites/all/modules/views_nivo_slider/views-nivo-slider-view.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 45 of /WWW/kas.siteograf.com/sites/all/modules/views_nivo_slider/views-nivo-slider-view.tpl.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #27 | views_nivo_slider_tpl-1129444.patch | 874 bytes | ckng |
| #15 | bugfixes-1129444-15.patch | 1.43 KB | alexbern |
| #4 | views-nivo-slider-view.tpl-bugfix.zip | 967 bytes | dragonfighter |
Comments
Comment #1
dragonfighter commentedPlease open and update the file "views-nivo-slider-view.tpl.php" with the code below (lines 45-55):
Comment #2
siteogra commentedAfter this correction there is a white screen.
Maybe there is an inaccuracy in the code?
But notice that at the minimum settings without having to patch works. The error still shows.
Comment #3
CPxiom commentedHello "siteogra",
After you make the corrections above, you need to add one more
endif;after theendif;// bug fix 1129444Hope this helps.
Comment #4
dragonfighter commentedYou may have done something wrong. Please use the file below:
Comment #5
siteogra commentedA similar error in version 6.
To solve it to the same piece of code (from dragonfighter on April 19, 2011 at 1:11pm ) to insert in line 40-44
Comment #6
edvanleeuwenPlease correct me if I am wrong, but I think
should read
.
View is an object and the if-part always fails.
Comment #7
asauterChicago commented@edvanleeuwen
Yesssss! This did the trick. I replaced
if(is_array($view))withif(is_array($view->_vns_captions))and now it works perfectly! No more errors. I couldn't even get Views Slideshow to work without problems on Drupal 7, but Nivo Slider works perfect now! Thanks!Comment #8
melissa81 commentedI'm kinda lost, after following the instruction to replace lines 45 to 55 and adding a closing end if php tag, there were no more errors but the images are now not displaying for me as an unauthenticated used whereas the permissions to view nodes have already been granted.
This is an export of my views, please advice if you see any errors which might have led to this. Thanks.
-Mel.
Comment #9
himtuna commentedI am not able to get it working on drupal 7.
I have gone through many issue pages, a lot of people have reported that drupal 7 version is working for them. I tried applying patches, makes changes here and there. But just couldn't get this wonderful module working.
Kindly post the entire patched module for D7, if it is working for you.
Comment #10
ymazigo commentedthanks #4 fix my problem
Comment #11
kaylsbeth commentedGot this working after applying the above bug fixes posted by dragonfighter and Calin. Module is working quite well, but whenever I make an edit in views and save it (whatever I'm editing in particular, not the entire view), I get a wall of code I do not understand. If I use the back button to get out of it, all is fine, and the edit is made. So far as I can tell, it does not cause any major problem--just a mild annoyance. Should I be concerned?
Comment #12
ckngPlease try out the latest dev and report back if you still have the problem, thanks.
Comment #13
kaylsbeth commentedReinstalling the last dev version jut undid everything I had done in the first place to get the slider to work (my boss is having issues getting the slider to work on chrome on mac, hence what otherwise would have been an unneeded attempt).
Comment #14
meramo commentedSame error on latest drupal 7
Comment #15
alexbern commentedHello,
I fixed this issue with a new branch version + added another bug fix to avoid error messages when no field is selected. I did alot of test and have nivo now run under live. Use it with Zen Theme: no Errors.
@ckng: as i can see no problems anymore, you could go for first stable (or beta) version after reviewing. I've also commited the new views-nivo-slider-view.tpl to the branch.
cheers alex
Comment #16
mikeinvaldosta commentedBingo! Thx
Comment #17
FreeFox commentedTested it too and errors are gone ;) Thanks Alex
Comment #18
Argus commentedYeah the errors are gone with #15
Comment #19
druplerjr commentedJust installed the most recent dev verison for 7 and get the error:
Notice: Undefined property: view::$_vns_captions in include() (line 45 of /home/bneale/public_html/sites/all/modules/views_nivo_slider/views-nivo-slider-view.tpl.php).
Warning: Invalid argument supplied for foreach() in include() (line 45 of /home/bneale/public_html/sites/all/modules/views_nivo_slider/views-nivo-slider-view.tpl.php).
If someone has this working, could you upload a corrected views-nivo-slider-view.tpl.php file?
Comment #20
Remon commentedIt works!!! Thanks guys.
@druplerjr, test the patch in comment 15.
Comment #21
patoshi commentedcommit ? subbing
Comment #22
chrishrtmn commentedI too am receiving this warning/notice. Need this module for 7.x to work flawlessly as soon as possible. =)
Subscribing.
Comment #23
mermentau commented@chrishrtmn, Patch at #15 did the job for me too.
Comment #24
superkuton commentedPatch # 4 worked for me.
Thanks.
Comment #25
borgewarvik commentedPatch #15 worked for me.
Comment #26
txumari commentedI get this error, and with de solutions disapear the error message, but in Chrome the image doesn´t show.
Any idea?
Comment #27
ckng#15
$title do not need to be render()'ed
these looks like your own codes?
Committed the attached patch: 544e390
Comment #28
khan2ims commentedHi,
Most of the errors are gone. But now it's showing this error
Notice: Undefined offset: 0 in template_preprocess_views_nivo_slider_view_nivo_sliderfields() (line 122 of /sites/all/modules/views_nivo_slider/views_nivo_slider.module).
Please help.
Edit: I filtered it for a node, and now it works fine.
Comment #29
ermannob commentedPlease note that several error levels exist in php, and yours is just a "notice", not a "warning", nor an "error". I think you can safely suppress notice messages at server level.
Comment #30
mekuchii commentedIt worked.Thanks. Just copied and pasted the whole file.