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.
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
Comment #1
calefilm CreditAttribution: calefilm commentedSame issue here. Don't know what to do..
Comment #2
calefilm CreditAttribution: calefilm commentedResolved:
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..
Comment #3
knsheely CreditAttribution: knsheely commentedThis 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).
Comment #4
calefilm CreditAttribution: calefilm commentedI'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
Comment #5
knsheely CreditAttribution: knsheely commentedDid 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 '';
Comment #6
calefilm CreditAttribution: calefilm commentedYou got it. I wish I could help you but I'm just not very advanced yet. Hopefully others will have some better advice.
Comment #7
knsheely CreditAttribution: knsheely commentedEverything 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!
Comment #9
Bensbury CreditAttribution: Bensbury commentedI'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.
Comment #10
sivani45 CreditAttribution: sivani45 commentedThis is same issue i have Date Field Required Error remains after adding date field new version and new civicrm.