New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.2.1-b1] Cannot redeclare geoip_country_code_by_name_v6() when PECL extention is installed #12291
Comments
The more I think about it the less sure I am if php-geoip even works with php7.1. Locally I am using debian testing and the php-geoip only contains a config for php7.0. On the server I am using the php packages from https://packages.sury.org/php and their php-geoip
|
could you check if |
I'm seeing the same issue on my dev environment. |
It seems to be gone (I have in the meantime rolled back to the stable piwik version)
|
libs/MaxMindGeoIP exists for me |
@sgu222e remove it and the error should be gone |
remove the folder and restarted apache, still getting the same error |
I unziped the latest build.zip to a new vhost on the same server using the same php version. After going through the setup (to a new database) and setting the geolocation to PECL I made the update to the beta version and piwik is broken again. |
@sgu222e |
I unziped the stable version over top of my existing install (backed up config and plugins), it loaded fine |
for the record, I am using the GeoIP(Php) provider, as my piwik only does intranet traffic. |
I quickly commented the line in So it is definitly related to the fact that the PECL module is enabled. See also maxmind/geoip-api-php#27 and maxmind/geoip-api-php#6, which seems to indicate that this can't really be avoided as the php module and the composer autoloader try to define the same functions. |
I think it is related to having the PECL module installed, not just activated., I commented out (extension=geoip.so) in /etc/php.d/40-geoip.ini and restarted Apache, I was able to update to the latest version without an issue. |
@sgu222e that worked for me |
Any idea why this error didn't occur with the libs/MaxMindGeoIP version, why was it not also redefining errors? I remember we patched some code in the past and wrapped functions around The way I see it:
|
It might be a good idea to disable this beta version as it is still breaking new upgrades. :-) |
(Sorry if this is a bit confusing, I am still not sure what causes this)
related to #12021 and #11817
After updating to 3.2.1-b1 the piwik page stays white and I get the following error on the php log
PHP Fatal error: Cannot redeclare geoip_country_code_by_name_v6() in /var/www/piwik/vendor/geoip/geoip/src/geoip.inc on line 1593
I am using GeoIP (PECL) for localization and have installed the php-geoip package on my server, which worked before the update with PHP 7.1.11.
Locally the latest 3.x-dev works without issues, so I am not sure how to reproduce it.
The text was updated successfully, but these errors were encountered: