I set up a a wiki as explained at http://drupal.tschannen.net/wiki/set_up_a_wiki_with_drupal_5 but when I try to post a wiki page with the pear wiki filter the screen goes completely blank and so does the home page. The admin pages continue to work. When I shut off the pear wiki filter everything goes back to normal.

I installed the Text_Wiki-1.1.0 by coping the folders "doc" and "text" to /httpdocs/modules/pearwiki_filter. The "Path of PEAR packages" seems to pick it up but maybe I did not install it correctly. The pear instructions were very confusing. Is there something else I need to do?

Comments

Eliyahu’s picture

I really need some help on this. Does anyone know how to solve this problem?

djh312’s picture

Im not sure how to fix it, but it sounds like I have the same problem you do.

tlevine’s picture

I have the same problem too. I have a feeling that it's related to this particular version as I haven't seen many earlier Drupal-related posts about this problem. I'm going to try installing a different version.

rötzi’s picture

Have you installed only Text_Wiki or also another PEAR package like Text_Wiki_Mediawiki or Text_Wiki_Doku? (see this for a complete listing: http://pear.php.net/packages.php?catpid=36&catname=Text)

Can you give me the pearwiki_filter path setting and the directory structure you have?

My settings are for the path:

..drupal/sites/default/modules/pearwiki_filter/

And the directory structure looks as follows:

...drupal/sites/default/modules/pearwiki_filter
...drupal/sites/default/modules/pearwiki_filter/Text
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki.php
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Mediawiki.php (and some other files. this comes from the Text_Wiki_Mediawiki package)
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Parse/Default
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Parse/Mediawiki (this comes from the Text_Wiki_Mediawiki package)
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Render/Default
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Render/Mediawiki (this comes from the Text_Wiki_Mediawiki package)

michob’s picture

Status: Active » Needs review

First, make sure that you have the appropriate subpackage (e.g., "Text_Wiki_Mediawiki") in addition to the base Text_Wiki package. After that, the following worked for me:

Modify modules/pearwiki_filter/pearwiki_filter.module starting at line 467:

WAS:

  if (!class_exists('Text_Wiki')) {
    @include_once 'Text/Wiki.php';
  }

MODIFY TO:

  if (!class_exists('Text_Wiki')) {
    @include_once 'PEAR.php';
    @include_once 'Text/Wiki.php';
  }

Sorry, I don't have time right at the moment to post a proper patch file.. I can do it later if needed.

mennonot’s picture

+1 for the patch in Comment #5 from Michob. It fixed the Fatal Error 421 I was getting when turning on an input format using the Pear filter. This error is described briefly in this post:

http://drupal.org/node/130284

JC0027’s picture

Hi. I'm very new to Drupal and having the same problem with the pear_wiki filter, where the site goes blank after publishing a wiki or saving a configuration change.

I followed the installation instructions as best I could (about 10 times so far), including the changes to modules/pearwiki_filter/pearwiki_filter.module, but keep coming up with the same result.

There is a part of the installation that I'm not sure about. Where exactly do you put the "Text_Wiki_Mediawiki" package in the pearwiki_filter directory? I've copied the Mediawiki files into the /Text/Wiki folders and the cvs command fully populates all the subfolders, so I can't see where I'm going wrong.

Any help would be greatly appreciated.

wayland76’s picture

Some tips:

1. When checking out of CVS, use this command instead

cvs -d :pserver:cvsread@cvs.php.net:/repository export -r HEAD -d Text pear/Text_Wiki/Text

It doesn't fix a problem, but it makes things much neater.

Assuming that your folder that you're putting stuff in is called "/home/htdocs", follow this process:
1. Make a directory called "/home/htdocs/pear"
2. Inside that directory, run the CVS checkout command
3. Make the change in comment #5 above
4. In the .htaccess in your drupal folder, add this line:

php_value "include_path" ".:/home/htdocs/pear:[old include_path]"

You'll have to figure out what your old include path is. You can probably do this with phpinfo()

HTH,

scedwar’s picture

The link to the site is still down, but the text can be read through the internet archive at:
http://web.archive.org/web/20070820125302/http://drupal.tschannen.net/wi...

chirale’s picture

Remember that the same error (blank page) is given when on admin/settings/filters/FILTER_NUMBER/configure the pearwiki path is not set properly. In that cases fixing the path solve the issue, and if you've played with directory structure (i.e. moving to another server) you have to control that. There's a way to automate path detection?

mrded’s picture

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

5.x version is no longer supported.