Using Drupal 4.7.0-rc3 and fresh install of Event 4.7.0, which is dated April 9, 2006 - 12:09
When I hit the submit button on when either creating or modifying an event.
Fatal error: Cannot use string offset as an array in /home/gmatus/public_html/sff1/modules/filter.module on line 842
on line 841 of filter.module begins the following function
function filter_form_validate($form) {
foreach (element_children($form) as $key) {
if ($form[$key]['#value'] == $form[$key]['#return_value']) {
return;
}
}
form_error($form, t('An illegal choice has been detected. Please contact the site administrator.'));
watchdog('form', t('Illegal choice %choice in %name element.', array('%choice' => theme('placeholder', check_plain($v)), '%name' => theme('placeholder', empty($form['#title']) ? $form['#parents'][0] : $form['#title'])), WATCHDOG_ERROR));
}
so we're choking on the foreach statement
Comments
Comment #1
Andrupal commentedSame bug here!
Fatal error: Cannot use string offset as an array in /home/andrew/public_html/modules/filter.module on line 842
Any progress?
Comment #2
rbroberts commentedThis appears to have been fixed in CVS. I had the same problem, but just loaded the April 22 cvs tarball and it works fine.
Comment #3
rubenk commentedConfirmed. This has been fixed in CVS as of April 27th, 2006.
Comment #4
webchickI'm still getting this in 4.7 event module. PHP 5.1.1. Investigating further...
Comment #5
webchickConfirmed it is fixed in event HEAD. Interesting. On the surface it looks like the only difference between event.module in 4.7 and HEAD is whitespace. Checking...
Comment #6
webchickFound it.
Comment #7
pegmonkey commentedIs this for event.. or basicevent? I'm still getting this error with event.module and I'm use CVS. 1.194 of event.module. I don't use basicevent.. so I can't comment on that.
Comment #8
pegmonkey commentedIn my case, the error was actually being generated by flexinode... which was updated 8 days ago.. grabbed the cvs.. all is good now. It looks like lots of modules are being affected...
Comment #9
webchickIt's for basicevent.module.
Comment #10
killes@www.drop.org commentedwas already applied on HEAD, will be backported soon.
Comment #11
(not verified) commented