warning just after install & activating of the module
warning: Missing argument 1 for geonames_tools_menu() in /home//sites/all/modules/geonames/geonames_tools.module on line 7.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | geonames_tools_menu.patch | 858 bytes | andreiashu |
| #4 | geonames_tools.zip | 1.12 KB | 2xe |
Comments
Comment #1
2xe commentedComment #2
takinola commentedI just downloaded and installed geonames 6.x-1.1 with Drupal 6.2 and got this message. Is there a fix?
Comment #3
ytorf commentedI'm having the same problem. Any word on a fix?
Comment #4
2xe commented...I'm sorry I haven't responded to this earlier; I've been quite busy lately. I tried to fix it in CVS a few weeks ago, but I'm having a hard time with the braching and tagging to get things properly working -- and I don't have the time to spend hours to get this right at this moment.
I'm attaching my working copy of the geonames_tools.module for D6 - let me know if you still have problems after replacing this file.
If any of you guys are handy with the drupal cvs system, please let me know and we can join you as maintainers!
Sero
Comment #5
tarvid commentedIt's a Drupal core bug. $may_cache is undefined under certain circumstances.
Try
function geonames_tools_menu($may_cache=0) {
Jim Tarvid
Comment #6
mydllurth commentedI can repeat the symptom and tarvid's patch.
This is related to #205994: Mathfilter_menu() throws missing argument error is Drupal 6.0 RC1
Comment #7
2xe commentedThe $may_cache variable is a left over from Drupal 5, it doesn't exist in Drupal 6 and should just be removed...
I must have uploaded my D5 version as a patch -- the menu hook is supposed to look like this:
I will try to clean up the mess one day I have some time to spend figuring out the tagging and branching properly...
Comment #8
gagarine commentedI dowload the version in #4 but the menu is:
So i copy/paste the code in #7 and all work good :).
Comment #9
andreiashu commentedThis was somewhat like a blocker for me. It is very nasty to get a error exactly after you install this module.
I attached a patch with SeroSero's solution.
Comment #10
lyricnz commentedThe 6.x-1.x-dev branch already has this code. Try that, until the next version of the module is released. Please let me know if this works for you.
Comment #11
lyricnz commentedThis appear appears to be resolved. In any case, this module isn't very useful right now, so it's unlikely anyone enables it.
Comment #13
cronix commentedSolved in -dev; this made my day. I don't understand #11. The module is working great. It provides great functionality on my site.