Drupal doesn't recognize GeShi
eagereyes - November 14, 2008 - 02:33
| Project: | GeSHi Filter for syntax highlighting |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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?

#1
hmm 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?
#2
I 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.
chmod -R 755 geshiIm running on linux and when i copied the geshi library into the module directory linux didn't set the right permission.
Hope this helps..;)
#3
Of course, the permissions! Why didn't I see that? That solved it, thanks!
Perhaps this could be added to the geshi check in geshifilter?
#4
@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.#5
My 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.
#6
Automatically closed -- issue fixed for two weeks with no activity.