Closed (fixed)
Project:
Coolfilter
Version:
master
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
21 Jul 2006 at 18:32 UTC
Updated:
14 Feb 2007 at 02:30 UTC
I used the package from the author's site, which includes the required PEAR packages.
This code:
[coolcode lang="php"]
...
[/coolcode]Generates the following error:
Fatal error: Call to undefined method PEAR_Error::highlight() in /homepages/12/d95635462/htdocs/ajh/drupal/modules/coolfilter/coolcode.php on line 226
Omitting a lang="" attribute WORKS FINE but obviously does not highlight the code as PHP syntax.
Comments
Comment #1
straight_up commentedIt appears that this line:
causes $hl to be set to
PEAR_Error. In other words, somethings is wrong with either the settings passed to factory(), or within Text/Highligher.php.Comment #2
straight_up commentedThis can happen when you change any of the following lines in coolcode.php:
This is because Text/Hightlight.php also needs to include files, so include_path needs set.
This can cause problems:
So can this:
Comment #3
lllkkk commentedI have tesed it on two different servers (one clean Install drupal & coolfilter), all of them have No Problem.
Please read doc on http://www.kylinx.net/node/118 carefully, it module needs an INSTALLATION, before you use it.
Comment #4
lllkkk commentedcode like this is right.
Comment #5
lllkkk commented