Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0

Request #19396 Database Type Retrieval Method
Submitted: 2012-04-24 18:55 UTC
From: x414e54 Assigned:
Status: Open Package: Net_GeoIP (version 1.0.0)
PHP Version: Irrelevant OS: Fedora 16
Roadmaps: (Not assigned)    
Subscription  


 [2012-04-24 18:55 UTC] x414e54 (x414e54 x59)
Description: ------------ A way to be able to get the current database type from a GeoIP instance would be useful. This would save certain code that does not know the database type having to first try the locationLookup and then catching the exception then trying the country lookup. I propose that a function getDatabaseType will return the private databaseType field. We have a Magento site running OneStepCheckout and using a GeoIP country database. The OneStepCheckout works but always produces an exception in the log. Actual result: -------------- PEAR_Exception: Invalid database type; lookupLocation() method expects City database. in /var/www/vhosts/xxxxxxxxx/httpdocs/app/code/local/Idev/OneStepCheckout/Model/Observers/PresetDefaults.php

Comments