Problem/Motivation
I get an error while configuring the module
Steps to reproduce
Acessing admin/config/system/geoip
I get the following error
Error: Class 'Database' not found in _registry_check_code() (line 3500 of /home/customer/www/test.learnro.com/public_html/includes/bootstrap.inc).
On my Drupal 7.78 I installed the GeoIP module I followed the steps in the Install.txt
On step 3 I downloaded the file GeoLite2-ASN.mmdb from maxmind.com
1. Enable this module as usual.
2. Install one of the Maxmind php API:
- GeoIP2 [https://github.com/maxmind/GeoIP2-php]:
-- # phar package:
Download the latest phar package:
https://github.com/maxmind/GeoIP2-php/releases
Place the file geoip2.phar here:
sites/all/libraries/GeoIP2-phar/geoip2.phar
3. Download one of the GeoLite database files (matching the API):
- GeoIP2: http://dev.maxmind.com/geoip/geoip2/geolite2/#Downloads
- Legacy: http://dev.maxmind.com/geoip/legacy/downloadable/
4. Create the directory 'sites/all/libraries/geoip' and extract the database
file into this directory.
You can use other locations too e.g. to share a database with varnish or
other tools - to do so you can configure the path to the database to use in
the module configuration (admin/config/system/geoip).
After step 4 I get the following error:
Warning: stream_wrapper_register(): class 'TYPO3\PharStreamWrapper\PharStreamWrapper' is undefined in /home/customer/www/mydomain/public_html/misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php on line 509
Error: Class 'Database' not found in _registry_check_code() (line 3500 of /home/customer/www/test.learnro.com/public_html/includes/bootstrap.inc).
I have rebuilt the registry by flushing the registry_file table and recreating the registry.
Comments