This repository was archived by the owner on Mar 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
How To Install iCal for OpenScholar
Ethan Mallove edited this page Nov 23, 2016
·
1 revision
Working through the below error in the /calendar/upcoming/all/export.ics output on my localhost:
Please install the iCalcreator library to enable iCal output.
The error occurs despite seeming to have the libraries/modules needed:
$ drush pml|grep -i ical
Date/Time Date iCal (date_ical) Module Enabled 7.x-2.7
Other Hierarchical taxonomy (hierarchical_taxonomy) Module Enabled 7.x-1.x-dev
Services xCal and iCal formats (xcal_format) Module Enabled 7.x-3.3+42-dev
This page shows the solution: https://www.drupal.org/docs/7/modules/libraries-api/installing-an-external-library-that-is-required-by-a-contributed-module. That is, we need to copy the iCalcreator source directory into the following locations:
- libraries
- sites/all/libraries
- profiles/[yourprofilename]/libraries
- sites/example.com/libraries
Here is a simple validation test for a successful installation of the iCalcreator library:
$ drush php-eval "var_dump(libraries_load('iCalcreator'));";
array(17) {
["name"]=>
string(11) "iCalcreator"
["vendor url"]=>
string(42) "http://kigkonsult.se/iCalcreator/index.php"
["download url"]=>
string(52) "http://kigkonsult.se/downloads/index.php#icalcreator"
["version arguments"]=>
array(3) {
["file"]=>
string(21) "iCalcreator.class.php"
["pattern"]=>
string(61) "/define\( 'ICALCREATOR_VERSION', 'iCalcreator ([\d\.]+)' \);/"
["lines"]=>
int(100)
}
["files"]=>
array(1) {
["php"]=>
array(1) {
["iCalcreator.class.php"]=>
array(0) {
}
}
}
["module"]=>
string(9) "date_ical"
["machine name"]=>
string(11) "iCalcreator"
["path"]=>
string(0) ""
["library path"]=>
string(31) "sites/all/libraries/iCalcreator"
["version callback"]=>
string(21) "libraries_get_version"
["dependencies"]=>
array(0) {
}
["versions"]=>
array(0) {
}
["integration files"]=>
array(0) {
}
["callbacks"]=>
array(6) {
["info"]=>
array(1) {
[0]=>
string(23) "libraries_prepare_files"
}
["pre-detect"]=>
array(0) {
}
["post-detect"]=>
array(1) {
[0]=>
string(29) "libraries_detect_dependencies"
}
["pre-dependencies-load"]=>
array(0) {
}
["pre-load"]=>
array(0) {
}
["post-load"]=>
array(0) {
}
}
["installed"]=>
bool(true)
["version"]=>
string(7) "2.16.12"
["loaded"]=>
int(1)
}