Search
Other Advanced Module Manager questions
Forum

Advanced Module Manager with GeoIP functionality is no longer working on J4

Bernard Podolski's Avatar Bernard Podolski
Has worked in the past, after update, no longer working. AMM is set up just like before with no changes. GEOIP plugin is set up and has current IP database updated and synched.

Don't know what to do next.
Peter van Westen's Avatar Peter van Westen ADMIN
Try deleting these files and folders:
administrator/manifests/libraries/regularlabs.xml
administrator/manifests/packages/pkg_regularlabs.xml
administrator/manifests/packages/regularlabs
/plugins/system/regularlabs
/libraries/regularlabs
/plugins/system/geoip
/libraries/geoip
(You will get other errors now).

Then clear the Joomla cache and reinstall the latest version of Advanced Module Manager.
Please post a rating at the Joomla! Extensions Directory
Bernard Podolski's Avatar Bernard Podolski
Hi Peter we tried this and it broke our site and we couldn't update extensions or clear cache.

The massage was:

An error has occurred.
• Failed opening required '/home/tav5|xxxxxxx/public_html/libraries/geoip/src/Geolp.php' (include_path='.:/opt/alt/php81/us/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php')
Peter van Westen's Avatar Peter van Westen ADMIN
Weird, it shouldn't break. Or are you using custom scripts that are trying to include the Geolp.php?

Are you not able to log into the administrator either?

If you need help: Can you also give me (s)ftp access so I can take a look?
Please post a rating at the Joomla! Extensions Directory
Bernard Podolski's Avatar Bernard Podolski
My developer reverted the following:

I found the issue with GeoIp. Not sure how to get in on the Regular Labs ticket.

For me, the GeoIp class returns:
(object) array(
   'continentCode' => 'NA',
   'continent' => 'North America',
   'countryCode' => '',
   'country' => 'United States',
   'regionCodes' =>
  array (
    0 => NULL,
  ),
   'regions' =>
  array (
    0 => 'California',
  ),
   'postalCode' => '94610',
)
Notice the country code is missing. I have modified line 67 of /libraries/geoip/src/GeoIp.php to populate the country code.

The modules depending on geolocation now seem to be working.

We would like to be sure we don't have further ssuses when we update this extension.

THanks
Peter van Westen's Avatar Peter van Westen ADMIN
I found the underlying issue.

Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription