-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I get the following error when using Roudcube 1.5.2 and the plugin: geolocation in combination with lastlogin along with PHP 8.0.14.
Stack trace:
#0 /var/www/html/webmail/plugins/geolocation/geolocation.php(67): geolocation::get_geolocation_info()
#1 /var/www/html/webmail/plugins/lastlogin/lastlogin.php(432): geolocation->get_geolocation()
#2 /var/www/html/webmail/plugins/lastlogin/lastlogin.php(133): lastlogin->get_geo()
#3 /var/www/html/webmail/plugins/lastlogin/lastlogin.php(72): lastlogin->save_info()
#4 /var/www/html/webmail/program/lib/Roundcube/rcube_plugin_api.php(513): lastlogin->render_page()
#5 /var/www/html/webmail/program/include/rcmail_output_html.php(831): rcube_plugin_api->exec_hook()
#6 /var/www/html/webmail/program/include/rcmail_output_html.php(654): rcmail_output_html->parse()
#7 /var/www/html/webmail/program/include/rcmail.php(289): rcmail_output_html->send()
#8 /var/www/html/webmail/index.php(283): rcmail->action_handler()
#9 {main}
thrown in /var/www/html/webmail/plugins/geolocation/geolocation.php on line 119
The problem is that geolocation uses PHP GeoIP which to my understanding is not supported anymore in PHP 8. Is there a possibility to still use GeoIP or is there an alternative to it? Or is there possibly another plugin for Roundcube that is more suited for the new PHP version?
We also spotted an extension for PHP 8 and wonder if this is compatible with geolocation: https://github.com/rlerdorf/geoip
Thanks in advance.
Ps: We are currently using version 0.1.2 of geolocation