Closed (outdated)
Project:
Date
Version:
6.x-2.6
Component:
Date Repeat API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2009 at 07:35 UTC
Updated:
27 Jun 2018 at 13:38 UTC
Jump to comment: Most recent
Comments
Comment #1
HallSL commentedHi, updated to rc4, newer versions of date and calendar, but still the same WSOD, same error message.
Fatal error: Cannot unset string offsets in /home/riverrep/public_html/sites/all/modules/date/date_repeat/date_repeat_form.inc on line 212
Comment #2
kenorb commentedWhich version of date you have?
Did you tried to update it?
Comment #3
jmbeach commentedI've been experimenting with the experiment support in the Node Import for date events using Date 6.x-2.0.
If the date field for my content type has the repeat option enabled, I get the WSOD with the "Fatal error: Cannot unset string offsets". If my date field does not have repeat options, then I can import date into my event content type.
When I am creating the import using the node import module, on step 4 of 8, for my event date field is lists "Unsupported: Event Date - rrule". I am assuming that this is where one could import the repeat rules for a date field, but its not supported.
I don't know if this is something that needs fixed in Date or Node Import.
Comment #4
karens commentedThis is not a general bug but something specific to Node Import that could well be a Node Import problem. Not a high priority for me because I need to fix things that affect most people rather than special cases, but if someone wants to dig into this, that's great.
Comment #5
choster commentedReported in node_import issue queue as #374346: Can't import date values into Date module fields.
Comment #6
keinstein commentedThis is definitly a bug in date:
You test for $form_values['BYDAY'] and try to $form_values['BYDAY'][''] which is not set in this context.
The correct test would be:
A short version that work for me is
Idon't know if that is good or bad style.
This bug is also contained in lines 213 and 214, and in
date\date_api_ical.inc on lines 644—646
Comment #7
bstankie commentedCan you provide more information on how you did this fix? It isn't clear from your posting which files have the problem (other than date_api_ical.inc). I have been struggling with this for the past month and would like to find a solution (or at least a fix).
Thanks
Comment #8
aaroninaustin commentedI have been experiencing the same issue using dates and XML-RPC with the Services module. The problem has been intermittent in this and the previous version of Date.
A little background...
Similar in theory to the Node Import issue – I have a drupal site that is used as a central calendar for a number of other sites. Some users are entering dates, via a CakePHP application, which are sent as an xml-rpc call to the drupal site. This works very well and oddly enough issue is not common -
The drupal install has the ability to use repeating dates, but the users can not actually input them, they have no options for repeating dates. That being said, the error definitely only occurs when creating dates with a date range.
Okay so...
The error appears in the logs first as an issue in the iCal module, which strangely IS NOT turned on:
array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/www/www.mysite.com/webroot/calendar/sites/default/modules/date/date_api_ical... on line 645
First I made a change similar to keinstein for each RRULE key check :
This seemed to make it less frequent, but it still occurred. Also as keinstein notes the bug was appearing with similar key checks in date_repeat/date_repeat_form.inc as well.
Since I'm not using repeating dates, I eventually commented out lines 644 - 670 of date_api_ical.inc and lines 213 - 229 of date_repeat_form.inc .I'm working on expanding my watchdog function a little bit to see if I can get a little more information on the error. I'd like to eventually let my users add repeating dates, so let me know what I can do to help with tracking down this bug. Thanks I'm a real fan of the Date Module!
Comment #9
un11imig commentedHi,
I have the same problem using a client with C Sharp through XML-RPC.NET. I apply the path #6 and at least I solve one of the errors I have.
Comment #10
geerlingguy commentedSame problem here:
Cannot unset string offsets in /path/to/date_repeat_form.inc on line 212Comment #11
Crom commentedsame here but the fix in #6 sorted this out - thank you keinstein
Comment #12
kenorb commentedDrupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.