I get a warning on all of my pages:

warning: Missing argument 2 for pearwiki_filter_help() in /opt/drupal/5.5/sites/all/modules/pearwiki_filter/pearwiki_filter.module on line 13.

The second argument is $arg, which is not used at all as far as I can tell. Copying the function and removing the second tag generates a function already defined error.

The mediawiki input filter works fine.

Any suggestions?

Comments

cwgordon7’s picture

Assigned: Unassigned » cwgordon7
Status: Active » Postponed (maintainer needs more info)

http://api.drupal.org/api/function/hook_help; should be working, works for me on my d6 version. What version of d6 are you using? What php version are you using?

max6166’s picture

I am also receiving this error but with Drupal 5.7, PHP 5.2.5, and pearwiki_filter-5.x-1.x-dev.

cwgordon7’s picture

If you downloaded pearwiki_filter 5.x-1.x-dev during a certain period, you would have this error. It is fixed in the regenerated release. See http://drupal.org/node/208039. However, I am baffled at why this would happen on Drupal 6.

nmashruwala’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I'm actually using Drupal 5.5, PHP 5.2.3, wikitools 1.1. While writing this post, I realized that I downloaded (and modified) the wrong version of pearwiki_filter.

I actually "fixed" the issue by modifying a copy of the original function. This is a total hack, and I expect that I'll need to re-modify the file to work with Drupal 6.

// copied from above without $arg to avoid error
function pearwiki_filter_help($path) {

danbuntu’s picture

I've just dowmloaded and installed latest dev release and i'm getting a similar error;

warning: Missing argument 2 for pearwiki_filter_help() in /home/group/kent/public_html/klug2/modules/pearwiki_filter/pearwiki_filter.module on line 13.

danbuntu’s picture

I've just downloaded and installed latest dev release and i'm getting a similar error;

warning: Missing argument 2 for pearwiki_filter_help() in /home/group/kent/public_html/klug2/modules/pearwiki_filter/pearwiki_filter.module on line 13.

cwgordon7’s picture

Ok, two things:

One, you're installing your modules in the wrong place (the /modules directory). They should be in the /sites/all/modules directory. However, this is not the problem. The problem is that you've tried to install a Drupal 6 module on a Drupal 5 install. This will NOT WORK. Use the 5.x versions for 5.x core.

danbuntu’s picture

Ok i have moved the module to the correct location.
However the version I downloaded was 5.x-1.x-dev which I believe is should be the correct version for Drupal 5.

However I have noted that pearwiki_filter.info shows;

description = "Filter which uses Text/Wiki package of PEAR for formatting"
core = "6.x"
; Information added by drupal.org packaging script on 2008-01-01
version = "5.x-1.x-dev"
project = "pearwiki_filter"

Is that fact that it shows core = 6.x an issue and if this is the wrong module could you please point me to the correct one