wp-statistics / wp-statistics

The Most Popular Privacy-Friendly Analytics Plugin
https://wp-statistics.com
GNU General Public License v3.0
105 stars 33 forks source link

GeoIP not working anymore #315

Closed Rustimation closed 2 years ago

Rustimation commented 4 years ago

Ever since the People at Maxmind have changed their download policy (arounf Jan 1st 2020), the GeoIP Functions don't work anymore. The Update Buttons lead to a critical error, a manual install of GeoIPLite is not possible/not obvious.

mostafasoufi commented 4 years ago

This issue fixed in the beta version and is available in the development branch, please try to test it and let us know about the result of your test.

Rustimation commented 4 years ago

============== Error persisted Installed Development version fom Dec 22: Klicking on the update button in "Settings/Externals" results in a critical error: Error-Details Uncaught RuntimeException: The gmp or bcmath extension must be installed to read this database. in /var/www/wordpress/wp-content/plugins/wp-statistics-development/includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php:295 FIX: Install the missing php modules by issuing the follwing commands: sudo apt install php-gmp php-bcmath

Works like a charm now.

thanks Chris aka Rustimation

mostafasoufi commented 4 years ago

Could you review our beta version which is has a lot of improvements? https://github.com/wp-statistics/wp-statistics/tree/development

sanderlv commented 3 years ago

Hello, I have uploaded the latest version as advised above. I have also increased the php max mem on server side to 512M and as well on the file wp-config.php: /* Memory Limit / define('WP_MEMORY_LIMIT', '512M');

But keep getting: image

i cannot enable it.

What is wrong?

mostafasoufi commented 3 years ago

Did you try in WP_DEBUG mode? is there any error in error_log? @sanderlv

sanderlv commented 3 years ago

How do I do that?

WP_DEBUG

mostafasoufi commented 3 years ago

I mean debug mode https://wordpress.org/support/article/debugging-in-wordpress/

sanderlv commented 3 years ago

Sorry, i do not know where and how to start debugging this.

  1. what and where do I need to enable debug in WP? And where will I have to look at it?
  2. Where is the error_log?
mostafasoufi commented 3 years ago

Enabling debug mode cause to show the currents error on the screen, you can open wp-config.php and enable this line

define('WP_DEBUG', true);

The error_log is located in your WordPress root