Project:GeSHi Filter for syntax highlighting
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#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 geshi

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..;)

#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

Status:active» fixed

@eagereyes: what where your permissions?

@gains: chmod -R 755 geshi does not seem very safe: you're making all files under geshi executable for everybody.
I think you just need chmod  755 for directories and chmod 644 for 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

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

#7

I had to make the "geshi" directory owned by the webserver user (on Debian/Ubuntu: www-data). From within /var/www/intranet/sites/all/libraries:

$ sudo chown -R www-data:www-data geshi

I don't know if this is safe. At least other libraries can be owned by my normal system user, for whatever reason:

drwx------ 5 www-data www-data 4,0K 2011-07-13 15:58 geshi
drwxr-xr-x 6 asb      asb      4,0K 2009-04-16 23:13 jquery.ui
nobody click here