This is the same issue as seen at http://drupal.org/node/1354280, but I thought it might be more appropriate to open a new issue. Basically the problem is that when I try to add a date field into a Fullcalendar view, my browser generates a long set of javascript (the full code can be seen below). I think what is happening is that instead of executing that code it is just printing it.

http://paste.pocoo.org/show/572795/

As a side note, in a different browser, instead of getting the display of the json when I click apply (all displays), I am asked to download the json as a file.

Comments

calefilm’s picture

Same issue here. Don't know what to do..

calefilm’s picture

Resolved:

Forgot to download the plugin. http://arshaw.com/fullcalendar/download/

When you do, open it up and copy and paste the Full Calendar folder within the file, making sure to get rid of the demo and jquery folders just as the Read Me Instructions say..

knsheely’s picture

Title: Adding date field in Fullcalendar view prints JSON code instead of running it » Date Field Required Error remains after adding date field
Category: bug » support

This was fixed after deleting the demo and jquery folders. Thanks calefilm.

However, now I am having another problem. After I add in the date field to the Fullcalendar view, I am still presented with the error "Display "Page" requires at least one date field." If I try to save the view I am presented with that error as well as the following:

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'human_name' in 'field list': INSERT INTO {views_view} (name, description, tag, base_table, human_name, core) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => test [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => default [:db_insert_placeholder_3] => node [:db_insert_placeholder_4] => test [:db_insert_placeholder_5] => 7 ) in views_db_object->save_row() (line 2092 of /home/claudia/public_html/durangouu.365durango.com/sites/all/modules/views/includes/view.inc).

calefilm’s picture

I'm pretty sure that's the same error I had.. What i did as a result of getting the error in the first place was to uninstall FullCalendar and then start over.

did you make sure to place the fullcalendar.js and other files within the sites/all/libraries/FullCalendar/fullcalendar.js ?

I initially had sites/all/libraries/fullcalendar/fullcalendar/fullcalendar.js and that game me an error

knsheely’s picture

Did you mean to capitalize Fullcalendar in sites/all/libraries/Fullcalendar/fullcalendar.js?

My fullcalendar plugin is in sites/all/libraries/fullcalendar/ (eg. sites/all/libraries/fullcalendar/fullcalendar.js)

I uninstalled and re-installed Fullcalendar and I am still getting the error that "Display "Page" requires at least one date field."

Running the following SQL command got ride of the PDOexception, but not the date field error.

ALTER TABLE `views_view` ADD COLUMN `human_name` VARCHAR(255) NULL default '';

calefilm’s picture

You got it. I wish I could help you but I'm just not very advanced yet. Hopefully others will have some better advice.

knsheely’s picture

Status: Active » Fixed

Everything seems to be working fine, now, despite the date required error. I think it is probably just a superficial caching issue. Thanks for the help!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Bensbury’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev
Category: support » bug

I'd like to add that this error still happens on the current 7.x-2.0-beta3 & the Dev version.
Having tried to locate the patch in the code, its different so it looks like you can't do anything about it.

Is there a solution to this?
And if there is a particular way to make the view, is there instruction how to do so?
The calendar works fine.
I just have a error message keep displaying.

sivani45’s picture

This is same issue i have Date Field Required Error remains after adding date field new version and new civicrm.