Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I create a new View for FullCalendar with Page, Block 1 and Block 2 Displays. After awhile when I try to edit the Settings of FullCalendar Format, I get this error:
An AJAX HTTP error occurred. HTTP
Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/display/fullcalendar/block_1/style_options
StatusText: parsererror
ResponseText: Warning: array_merge(): Argument #1 is not an array in array_merge() (line 3969 of /includes/form.inc)
I am using all Dev of CTools, FullCalendar and Views.
Pastebin of FullCalendar View: http://pastebin.com/MhB6ZKM3
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedJust to say that I can't reproduce this, and I don't have a clue what is going on...
Comment #2
tim.plunkettThere is no call to array_merge on that line in that file, you must be using an older version of core.
Please update to 7.4, or even 7.x, and see if you can still reproduce.
Comment #3
R13ose CreditAttribution: R13ose commentedI just tried this with 7.4 and this is the error I am getting:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/display/fullcalendar/block_1/style_options
StatusText: parsererror
ResponseText: Warning: array_merge(): Argument #1 is not an array in array_merge() (line 3988 of /includes/form.inc). =>
Line 3988 is: $element['#attributes']['class'] = array_merge($element['#attributes']['class'], $class); from here.
Here is what I got from ddebug_backtrace():
... (Array, 12 elements)
12: _form_set_class (Array, 4 elements)
file (String, 56 characters ) /includes...
line (Integer) 2544
function (String, 15 characters ) _form_set_class | (Callback) _form_set_class();
args (Array, 2 elements)
0 (Array, 26 elements)
1 (Array, 1 element)
0 (String, 11 characters ) form-select
Tim said the class is a string. needs to be an array. I also did dpm($element['#attributes']); but this is huge amounts of text that is crazy to look at.
I did find this: _form_set_class($element, array('form-select')); on line 2544 of the include/form.inc
If there is anything else I can try out please let me know.
Comment #4
aspilicious CreditAttribution: aspilicious commented- Do you have some custom fullcalendar modules installed?
- Do you have the new colors module installed?
- Did you run update.php?
- Can you give your module stack?
(I'm just collecting more information)
Comment #5
R13ose CreditAttribution: R13ose commentedThis worked out as I figured the steps above. Might have been that update.php did the trick or I had another module like devel enabled. Who knows exactly what would have caused this not to work out.
Comment #5.0
R13ose CreditAttribution: R13ose commentedAdded Export of FullCalendar Views