I am having difficulties getting the module enabled because it doesn't seem to find the superfish library, which I installed in an sites/all/libraries/superfish folder. I've manually removed the superfish module folder because since it wasn't enabled, Drupal wouldn't uninstall it. The libraries module is installed and enabled. I reinstalled superfish, and it installed with no error messages, but when I went to enable it, it said I needed to install the superfish library. I've spent many hours trying to get this working, all for naught. I have very little installed in terms of modules. Could anything in my menus section be interfering with the install? I'm just working off the cuff here. I have Fusion installed as my base theme, if that helps at all. Someone said it might have to do with permissions, but given that the module won't even enable I can't change permissions.

Suggestions?

David

Comments

mehrpadin’s picture

Hey David,

Did you receive my email?

jsscribe’s picture

same issue for me, running on a test site with few modules enabled.

dberkowitz’s picture

I did receive your email, and thank you. However, I still seem to be unable to resolve the problem.

mehrpadin’s picture

Ok, if possible please put them online and email me the URLs.

dberkowitz’s picture

Not even ready to put it online. I was trying to get the modules I'd like to use and the header/navigation laid out before moving to layout the remainder of the page.

DJake-2’s picture

i have this problem too. ,on Drupal 7.10 Ubuntu 11.10 OS

mehrpadin’s picture

Komosta Jake,

Can you put it online so I can make sure the Superfish library is uploaded in the right place, e.g. http://example.com/sites/all/libraries/superfish/superfish.js brings us the main JavaScript file and so on.

DJake-2’s picture

i dont have domain server right now =,=.. ,but asking if "I install superfish library at right place" Ans: Yes, /var/www/drupal/sites/all/libraries/superfish/superfish.js
/var/www/drupal/sites/all/libraries/superfish/jquery.bgiframe.min.js
/var/www/drupal/sites/all/libraries/superfish/jquery.hoverIntent.minified.js
/var/www/drupal/sites/all/libraries/superfish/sftouchscreen.js
/var/www/drupal/sites/all/libraries/superfish/supersubs.js
/var/www/drupal/sites/all/libraries/superfish/supposition.js

DJake-2’s picture

Warning: opendir(.//sites/all/libraries/superfish): failed to open dir: Permission denied in file_scan_directory() (line 2026 of /var/www/drupal/includes/file.inc).

i just received this kind of error ==

mehrpadin’s picture

Ok, then can you access these files from your browser or you receive a "403 Forbidden" error? If you do it's a permission issue, which can be solved easily: http://ocdevel.com/blog/proper-folder-permissions-drupal-ubuntu note that this can be for any OS, including Ubuntu.

DJake-2’s picture

Thanks a lot :) Mehrpadin, its all about the permission sadly i'm new @ ubuntu OS .

manjeet sarhaya’s picture

I am having difficulties getting the module enabled because it doesn't seem to find the superfish library, which I installed in an sites/all/libraries/superfish folder. I've manually removed the superfish module folder because since it wasn't enabled, Drupal wouldn't uninstall it. The libraries module is installed and enabled. I reinstalled superfish, and it installed with no error messages, but when I went to enable it, it said I needed to install the superfish library. I've spent many hours trying to get this working, all for naught. I have very little installed in terms of modules. Could anything in my menus section be interfering with the install? I'm just working off the cuff here. I have Fusion installed as my base theme, if that helps at all. Someone said it might have to do with permissions, but given that the module won't even enable I can't change permissions.
i need help for this issue...............
how to create libraries in drupal7?
when install a modules need to install in libraries but in drupal7 has no libraries folder we have install modules in /sites/all/modules but report errors is you need to create libraries/libraries are not found
like jwplayer

DJake-2’s picture

as Mehrapdin post . ,the problem is solved

audster’s picture

I'm stumped too and I've been dorking around with the permissions for over an hour now...
I have installed all the required libraries, the jquery update and superfish modules with no errors or problems.
but when I go to the superfish page (admin>siteconfiguration>superfish) no error appears until I try to change the number of menus to "2" (from the default "4")
I'm getting this:

File not found:

/sites/all/libraries/superfish/jquery.hoverIntent.minified.js sites/all/libraries/superfish/jquery.bgiframe.min.js sites/all/libraries/superfish/superfish.js sites/all/libraries/superfish/supersubs.js sites/all/libraries/superfish/supposition.js sites/all/libraries/superfish/sftouchscreen.js

each of these files is set to -rw-r--r--
libraries and superfish folders are set to drwxr-xr-x

