I followed the module installation instructions for this module and copied the Text folder for the mediawiki filter (from the PEAR site) into the pearwiki_filter directory, and I get the following errors ...
first, while trying to preview a page, instead of the page, I get ...
Fatal error: Class 'Text_Wiki' not found in /usr/local/drupal/modules/pearwiki_filter/pearwiki_filter.module on line 171
I then use the back button on the browser and get the following above the Submit Page title input block
* warning: include_once(Text/Wiki.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/drupal/modules/pearwiki_filter/pearwiki_filter.module on line 167.
* warning: include_once() [function.include]: Failed opening 'Text/Wiki.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/usr/local/drupal/modules/pearwiki_filter/Text_Wiki_Mediawiki') in /usr/local/drupal/modules/pearwiki_filter/pearwiki_filter.module on line 167.
I tried changing the folder for the Mediawiki files (relative to the pearwiki_filter module folder, with no luck ...
Any ideas ?
Comments
Comment #1
rötzi commentedSince I'm including the file 'Text/Wiki.php', the directory where the PEAR stuff is has to be in a directory called 'Text' and the setting of the filter in Drupal has to point to the base directory of this. When you go to the filter settings, does the list of available filters show up?
Can you give me the pear directory option you set in the filter and the directory structure you have?
My setup is (I stripped the directory where drupal is in):
Path of PEAR packages in Drupal filter settings:
...drupal/sites/default/modules/pearwiki_filter/
Directory structure:
...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)
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Parse/ ... lots of files
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Render/ ... lots of files
...drupal/sites/default/modules/pearwiki_filter/Text/Wiki/Rule/ ... lots of files
Comment #2
Sean M commentedOne thing I noticed is that the files I have don't have a wiki.php. The mediawiki archive from pear.php.net did not have the file. I tried renaming the mediawiki.php file to wiki.php but with no success. Enclosed is the directory structure ...
Thanks for your help in this ...
Comment #3
rötzi commentedThe Wiki.php file is part of the Text_Wiki package. The Mediawiki.php is part of the Text_Wiki_Mediawiki package. You need both packages since the Mediawiki package depends on the Text_Wiki package.
Since you want to use the Mediawiki parser, I recommend using the CVS version of the Mediawiki package. There have been bug fixes which are not yet incorporated into a release. Use the CVS command from the readme.txt to obtain the files:
By running this command, you also get the CVS version of the Text_Wiki package. So you then have all the files you need from PEAR (and some more which you don't need, but it doesn't really matter).
Comment #4
rötzi commentedIf you still have problems, please reopen the issue.
Comment #5
wvlgen commentedHow can I run the "cvs -d ... etc" on a Windows machine?
Comment #6
rötzi commentedIf you can install a cvs client for windows (I don't know any because I work on linux), then you can probably just open a windows commandline and enter the given command. Otherwise you should check the manual of the cvs client you have (or use a linux machine for this and copy the folders over ;)
By the way, posting on a closed issue is not a good idea since I don't see it in my issue queue. Either create a new issue or reopen the issue you post to.