Closed (works as designed)
Project:
PEAR Wiki Filter
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Jan 2008 at 19:25 UTC
Updated:
16 Feb 2008 at 13:25 UTC
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
Comment #1
cwgordon7 commentedhttp://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?
Comment #2
max6166 commentedI am also receiving this error but with Drupal 5.7, PHP 5.2.5, and pearwiki_filter-5.x-1.x-dev.
Comment #3
cwgordon7 commentedIf 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.
Comment #4
nmashruwala commentedI'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) {
Comment #5
danbuntu commentedI'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.
Comment #6
danbuntu commentedI'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.
Comment #7
cwgordon7 commentedOk, 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.
Comment #8
danbuntu commentedOk 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