Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Line 38:
$cell = $data['data'];
Get the error in the title as of php 5.4.3-1 on Arch Linux. Workaround is to hide errors and warnings, though not ideal.
Comment | File | Size | Author |
---|---|---|---|
#27 | calendar-illegal_string_offset_data-1591388-4.patch | 460 bytes | prdctvtxt |
Comments
Comment #1
raveendrab CreditAttribution: raveendrab commentedThe error pops up on 7.x3.4 too. Line numbers 38 and 43.
Comment #2
asrobYeah, I got the same error after I installed 7.x-3.4 version and I also use PHP 5.4.3.
Comment #3
zamir CreditAttribution: zamir commentedI have a same error message as following:
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 38 of E:\drupal\sites\all\modules\contrib\calendar\theme\theme.inc).
Warning: Illegal string offset 'data' in template_preprocess_calendar_month() (line 43 of E:\drupal\sites\all\modules\contrib\calendar\theme\theme.inc).
Comment #4
zamir CreditAttribution: zamir commentedI added the following code snippet in file calendar\theme\theme.inc after line 37,then the error is missing:
Comment #5
slippast CreditAttribution: slippast commentedSolution #4 worked. Hopefully this will be fixed in the next update so I don't need to remember to hack the module. Thanks.
Comment #6
amphioxus CreditAttribution: amphioxus commentedThanks for the solution in #4... worked for me as well.
Comment #7
wusel CreditAttribution: wusel commentedD5.17
Calendar 7.x-3.4+0-dev (2012-May-20)
Thanks for the solution in #4... worked for me as well.
Comment #8
rudyard55 CreditAttribution: rudyard55 commentedI went to the dev 7.x-3.x-dev version, updated my date modules, re-saved all my date fields and then update.php and the problem cleared up for me.
Comment #9
marktheshark CreditAttribution: marktheshark commentedUsed #4 as well.
Comment #10
jabraben CreditAttribution: jabraben commentedSame problem and I guess I'll have to try #4 but shouldn't we get a response from the maintainers seeing as how this has been around for 3 months?
Comment #11
Hester Green CreditAttribution: Hester Green commentedWorked like a charm until the latest Calendar Module update wiped it out. Why wasn't a solution to this May issue incorporated into the September module update?
Hester
Comment #12
marktheshark CreditAttribution: marktheshark commentedStill present in latest dev.
Comment #13
IreneKraus CreditAttribution: IreneKraus commentedWhere should we insert this proposed fix in the current version?
Comment #14
clearviz CreditAttribution: clearviz commentedIrene Kraus asked:
See this issue thread and, especially, post #3. It worked for me!
Regards,
Arnold
Comment #15
dsteplight CreditAttribution: dsteplight commented#4 worked for me also and I'm using , version = "7.x-3.4" of the Calendar module.
Comment #16
wooody CreditAttribution: wooody commentedThank you ,, works with me too.. ;-)
Comment #17
andileco CreditAttribution: andileco commented#4 worked only partially for me - it solved the problem with the view pages but broke the block.
Comment #18
andileco CreditAttribution: andileco commentedI take that back. It works for me.
Comment #19
chlee CreditAttribution: chlee commented#4 does the job. Working fine.
Comment #20
danielbetz CreditAttribution: danielbetz commentedDrupal v. 7.19
Calendar Module v. 7.x-3.4
Error still present.
Zamir's fix in post #4 works.
Daniel
Comment #21
pingers CreditAttribution: pingers commentedSee #1471400: Warning: Illegal string offset 'data' in template_preprocess_calendar_month
Comment #22
tgshannon CreditAttribution: tgshannon commentedI started to get this error on my localhost testing after cloning a production site where the problem does not occur.
Comment #23
tasetta CreditAttribution: tasetta commentedSolution in post #4 worked. Thanks ever so much!
Comment #24
savithac CreditAttribution: savithac commentedThanks for the solution in #4. It workes for me.
Comment #25
pimok3000 CreditAttribution: pimok3000 commented#4 works for me too
Comment #26
cooldeeponline CreditAttribution: cooldeeponline commented#4 works for me too. Thanks!!!
Comment #27
prdctvtxt CreditAttribution: prdctvtxt commentedadding #4 as a patch.
Comment #28
prdctvtxt CreditAttribution: prdctvtxt commentedplease review #27 patch of #4 solution.
Comment #29
Eglish CreditAttribution: Eglish commentedThank you zamir for the solution (#4)
Comment #30
marktheshark CreditAttribution: marktheshark commentedWith this issue now open for over a year, shouldn't this module be changed to unmaintained / minimally maintained?
Comment #31
clemens.tolboomThis still is a duplicate of #1471400: Warning: Illegal string offset 'data' in template_preprocess_calendar_month (PHP 5.4.* and 7.x-3.x-dev) as @pingers tried to say in #21.
To let the maintainers fix issues we the users should help reduce the issue load :-)
Comment #32
karaoke CreditAttribution: karaoke commented#4 thank you
Comment #33
Rick Brook CreditAttribution: Rick Brook commentedSame issue found with 7.x-3.4
editing theme.inc as per #4 works great.
Comment #34
karolus CreditAttribution: karolus commentedSame issue with 7.x-3.4, updated to the more recent dev branch, same issues after multiple cache flushes. Adding the code snippet per #4 worked, though.
Comment #35
densolis CreditAttribution: densolis commentedFix in comment Number 4 still works.
Comment #36
beto_beto CreditAttribution: beto_beto commentedThanks for the solution in #4... worked for me as well.
Comment #37
d1v9d CreditAttribution: d1v9d commentedThank you Zamir. Your fix worked.
Comment #38
karolus CreditAttribution: karolus commentedQuick FYI--
I know line numbers can differ at times, and when doing a recent update, applied the patch, but the error still persisted. To apply the patch, the code should look like this:
Once this order was set (I had placed the first three line behind what is now the last at first), the issue was resolved.
Comment #39
JamesOakley@karolus - before you edited your post above this one, it said
Just to say, I don't know what you meant by "latest version", but you need 7.x-3.x-dev. If you look at the commit logs, you'll see this was fixed relatively recently, so the fix is in the 7.x-3.x-dev branch. However the last tagged release was 7.x-3.4, dated May 2012. That definitely does not have this, or any other recent fixes, in it.
So anyone having this trouble should update to the -dev release and see if that fixes it.
Comment #40
lindarosi33 CreditAttribution: lindarosi33 commentedHurray for solution #4!
Comment #41
simon fraser CreditAttribution: simon fraser commentedthanks for help on this... same error, even after applying #4 solution... (and after copying the theme file from other sites using calendars successfully) however... #38 advice from Karolus re the placement of this code snippet did make the difference... and seems to be holding!
It is great to have help like this to refer to - thank you!
Comment #42
JamesOakley@lindarosi33 and @simon_fraser: This issue has been fixed.
When you say you're still getting the error (needing solutions #4 or #38 instead), are you both using the 7.x-3.x-dev branch of the module?
Comment #43
Programming Paul CreditAttribution: Programming Paul commentedThe issue is still occurring for me using calendar-7.x-3.4 updated in 2012-May-19. Solution 4 fixed the problem. This site is an upgrade from Drupal 6, so maybe it was an issue with the update script?
Comment #44
dadderley CreditAttribution: dadderley commentedThe latest dev. 7.x-3.x-dev (2014-Jun-02), made the problem go away for me.
Comment #45
Vojtha CreditAttribution: Vojtha commentedFor me was 7.x-3.x-dev (2014-Jun-02) helpful too.
Comment #46
lidia_ua 🇺🇦 CreditAttribution: lidia_ua 🇺🇦 commentedWorked for me #4
Comment #47
GenaT CreditAttribution: GenaT commentedThanks zamir #4 worked for us!
Comment #48
JamesOakley@itbgt - which version of Calendar are you using? You should be using the latest (7.x-3.5) which already has this fix in it. If you're not using 7.x-3.5, you're likely to find more problems than just this one.