• Support will be limited until May 1st, as I will be out of the office travelling. Thank you for your patience and understanding.

Bug Fatal error: Class 'GeoIp2\Database\Reader' not found in /home/username/public_html/src/addons/DBTech/MemberMap/Model/GeoIp.php on line 40

Status
Not open for further replies.

barefoot

New member
Hi, I got the plugin working ok but now it throws this error when I try to view the map or run the cron entry manually:

Fatal error: Class 'GeoIp2\Database\Reader' not found in /home/username/public_html/src/addons/DBTech/MemberMap/Model/GeoIp.php on line 40

I've tried uninstalling, deleting the files re-uploading and reinstalling the plugin but I still get this error no matter what I do.

This is the line throwing the error in GeoIp.php. It seems like it's not happy with the GeoIP2 File path which I have checked and it's correct:

$this->reader = new \GeoIp2\Database\Reader($options->dbtech_membermap_geoip2_path);

Any help would be greatly appreciated!
 
Here's a example of the xenforo server error log which is created when the DB Tech Member Map cron entry is run either manually or automatically. Every error message has a different URL of a thread on my forum.

Code:
Server error log

    ErrorException: Fatal Error: Class 'GeoIp2\Database\Reader' not found src/addons/DBTech/MemberMap/Model/GeoIp.php:40

    Generated by: Unknown account Jun 15, 2018 at 12:11 PM

Stack trace

#0 [internal function]: XF::handleFatalError()
#1 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(71) "https://mysite.com/threads/name-of-thread.1234/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
The problem isn't the database path, it's that your system can't find the class that gets require()'d right above the line you highlighted.

Can you go to admin.php?tools/phpinfo and tell me the value of the include_path setting?
 
This is the value for include_path.

Both Local Value and Master Value show this:
Code:
.:/usr/lib/php:/usr/local/lib/php
 
Can you please start a conversation with me and send me an FTP and AdminCP account so I can look into this further?

Thanks :)
 
You need to enable the phar extension in your PHP configuration in order for this product to work correctly.
 
Awesome thanks, it's working now!

In case anyone else needs to enable the php phar extension, one way of doing it is to log into WHM and use EasyApache to re-compile your Apache and PHP.

The option to install phar is in the Exhaustive Options List. Tick the box next to phar then save configuration and then build.
 
Hello @barefoot,

We hope your ticket regarding DragonByte Member Map has been addressed to your satisfaction. This ticket has now been closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Member Map

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,913
Customer rating
5.00 star(s) 1 ratings
Back
Top