Download & Extend

Error reported when enabling module

Project:DynoSearcho
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I am using Drupal 6.12

I downloaded and installed DynoSearcho

When I enabled it in the modules page I get the error below reported

warning: Missing argument 1 for dynosearcho_menu() in /var/www/sites/all/modules/dynosearcho/dynosearcho.module on line 57.

Comments

#1

I installed the 6.x-2.beta version and there was no error enabling the module.

#2

Status:active» postponed (maintainer needs more info)

Are you still having this problem?

Exactly what version of the module are you using?

-mike

#3

This is because the Drupal 6 module is trying to run the hook_menu in a Drupal 5 style.
See the Drupal manual but...

function dynosearcho_menu($may_cache) {
  $items = array();

  if ($may_cache) {
    $items[] = array(

Should be

function dynosearcho_menu() {
  $items = array();

    $items['admin/settings/dynosearcho'] = array(

for starters.
Thanks

#4

Use the 6.x-2.1-beta1 version - this has hook_menu correctly implemented (along with a bunch of other fixes).

-mike

#5

Status:postponed (maintainer needs more info)» closed (fixed)

Closing.