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

CommentFileSizeAuthor
#6 basicevent_0.patch819 byteswebchick

Comments

Andrupal’s picture

Same bug here!

Fatal error: Cannot use string offset as an array in /home/andrew/public_html/modules/filter.module on line 842

Any progress?

rbroberts’s picture

This appears to have been fixed in CVS. I had the same problem, but just loaded the April 22 cvs tarball and it works fine.

rubenk’s picture

Status: Active » Closed (fixed)

Confirmed. This has been fixed in CVS as of April 27th, 2006.

webchick’s picture

Status: Closed (fixed) » Active

I'm still getting this in 4.7 event module. PHP 5.1.1. Investigating further...

webchick’s picture

Confirmed 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...

webchick’s picture

Title: Cannot create or modify event » PHP 5, Fatal error w/ filter.module
Component: Code » Basic Event
Status: Active » Reviewed & tested by the community
StatusFileSize
new819 bytes

Found it.

pegmonkey’s picture

Status: Reviewed & tested by the community » Active

Is 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.

pegmonkey’s picture

In 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...

webchick’s picture

Status: Active » Reviewed & tested by the community

It's for basicevent.module.

killes@www.drop.org’s picture

Status: Reviewed & tested by the community » Fixed

was already applied on HEAD, will be backported soon.

Anonymous’s picture

Status: Fixed » Closed (fixed)