warning: Invalid argument supplied for foreach() in .../cod_session.module on line 713.
warning: Invalid argument supplied for foreach() in .../cod_session.module on line 740.
There are no warnings when the user has added items to their schedule (flagged items).
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1272254_avoid_notices_empty_schedule.patch | 13.33 KB | greggles |
Comments
Comment #1
coltraneCan you try beta2 and report whether this error still exists?
Comment #2
ltrainI downloaded and tried the packaged beta2 version - no warnings (there were warnings in packaged beta1).
But then I upgraded the support modules to beta2 (which I am using with an existing drupal site), and I still get the warnings there.
Thanks
Comment #3
smerth commentedHi there,
I am using the beta 2 version as well and I can confirm an identical error message. (other than that - what a nice piece of work!)
Comment #4
ltrainThere are two confirmations of the error with beta 2.
Thanks
Comment #5
rachel_norfolkyes, having same issue in beta2.
Is there anything anyone would like me to look at to help analyse?
Comment #6
dc_marc commentedSame or similar issue. Installed beta2 fresh and performed only the security upgrades for the modules. Created one event, one time slot, five rooms, and one schedule item. Edited the Program page as well. Just having done this alone, the error shows up 6 times on /program/session-schedule logged in as user1. The first five all indicate line 713 is the error, while the sixth indicated line 740. My assumption is that 713 related to the 5 rooms (it's the only thing I have 5 of), while line 740 relates to either the event or the time slot or probably the schedule item. In any case, is there a workaround?
Comment #7
gregglesI can confirm this and have a proposed fix. It looks like a lot of changes, but it's really just a few lines of empty checks that looks like a lot because of indentation changes.
Comment #8
ezra-g commentedLooks good - thanks!
http://drupalcode.org/project/cod_support.git/commit/8f3a238