Immediately after installing and still persisting I get the following error message at the top of the Events Page:

Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of /home/public/profiles/openoutreach/modules/contrib/calendar/theme/theme.inc).

Any ideas?

Comments

Steve -cc’s picture

Title: Evetns Page - Error messages » Events Page - Error messages
Mod74’s picture

Have a look at https://drupal.org/node/1471400

You want to make the change described in the third comment (#3) but note as per comment #75 the line is now 37.

This is how I changed mine, lines 35 - 41

$month_rows = $rows;
  foreach ($rows as $weekno => $row) {
    foreach ($row as $day => $data) {
      if (!isset($data['data'])) {
        continue;
      }
      $cell = $data['data'];

This is all in the file:

profiles\openoutreach\modules\contrib\calendar\theme\theme.inc

As far as I know this is a PHP issue. You can actually ignore warnings, and switch them off on production sites.

Steve -cc’s picture

Thanks
I think I will probably do as you suggest and "ignore warnings, and switch them off on production site" for the time being.
Steve

nedjo’s picture

Status: Active » Closed (duplicate)
Steve -cc’s picture

Hi nedjo
I switched off warnings on the site so haven't been seeing them but when I look at log messages they are still being thrown whenever someone accesses the events page.
I looked at https://drupal.org/node/1471400 and it appears that there is a patch to be applied.
Are you intending to apply that patch to a future OO release? or?
Steve

Steve -cc’s picture

Anything new on this. I am still getting these error messages

Steve

pimok3000’s picture

#2 works great, changed lines 35 - 41 as described , warning is gone.