could you provide a more explicit answer - I didn't find that permissions post particularly helpful...

I'm stumped. The menus seem to be working but I keep getting this error when I want to change the number of menus...

any ideas?

DJake-2’s picture

try this permission as Mehrapdin post "http://ocdevel.com/blog/proper-folder-permissions-drupal-ubuntu" and it works!

ovunc’s picture

Version: 7.x-1.8 » 6.x-1.8
Assigned: Unassigned » ovunc

so is there any solution offer for this issue? i have same and it drives me crazy. i have all files in library but whenever i try to change number of menus form 4 to 8 same error appears. is there any alternate instead of superfish?

mehrpadin’s picture

Merheba Kenan,

Please read #7 and #10 :)

ovunc’s picture

thanks for ultimate quick respond :) i've read and i've tried to do something but all these things seemed for linux. okay, its been said for any os there.. then i've changed permissions on host but that message was not so clear.. i am very beginner for drupal or any web, html or php platform. only the reason that i've downloaded superfish it was written no more headache no more code writing etc. now i see its not %100 true :))

p.s. i've uninstalled and deleted superfish. i've deleted default setting files. i've deleted mysql database. then i've put everything back. i've activated library and jquery. then i've uploaded superfish. then activated then it worked!! all my seettings got back to default but superfish was important and all others don't matter.

kueblert’s picture

i have the same problem and tryed realy everything...this sucks...
got this message:

Datei nicht gefunden:

sites/all/libraries/superfish/jquery.hoverIntent.minified.js sites/all/libraries/superfish/jquery.bgiframe.min.js sites/all/libraries/superfish/superfish.js sites/all/libraries/superfish/supersubs.js sites/all/libraries/superfish/supposition.js sites/all/libraries/superfish/sftouchscreen.js

but this worked fine:
cge2.tkuebler.de/sites/all/libraries/superfish/jquery.hoverIntent.minified.js

so as it say in # 10
but the permission issue, i dindnt get it easily...i dont get it what i have to do?
my folder cge2/sites/all/libraries/superfish have the permission 755 so what else can i do???

Please help

mehrpadin’s picture

Servus,

It looks like you've fixed it?

Steel Rat’s picture

I'm getting this problem too, and don't understand what the link in #10 is telling me to do.

I also don't see a v1.1 of the libraries, only 1.2 beta.

wordscribe43’s picture

I'm also having this problem... followed all directions but I get a message that the Superfish libraries aren't installed (when clearly they are). Hoping for some clues and guidance. Like Steel Rat above, not really getting what the link in #10 is all about.

Steel Rat’s picture

I found out what the problem was for me. Apart from not reading thoroughly, I didn't place the libraries in the right place.

You need to create a "libraries" folder under sites>all. Same place as you'd put your contrib themes and modules. So, under sites>all, you'd have a libraries folder, a modules folder, and a themes folder. Place the Superfish libraries in the Libraries folder.

Sandor-2’s picture

Same issue for me (Drupal 6.25). I solve it disabling the CKEditor for the /admin/settings/superfish page, and put the urls ONE PER LINE, not all in the same text line.

With this changes I resolve the problem ;)

jaredray’s picture

Thanks Sandor! That worked for me as well (Drupal 6)

stallberg’s picture

Version: 6.x-1.8 » 7.x-1.8

Message when trying to update drupal after enabling the superfish modul

"Superfish Module not recognizing Superfish Library
Please download the Superfish library from http://drupal.org/project/superfish."

It is a local installation on Windows:
Webserver Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

I have the files in the following folders:
C:\websites\bflk_7\sites\all\modules\superfish - Version 2, June 1991
C:\websites\bflk_7\sites\all\modules\libraries\ - 7.x-1.x
C:\websites\bflk_7\sites\all\modules\libraries\superfish\ - The jQuery Superfish plug-in version 1.4.8 (I extracted the files from mehrpadin-Superfish-for-Drupal-1.0-4-g1571b1d.zip - I renamed the folder to "superfish")

I don't know what to do with the permissions - are they any diffrent from the permissions in the "C:\websites\bflk_7\sites\all\modules" folder?

I would be glad for suggestions about the cause of that message and how to solve it.

digitalwisdom’s picture

Version: 7.x-1.8 » 6.x-1.7

Hi Sandor,

Could you explain exactly how to do this? Sorry im not very knowledgeable in this area :)
When i visit admin/settings/superfish It says 'CKEditor: the ID for excluding or including this element is boldy:admin/settings/superfish.edit-superfish-slp.'

