When loading iCalcreator library, there is a caveat:

If you do like I do, and put the zip file for the download in your libraries folder before unzipping it, you have to be careful about what folder name it creates. In my case, i was loading iCalcreator-2.18.zip, which made the folder name iCalcreator-2.18. It was a "Doh!" moment when I figured it out, but it took a while for me to see it. An obvious solution is something in the documentation to be a foot stomper for this phenomenon. The naming convention used in the zip file and consequently the folder it created is good as far as I can see. But, although it prevents accidental overwriting of code, the slightly off folder name is easy to overlook.

;'{P~~~

Comments

coredumperror’s picture

Could you explain the exact problem that you had, so I can properly phrase the documentation fix? I'm not sure precisely what's wrong.

Clearbrook’s picture

Maybe I should just make a patch to the readme file.

Normally, when I add a module or update it manually, I put the tarbar or zip file in the modules directory and expand it directly there. That works fine if it was designed for specifically for Drupal and the module folder is named correctly. Items like the iCalcreator-2.18.zip file are not specific to Drupal. If the folder name does not match exactly what the libraries module was sent to find, it won't find. My folder was named "iCalcreator-2.18" and libraries was looking for "iCalcreator" so it was not found.

Easy to do, hard to figure out. Worthy of at least a note in the readme file, IMHO...

;'{)

coredumperror’s picture

Actually, it already says the right thing.

Quoted from the README:

To install the iCalcreator library, you can download it from 
http://kigkonsult.se/downloads/index.php#iCalcreator and extract the zip file,
or get it from https://github.com/iCalcreator/iCalcreator.
Inside the zip file you'll find iCalcreator.class.php. Copy that file to a 
folder in your Drupal site named "sites/all/libraries/iCalcreator".
coredumperror’s picture

Status: Active » Closed (works as designed)
idcm’s picture

version 3.0
When I created the iCalcreator directory, I got the following warning:

Warning: fopen(/html/sites/all/libraries/iCalcreator/iCalcreator.class.php) [function.fopen]: failed to open stream: Permission denied in libraries_get_version() (line 756 of /html/sites/all/modules/libraries/libraries.module).
Warning: fgets() expects parameter 1 to be resource, boolean given in libraries_get_version() (line 757 of /html/sites/all/modules/libraries/libraries.module).
Warning: fclose() expects parameter 1 to be resource, boolean given in libraries_get_version() (line 764 of /html/sites/all/modules/libraries/libraries.module).

AND! the status screen show the library not found.

I changed the directory to all lower case and got rid of the warning but the library still isn't found.

Thoughts?

coredumperror’s picture

It looks like your webserver user doesn't have permissions to read the iCalcreator.class.php file. You'll need to make sure that Apache's user (on linux, it's usually "apache", on OSX it's usually "www", not sure about Windows) has permission to read the file and the folder it's inside.