Hi
when enableing the Tools in Modules, i get the following error :

warning: Missing argument 1 for geonames_tools_menu() in /web/www.mysite.com/www/drupal/sites/all/modules/geonames/geonames_tools.module on line 7.

Im a noob and have no clue what that means.
Also the Documentation link does not work.

Thanks for helping.

Comments

Anjaro’s picture

this is for version 6.x-1.1

Ohh and i see that there is already an request for this, sorry for dublicating.
But i also see that the other topic is kind of old. Is this module still supported ?

Thanks for any answer.

Anjaro’s picture

Ok, i guess this module is not supported any more, and is dead ?

2xe’s picture

It's not dead -- I'm just very busy at the moment, I'll organise a proper release when I have the time.

Anjaro’s picture

Thanks for answer.
Sounds great, looking forward :)

pinchg’s picture

Status: Active » Fixed

Open geonames_module.tools and go to line 7 - remove the "$may_cache" parameter, then in the if clause 2 or 3 lines down change the "$may_cache" to a 0. This is a hack but it works.

pinchg’s picture

Status: Fixed » Needs work
Anjaro’s picture

Thanks for answer Pinchg.

Im a noob, so i have difficult understanding what you write. Can you explain, what need to be changed below, please. Thanks.

function geonames_tools_menu($may_cache) {
$items = array();
if ($may_cache) {

}
else {
$items[] = array(
'path' => 'geonames/autocomplete',
'title' => t('Autocomplete Geonames Search'),
'type' => MENU_CALLBACK,
'callback'=> 'geonames_tools_search_autocomplete',
'access' => user_access('access content')
);
}
return $items;
}

Anjaro’s picture

I see that work is in progress. I will not hack, but wait patiently for a official update.
Looking forward to see this project grow :) Thanks for the module and hard work.

pinchg’s picture

Make it look like this: (if you're a noob then you probably will have trouble implementing this api - just a thought - its not a miracle drag and drop module!)

function geonames_tools_menu() {
$items = array();
if (1) {

}

2xe’s picture

For D6 it is supposed to look like this:

function geonames_tools_menu() {
  $items['geonames/autocomplete'] = array(
    'title'   => t('Autocomplete Geonames Search'),
    'page callback' => 'geonames_tools_search_autocomplete',
    'access arguments' => array('access content'),
    'type'    => MENU_CALLBACK,
  ); 
  return $items;
}
kjcole’s picture

Subscribe.

lyricnz’s picture

Status: Needs work » Closed (duplicate)