Then i went to admin/settings/ckeditor and edited the global settings and pasted boldy:admin/settings/superfish.edit-superfish-slp in the exclude box however the CK editor is still available.. and i am still getting the File not found error.

Any ideas? I noticed most other listings have an astrix (*).. am i supossed to add that somewhere?

So frustrating!!

Thanks!

david137’s picture

Basically, copy the Superfish directory to the sites/all/libraries folder and this will resolve the problem (Drupal 7.x).

vallab444’s picture

Thanks, Sandor. I followed your clues and could get Superfish working.

I re-installed Superfish module after disabling CKEditor. Following this, I could save the Superfish block configuration successfully. Enabling CKEditor afterwards didn't seem to hurt Superfish.

Not too sure what actually had gone wrong. I did my original install in these steps:

1. copied Superfish library files into sites/all/libraries/superfish
2. installed libraries and Superfish modules in one go

cheers
-vallab

mehrpadin’s picture

Category: bug » support

So not a bug, I presume.

quano1’s picture

Version: 6.x-1.7 » 7.x-1.8
Assigned: ovunc » quano1

oh, it's seem my bug is very similar this.
installation, superfish admin setting, display, etc.. no error display.
windowns-7 + wampServer + drupal-7.16 + superfish-1.8 + libraries-2x
superfish lib is in

\sites\all\modules\libraries


but when i debug : superfish.module

function superfish_init() {
  if (module_exists('libraries')) {
    
    $info_lib = libraries_get_path('superfish');//->return false, maybe it's meen no path to superfish???
    
    $sf_library = variable_get('superfish_slp',
      libraries_get_path('superfish') . "/jquery.hoverIntent.minified.js\n" .
      libraries_get_path('superfish') . "/jquery.bgiframe.min.js\n" .
      libraries_get_path('superfish') . "/superfish.js\n" .
      libraries_get_path('superfish') . "/supersubs.js\n" .
      libraries_get_path('superfish') . "/supposition.js\n" .
      libraries_get_path('superfish') . "/sftouchscreen.js");
    $sf_library = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", trim($sf_library));
    $sf_library = explode("\n", $sf_library);
    foreach ($sf_library as $s) {
      drupal_add_js($s, 'file');
    }
    drupal_add_css(libraries_get_path('superfish') . '/css/superfish.css', 'file');
    drupal_add_css(libraries_get_path('superfish') . '/css/superfish-vertical.css', 'file');
    drupal_add_css(libraries_get_path('superfish') . '/css/superfish-navbar.css', 'file');
  }
}

sorry all, i wasted a lot of times to fix this bug.... module libraries is in

sites/all/modules/

but the real libraries must stay at

sites/all/

and after u install libraries module,

u have to create a folder "libraries" in sites/all

then store all module's lib there.
mehrpadin thank you so much!

jcallanan’s picture

When downloaded, the libraries folder is not names superfish but instead is named something longer. I just renamed the folder to superfish (within sites/all/libraries) and it worked.

lauraleigh’s picture

Issue tags: +superfish

Rename the module with lowercase letters in the library form Superfish to superfish in sites/all/libraries.

pjmcghee’s picture

Just to throw my experience in, when i extracted the superfish library files to the sites/all/libraries folder, the folder name from the archive was xxxxSuperfishxxx...

I renamed it to Superfish and still had an issue. then, remembering that the KISS (keep it simple stupid) rule always needs to be accounted for, i remembered that Ubuntu has issues with capitalization. I changed the folder name from Superfish to superfish and it worked!

thanks lauraleigh!

ieltsblogger’s picture

very new to Drupal, hence my dorkiness. I am experiencing the superfish libraries issue as described above.

where exactly am I looking for or creating these folders?

If my site is www.dork.com , would I be looking in www.dork.com/sites/all/libraries ? because that just gives me an error 403 permissions message.

Am I supposed to create the folder somewhere / or specify a path ?

Thanks in advance

ieltsblogger

ieltsblogger’s picture

or is there an alternative drop-down menu module?

I am using adaptive / Pixture Reloaded 7.x-3.0

fehin’s picture

The capitalization of the first letter of the superfish library was my issue. Thanks pjmcghee for pointing it out.

doubleedesign’s picture

Disabling CKEditor and then re-enabling it when I had Superfish set up fixed it for me too.

ieltsblogger, I have found the Nice Menus module to be good too.

grahamvalue’s picture

In my case, I was getting:
File not found: sites/all/libraries/superfish/jquery.hoverIntent.minified.js

