I am getting the following two error messages:
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of /home6/*****/public_html/profiles/*******/modules/contrib/calendar/theme/theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of /home6/*******/public_html/profiles/*******/modules/contrib/calendar/theme/theme.inc).
This error message is slightly different from the latest dev version's error at: https://drupal.org/node/1471400.
I have built two sites for non-profits in Drupal, but am not a programmer, so I avoid using the dev versions of modules. What can be done to fix this issue?
Thanks in advance!
TV
Here is a patch
Comment | File | Size | Author |
---|---|---|---|
#4 | remove-warning_2105573_3.patch | 626 bytes | zakxxi |
Comments
Comment #1
joshuautley CreditAttribution: joshuautley commentedWhat version of PHP does your hosting provider run? I am guessing you are using a shared host provider as you stated you are not a programmer. It may be caused by running php 5.4.
I have php 5.4 on my local machine and I get this same error but on my production server I have php 5.3 and there is no error.
You can disable the errors from being displayed until you get it sorted out only turning them back on to trouble shoot the issue.
Configuration > Development > Logging and errors
http://localhost/admin/config/development/logging
Comment #2
gbirch CreditAttribution: gbirch commentedThis is a duplicate of another issue: https://drupal.org/node/1471400
The patch at comment #58 works nicely.
Hope that helps.
(Comment edited because my fix didn't always work)
Comment #3
zakxxi CreditAttribution: zakxxi commentedPHP Version 5.4.19 and same error
Solved by replacing on Line 38 of theme.inc :
$cell = $data['data'];
by :
Comment #4
zakxxi CreditAttribution: zakxxi commentedThis is a Patch, it's like #3
Comment #5
firesidelibrarian CreditAttribution: firesidelibrarian commentedThanks everyone!
So do I apply both patches, and if so, in what order? Or do I just apply the second one?
Comment #6
firesidelibrarian CreditAttribution: firesidelibrarian commentedIt appears I neglected to mention that my hosting provider runs PHP 5.4. I can select one of several versions of PHP, but for the modules I am using, this has been giving me the best results up until now.
Also, I am confused as to where to apply the patches. I understand the basics of applying patches, but cannot find the folder for the Calendar module to try the patch. It is not listed in
sites/all/modules
or insites_oo/all/modules
, so where do I apply it?Thanks again!
Comment #7
firesidelibrarian CreditAttribution: firesidelibrarian commentedFound the place to apply the patch!
I am using the Open Outreach distribution, which means the Calendar module is in a slightly different location from a standard Drupal install:
profiles/openoutreach/modules/contrib/calendar
Uploading the "...78" patch and running it there worked!!
Feel free to close my issue, if no one else is having this problem, and thanks for being there!
Comment #8
BoobaaSeems to be a duplicate of #1471400: Warning: Illegal string offset 'data' in template_preprocess_calendar_month.