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

soxofaan - November 14, 2008 - 08:41

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

gains - November 16, 2008 - 09:58

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

eagereyes - November 16, 2008 - 15:51

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

soxofaan - November 16, 2008 - 23:28
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

eagereyes - November 16, 2008 - 23:52

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

System Message - December 1, 2008 - 00:12
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.