Hi,
I just installed the plugin and i got a white screen.
Enabling the error_report, i see this message:
Fatal error: Call to undefined function geonames_geocode_handler_info() in /myserverpath/httpdocs/sites/all/modules/geocode/geocode.module on line 95
In the line 95 of the geocode.module file, there is:
// Based on availablilty, include handlers that leverage installed modules.
// This is for some out-of-the-box interoperability, but should be supplanted
// by modules implementing hook_geocode_hander_info() on their own.
$dir = drupal_get_path('module', 'geocode') . '/includes/modules/';
foreach (file_scan_directory($dir, '\.inc$') as $file) {
if (module_exists($module = $file->name)) {
$func = $module . '_geocode_handler_info';
// Call hook_geocode_handler_info() if the module doesn't account for it.
if (!function_exists($func) && !function_exists($func .'_alter')) {
require $dir . $module .'.inc';
$handlers = array_merge($handlers, $func()); //THIS IS LINE 95
}
}
}
Looking into the geonames.module file, there isn't any geonames_geocode_handler_info() hook, i suppose this is the problem.
Comments
Comment #1
strae commented...maybe i did good, or maybe i did wrong, but i just edited the line 95:
..and for now seem to work.
Maybe (porobably) the hook wont be called properly, im waiting for a patch.
Comment #2
strae commentedGeocode wont works properly with Geonames
Comment #3
allie mickaNobody has written the Geonames integration :(
It should be relatively quick to do, and I'd love a volunteer! At some point I'll get to it on my own if there are no takers. But it would be nice if I didn't have to ;)
Comment #4
strae commentedI would be happy to help, but im pretty new to drupal, dont know if i really am able to do that (..yet!)
Comment #5
maedi commentedsub
Comment #6
mr.baileysMarked #784876: Call to undefined function geonames_geocode_handler_info() as duplicate.
Comment #7
asb commentedsub
Comment #8
lyricnz commentedMarked #907114: error message Fatal error: Call to undefined function geonames_geocode_handler_info as duplicate.
Comment #9
bunker commentedOne year later the error is still here.
Comment #10
lyricnz commented@bunker: the maintainer of Geocode has already asked for someone to step up and write the geocode-geonames integration. If nobody does it, it doesn't get done.
Comment #11
paulgemini commentedStill getting this error. Anyone ever look at this?
Comment #12
hvalentim commentedStill getting this today indeed: http://drupal.org/node/1324128
This is a critical problem since one is unable do access most admin with a 500 error.
I applied the fix in comment 1 and was able to restore access to the admin pages.