Skip to content
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

Fatal Error : Variable "dbipLiteUrl" does not exist. #15359

Closed
NicolasKulka opened this issue Jan 8, 2020 · 13 comments · Fixed by #15362 or #15447
Closed

Fatal Error : Variable "dbipLiteUrl" does not exist. #15359

NicolasKulka opened this issue Jan 8, 2020 · 13 comments · Fixed by #15362 or #15447
Assignees
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone

Comments

@NicolasKulka
Copy link

The following error just broke Matomo (v3.13.1-rc1):

Variable "dbipLiteUrl" does not exist.
in /var/www/piwik/plugins/UserCountry/templates/adminIndex.twig line 21

Go to Settings > System > Geolocalisation

@NicolasKulka
Copy link
Author

After update Matomo to beta version

@tsteur
Copy link
Member

tsteur commented Jan 8, 2020

@diosmosis can you maybe have a look? I suppose that seems to happen when it thinks that GeoIP is not enabled in the controller?

BTW noticed we might also want to escape the dbipLiteUrl in the twig template

@tsteur tsteur added this to the 3.13.1 milestone Jan 8, 2020
@tsteur tsteur added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jan 8, 2020
@diosmosis
Copy link
Member

@tsteur This can happen if using GeoIp and not GeoIp2. I fixed it on demo will put a PR up soon, but users at this point should be using geoip2. Maybe we should also add a notification prompting users in case they are still using GeoIp?

@NicolasKulka
Copy link
Author

Thanks !

@NicolasKulka
Copy link
Author

same problem after upgrade matomo 3.13.1, how to resolve my problem ?

Variable "dbipLiteUrl" does not exist.
in /var/www/piwik/plugins/UserCountry/templates/adminIndex.twig line 21

@diosmosis
Copy link
Member

@NicolasKulka can you install the GeoIp2 plugin? Note: this will perform an update that may take a while to run.

@NicolasKulka
Copy link
Author

Thanks, problem resolved

@tsteur
Copy link
Member

tsteur commented Jan 16, 2020

@diosmosis should we reopen the issue to prevent this issue? Seems #15362 didn't fix it fully?

@diosmosis
Copy link
Member

It didn't, but this error only occurs when geoip 1 is being used, and at this point I don't think anyone should be using it.

@tsteur
Copy link
Member

tsteur commented Jan 17, 2020

I would say many people still use it. Especially when they upgrade from an older Matomo version. AFAIK we didn't auto enable geoip2?

@tsteur tsteur reopened this Jan 17, 2020
@diosmosis
Copy link
Member

@tsteur the problem here is we now tell people to download dbip's database, but that database only works with GeoIp2. So if a user has GeoIp 1 installed, much of our help text is not relevant. The only thing I can think to do is display "Please install the GeoIp2 plugin (note that this plugin will require a possibly long running update)."

@tsteur
Copy link
Member

tsteur commented Jan 20, 2020

Sounds good 👍

@mattab mattab modified the milestones: 3.13.1, 3.13.2 Jan 21, 2020
@diosmosis diosmosis self-assigned this Jan 21, 2020
@plastikschnitzer
Copy link

plastikschnitzer commented Jan 23, 2020

Maybe you can optimize the helping text in a way to include deactivated modules, I was using the IP2location plugin and GeoIP2 was deactivated. I was very confused because I checked your posting here and looking into my Plugin list I found GeoIP2 but the error message still appeared – it took a while to realize that GeoIP2 was just deactivated … ;-) :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
5 participants