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

ben kuper’s picture

Also 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.

Todd Young’s picture

I 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...

ben kuper’s picture

Title: WSOD when enabling the module » WSOD when enabling the module : function duplication (conflict in earth.inc)

I 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

derjochenmeyer’s picture

Title: WSOD when enabling the module : function duplication (conflict in earth.inc) » Conflict with Location module: WSOD when enabling the module : function duplication (conflict in earth.inc)
Status: Active » Closed (fixed)

New release removes unused earth.inc. This solves the conflict with location.
#1535824: geolocation_proximity 7.x-2.0-alpha1