Turns out it was because of the capital 'I' in intent.
Changing it to intent in the superfish config seems to have fixed it.

Or I guess you could rename the file.

fchandler’s picture

Changing uppercase "S" to lowercase on sites/all/libraries/superfish worked for me. D7.21, superfish-7.x-1.8.

Diane Bryan’s picture

ieltsblogger -- In case you're still looking for the answer... every Drupal installation has a sites/all/ directory. If you have access to your site hosting via a file manager in the control panel, you should see that directory.

You may have to change the permissions on that sites/all/ directory. They call that a chmod. You need to make it readable and writable (755).. at least temporarily.

Once you can write to that directory, add a "libraries" subdirectory, if such does not exist yet. Make sure that is also writable (755).

Once it exists, you can change the permissions on the sites/all directory back to whatever it was before (maybe 555?), and you should still be able to add libraries to the libraries directory. That is where you'll upload the Superfish library (not the module), which has a longer name when you first download and unzip it. Rename that directory to just "superfish", all lowercase.

Your final structure should be:

sites/all/libraries/superfish/[all the files in the superfish library zip that you downloaded]

Good luck!
d

davidneedham’s picture

Really, the reason why we've all ended up here is due to documentation. Here's the installation instructions from README.txt:

Installation instructions
-------------------------
1. Download and extract the Superfish library into the libraries directory (usually
   "sites/all/libraries").
   Link: https://github.com/mehrpadin/Superfish-for-Drupal/zipball/1.x

2. Download and extract the Superfish module into the modules directory (usually
   "sites/all/modules").
   Link: http://drupal.org/project/superfish
   Drush users can use the command "drush superfish-plugin".

3. Go to "Administer" -> "Modules" and enable the module.

From my perspective, here are the following gotchas that need to be described in this issue:

  • Once downloaded, the Superfish library should be within a folder titled 'superfish' (lowercase).
  • Some people may need to adjust their permissions on this folder.
  • Within the Superfish configuration, you must paste each file on a separate line of the textarea. (This was my problem.) For example, visit admin/config/user-interface/superfish and copy/paste the following, which should be correct most of the time:
sites/all/libraries/superfish/superfish.js
sites/all/libraries/superfish/jquery.bgiframe.min.js
sites/all/libraries/superfish/jquery.hoverIntent.minified.js
sites/all/libraries/superfish/sftouchscreen.js
sites/all/libraries/superfish/supersubs.js
sites/all/libraries/superfish/supposition.js
sites/all/libraries/superfish/sfsmallscreen.js

Note that is is NOT good enough to give the path to the superfish library directory. You must list each js file it's looking for. (This is lame, and could probably be it's own feature request.)

Are there other issues that could be resolved with this documentation?

davidneedham’s picture

Version: 7.x-1.8 » 7.x-1.x-dev
Component: Miscellaneous » Documentation
Assigned: quano1 » Unassigned
Category: support » feature

@ieltsblogger: I realize this is several months after you first asked the question, but here goes....

The place you should put the superfish library is on the server. You'll need to FTP to the server, find your drupal site, and upload it to (drupal)/sites/all/libraries/superfish. It's important that it's lower case, and you should make sure each of the .js files into that folder.

Next, open your website and go to admin/config/user-interface/superfish and copy/paste my second code snippet from comment #42 above.

garamani’s picture

Thanks davidneedham
your advice helped me a lot.
I don't know why they've missed this critical step in their instructions!
I was typing the full path c:\...\sites\all\libraries\superfish/... which is wrong.
The addresses just need to follow this pattern: sites\all\libraries\superfish\

ykee’s picture

@davidneedham
i paste ur snippet

sites/all/libraries/superfish/superfish.js
sites/all/libraries/superfish/jquery.bgiframe.min.js
sites/all/libraries/superfish/jquery.hoverIntent.minified.js
sites/all/libraries/superfish/sftouchscreen.js
sites/all/libraries/superfish/supersubs.js
sites/all/libraries/superfish/supposition.js
sites/all/libraries/superfish/sfsmallscreen.js

Still got error message

Files not found:
sites/all/libraries/superfish/superfish.js
sites/all/libraries/superfish/jquery.bgiframe.min.js
sites/all/libraries/superfish/jquery.hoverIntent.minified.js
sites/all/libraries/superfish/sftouchscreen.js
sites/all/libraries/superfish/supersubs.js
sites/all/libraries/superfish/supposition.js
sites/all/libraries/superfish/sfsmallscreen.js

local files tree

