I'm not sure at all if it's this module or sg else (eg. ctools).
I set up a fullcalendar view with fullcalendar create. They were working perfectly for a while. Then I started tweaking the event node form. Now if I add my event content via fullcalendar node, instead of redirecting me back to the fullcalendar view I get this 12 lines long text:
http://paste.pocoo.org/show/572076/
The event nodes seem to be created all right though.
(If I add the same node normally (via node/add/mycontenttype), it's working ok. )
I tried to track it down. When I commented out a #states definition of my content node form_alter, the problem ceased. (There are 2 #states definitions in my form_alter but only one of them is causing this issue.) The problem is in fullcalendar_create_add_form(). Normally in this function the $_POST['ajax_page_state'] is set. When I see this problem, it is not.
This might be related: #1354280: Adding FullCalendar View -> Fields -> Date generates "code" ... since I see a much longer text with a similar beginning with the latest dev of Date.
Or this: #1436380: Reusing a calendar.module view for fullcalendar will break
Comments
Comment #1
czigor commentedDuplicate of #1363174: "return $form" in ajax callback breaks ctools modal forms.
The bottomline: you should not return the whole form in an ajax callback in case of modal forms.
I used the solution here:
http://drupal.org/node/1363174#comment-5358908