I was following this tutorial (http://drupal.tschannen.net/wiki/set_up_a_wiki_with_drupal_5), and after I installed PEAR Wiki Filter I got the message "Fatal error: Class 'Text_Wiki' not found in /usr/local/drupal/modules/pearwiki_filter/pearwiki_filter.module on line 171"

So then I reviewed the recent support request with the same problem and installed PEAR Text_Wiki. However this lead to a new problem "Fatal error: Undefined class name 'pear' in /usr/share/pear/Text/Wiki.php on line 412". I wasnt sure what to do next so I tried installing http://pear.php.net/package/PEAR which didnt seem to help. I also tried googleing "Fatal error: Undefined class name 'pear' in /usr/share/pear/Text/Wiki.php on line" and found a lot of discussion boards, but none of the advice that worked for other people helped within my context.

Any Ideas?

Thanks,
Dave

Comments

djh312’s picture

Hmm... Im not sure if this was the right thing to do, but I added require_once 'Text/Wiki/Parse.php'; to wiki.php and it worked. Any idea why it was messed up to begin with and if this is going to cause me more problems down the road?

djh312’s picture

That definitely does not fix the problem. Instead of an error message, I get a white screen. Still at a loss for what to do.

djh312’s picture

Status: Active » Closed (fixed)
hcassa’s picture

Assigned: Unassigned » hcassa
Status: Closed (fixed) » Postponed (maintainer needs more info)

I have the same problem :

Fatal error: Undefined class name 'pear' in /home/hcassa/domains/hcassa.nl/public_html/comm/sites/all/modules/pearwiki_filter/Text/Wiki.php on line 412

So please somebody , give some help :-(

hcassa’s picture

Status: Postponed (maintainer needs more info) » Active

Why close the subject when I don't know what sort of info I need to give , if the Drupal organisation expects her users to be happy then at least give some feedback please ?

rötzi’s picture

What PEAR packages did you install? Only the Text_Wiki or also for example the Text_Wiki_Mediawiki package?

See also here: http://drupal.org/node/130351#comment-224158

hcassa’s picture

Well never mind , I have decided to reinstall Drupal one more time without Wiki , if this does'nt work I'll revert to another CMS system

SimonVlc’s picture

I had the same problem. To solve it, I need to uninstall the pear Text_Wiki package from the pear package list.

pear uninstall Text_Wiki

Try it. Kind regards, Simon.

mennonot’s picture

The patch described in comment #5 the thread referenced rötzi above solved my fatal error on line 421 as described in the original post. The direct link to the comment is here:

http://drupal.org/node/130351#comment-224158

mrded’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

5.x version is no longer supported.