chopper@fork4:/var/www/drupal/sites/all/libraries/superfish$ ls -al
总用量 72
drwx------ 5 chopper chopper  4096  9月 23 15:24 .
drwxrwxr-x 3 chopper chopper  4096  9月 23 15:27 ..
drwx------ 2 chopper chopper  4096  9月 23 15:24 css
drwx------ 2 chopper chopper  4096  9月 23 15:24 images
-rw-rw-r-- 1 chopper chopper  1193  6月 13 15:50 jquery.bgiframe.min.js
-rw-rw-r-- 1 chopper chopper  1464  6月 13 15:50 jquery.hoverIntent.minified.js
-rw-rw-r-- 1 chopper chopper  3175  6月 13 15:50 README
-rw-rw-r-- 1 chopper chopper  2834  6月 13 15:50 sfautomaticwidth.js
-rw-rw-r-- 1 chopper chopper 14560  6月 13 15:50 sfsmallscreen.js
-rw-rw-r-- 1 chopper chopper  3885  6月 13 15:50 sftouchscreen.js
drwx------ 4 chopper chopper  4096  9月 23 15:24 style
-rw-rw-r-- 1 chopper chopper  4095  6月 13 15:50 superfish.js
-rw-rw-r-- 1 chopper chopper  3770  6月 13 15:50 supersubs.js
-rw-rw-r-- 1 chopper chopper  3217  6月 13 15:50 supposition.js
-rw-rw-r-- 1 chopper chopper     9  6月 13 15:50 VERSION
ykee’s picture

and got js error notification of "TypeError: Object #

has no method 'superfish'"
go4unkwn’s picture

Issue summary: View changes

if you have in mind to use ckeditor and superfish you have to adapt the visability settings in the global profile of ckeditor. otherwise you get an error if you try to modify the number of blocks of superfish.

a) i use the module ckeditor-6.x-1.14 and ckeditor version 3.6.6.1.
b) i installed the superfisch module and all its requierments.
c) i installed superfish as it is explained on the modules page (where you can download the superfish module).
d) i adapted the visability settings in the global profile of ckeditor: i added "admin/settings/superfish*" in "Fields to exclude/include:" and set "Use inclusion or exclusion mode:" to "exclude".

kind regards

Milkrow’s picture

Sandor's solution regarding the disabling of CKEditor seemed to be what I was looking for to solve this. I noticed that in the "source" of the text field which shows the paths...each line had some paragraph tags in there. I removed those and it worked fine. I was then able to save the configuration with the desired number of blocks. This was not a path nor a permissions issue. Look at the source for the text shown in that field and verify that it contains no other code or spaces.

jimmyhomesick’s picture

Not trying to be sophomoric here, but I'm definitely a Drupal noob. But I had the same issue and spent over an hour angrily working on this. Eventually i realized that when i renamed the Superfish Library directory (which currently downloads as 'Superfish-for-Drupal-1.x') to establish the example.com/sites/all/libraries/superfish/superfish.js path (creating the 'libraries' directory) I had renamed the library directory 'Superfish.' When I finally noticed this and changed it to the lowercase 'superfish' I could finally both connect to the library and access the menu styles which weren't previously appearing in my Superfish block settings.

To summarize: double check that your new sites/all/libraries directory exists and is named properly (as you do have to create this-or at least I did) and make sure you change the Superfish library name from 'Superfish-for-Drupal-1.x' to 'superfish.' Worked for me anyway.

mrahman252003’s picture

Following command helped me for Linux localhost Drupal site.
sudo chmod -R 777 /var/www/drupal/sites/all (later the permissions can be changed back)

jeefers’s picture

I had to set permission on the libraries/superfish folder. I set them to 777 and then I changed the permissions on the sub folders for images, css, and styles to 755.
That worked for me .
I was getting errors until I changed the permissions on the sub folders as well.

Unionhill’s picture

May be a bit silly....but I capitalized my superfish folder. Renamed with lower case...the library gets recognized

Patricia_W’s picture

I just discovered this error. My superfish library was correctly named and if I used the URL (copied from the error message) it was found. After some research I got rid of the error by changing the superfish settings "Path to Superfish library" from sites/all/libraries/superfish/ to sites/default/libraries/superfish/ and resolved it. I had moved all libraries, modules and themes to the default folder not realizing that it would cause problems. The strange thing is that Superfish was working properly so I do not understand why I was getting the error messages.

pinueve’s picture

ivnish’s picture

Status: Active » Closed (works as designed)
Issue tags: -superfish