Closed (fixed)
Project:
Geolocation Proximity
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Jun 2011 at 21:31 UTC
Updated:
16 Apr 2012 at 18:59 UTC
Could it be a conflict with Domain Access module?
[error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Cannot redeclare earth_radius_semimajor() (previously declared in /data/www.website.name.com/html/sites/all/modules/location/earth.inc:32) in /data/www.website.name.com/html/sites/all/modules/geolocation_proximity/earth.inc on line 34, referer: http://mobile.website.name.com/admin/structure/domain/conf/2
[Tue Jun 21 12:55:59 2011] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Cannot redeclare earth_radius_semimajor() (previously declared in /data/www.website.name.com/html/sites/all/modules/location/earth.inc:32) in /data/www.website.name.com/html/sites/all/modules/geolocation_proximity/earth.inc on line 34, referer: http://mobile.website.name.com/admin/structure/domain/conf/2
[Tue Jun 21 12:56:51 2011] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Cannot redeclare earth_radius_semimajor() (previously declared in /data/www.website.name.com/html/sites/all/modules/location/earth.inc:32) in /data/www.website.name.com/html/sites/all/modules/geolocation_proximity/earth.inc on line 34, referer: http://mobile.website.name.com/admin/structure/domain/conf/2
[Tue Jun 21 12:57:10 2011] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Cannot redeclare earth_radius_semimajor() (previously declared in /data/www.website.name.com/html/sites/all/modules/location/earth.inc:32) in /data/www.website.name.com/html/sites/all/modules/geolocation_proximity/earth.inc on line 34
Comments
Comment #1
ben kuper commentedAlso had this error.
This is because another module has also an earth.inc file (Location module for me) which is declaring the same functions.
If you're working with other modules related to geolocation, you may want to disable them.
But as you're on a wsod, you can't do that :)
You'll have to find the other earth.inc file located in your other module and delete (temporarily) all the content of it, or just comment it out.
Then you'll be able to come back to your modules page and disable the conflicting module.
Comment #2
Todd Young commentedI had the same thing happen vs. Location - Is this module not to be used in conjunction with Location? That would have me gutting a few bits more than I was hoping, just to get the proximity filter...
Comment #3
ben kuper commentedI think location and this module can work well together, but each one acts like it would be the only location-related module on a setup.
Therefore, there is no verification of file and function duplication.
You just have to correct yourself this kind of problem and hope that maintainers of these modules will take this issue as a reel module conflict problem and take care of it :)
I don't really have the time to do that, but it could be nice to find the lines to change in the module to avoid this kind of conflict. And maybe a patch ?
Ben
Comment #4
derjochenmeyer commentedNew release removes unused earth.inc. This solves the conflict with location.
#1535824: geolocation_proximity 7.x-2.0-alpha1