Skip to content

Geolocation Problems: Path wrong? #1340

@floek

Description

@floek

Dear Matomo Team,
I'm on wordpress multisite in a docker PHP-FPM environment and trying to use geo location database.

Matomo Plugin says:

* Error Standorterkennung: error  (Der konfigurierte Standorterkennungsdienst (<strong>DBIP / GeoIP 2 (Php)</strong>) funktioniert nicht. Bitte korrigieren Sie die Einstellung, oder setzen Sie einen anderen Anbieter. )

And in my log files:

PHP Warning:  file_put_contents(/usr/src/wordpress/wp-content/plugins/matomo/app/tmp/empty): Failed to open stream: No such file or directory in /usr/src/wordpress/wp-content/plugins/matomo/app/plugins/Diagnostics/Diagnostic/RecommendedPrivateDirectories.php on line 22
PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/src/wordpressmatomo/DBIP-City.mmdb) is not within the allowed path(s): (/usr/src/wordpress/:/tmp/) in /usr/src/wordpress/wp-content/plugins/matomo/classes/WpMatomo/Paths.php on line 176

This looks like a very wrong path to look for the DBIP-City.mmdb file.
There is a missing slash between wordpress and matomo.
Wordpress admin says it will put the file in wp-content/uploads/matomo which is wrong in multisite (should be wp-content/uploads/sites/<ID>/matomo). Okay, I've created the directory. But, the error message says it doesn't look into wp-content...

It would be very nice if you could fix this issue please. The database should live in wp-content/uploads/sites/<ID>/matomo

Thank you!

Best regards,

Floek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions