I just installed the module and GeShi, but I keep getting the message "GeSHi library error: Could not find a known version of the GeSHi library at sites/all/modules/geshifilter/geshi." The geshi.php file exists in that directory, I checked the path several times. I also tried using an absolute path, but that didn't help, either. I even wrote a test script that does an is_file() on the geshi.php file the way geshifilter.inc does, and it works there. I can also run geshi.php from the command line, so it's not that it's not loading correctly.
Any idea what could be the problem?
Comments
Comment #1
soxofaan commentedhmm strange,
I have no idea what could be wrong. Just some random questions:
on what platform is the webserver (linux/mac/win)?
some case sensitivity problem maybe?
have you tried to install GeSHi lib at another path than the default?
does "./sites/all/modules/geshifilter/geshi" work?
Comment #2
ivan zugec commentedI had the same problem. I was upgrading my site from d5 to d6, and fixed it by setting the right permission on the geshi folder.
Im running on linux and when i copied the geshi library into the module directory linux didn't set the right permission.
Hope this helps..;)
Comment #3
eagereyes commentedOf course, the permissions! Why didn't I see that? That solved it, thanks!
Perhaps this could be added to the geshi check in geshifilter?
Comment #4
soxofaan commented@eagereyes: what where your permissions?
@gains:
chmod -R 755 geshidoes not seem very safe: you're making all files under geshi executable for everybody.I think you just need
chmod 755for directories andchmod 644for files.Comment #5
eagereyes commentedMy permissions were 700. I have never needed to change permissions when installing a Drupal module, so I didn't even think this could be a problem.
Comment #7
asb commentedI had to make the "geshi" directory owned by the webserver user (on Debian/Ubuntu: www-data). From within
/var/www/intranet/sites/all/libraries:I don't know if this is safe. At least other libraries can be owned by my normal system user, for whatever reason: