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

No view allowed for superuser #13474

Closed
mformanu opened this issue Sep 24, 2018 · 3 comments
Closed

No view allowed for superuser #13474

mformanu opened this issue Sep 24, 2018 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@mformanu
Copy link

Hi there,
I tried three times to install Matomo on shared Webspace (Hetzner Germany) and can't access the view of the website. I can log in, but not change settings and the dashboard says that I do not have permission ID=1. Support told me that other customers did not complain and that there is no known problem coming from their side. The installation runs through without problems and the db has the tables and rows and is filling data. Console is clean.

Is it possible that my htaccess files causes problems? The database is not on the same Webspace (db server is 123.your-server.de and the website is on 456.your-server.de)

The lines in my htaccess:

# Security
# Header set X-Frame-Options: SAMEORIGIN
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection: "1; mode=block"

RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]

Is it possible that my configuration is locking myself out?

Thanks in advance!

@tsteur
Copy link
Member

tsteur commented Sep 24, 2018

It shouldn't cause it I reckon (not tested). Never heard of any such issue. Maybe check your site table what content it has and if a site 1 exists... if not, maybe create such a site in the DB manually (in case you are familiar with SQL). Did you install any third party plugins that are causing trouble?

@mformanu
Copy link
Author

mformanu commented Sep 25, 2018

I can see the website in the "all websites" view at the start and it displays the number of views and the chart at the right. phpMyAdmin shows this structure (screenshot): https://1drv.ms/u/s!As4dIzLwrkwHmFyGbOeJaMj8d7Oc

So the data seems to be stored correctly since I installed Matomo and included the snipped on our website.

What is perhaps worth mentioning: the php GeiIP PlugIn says "note: could not find a database"

I did not install any PlugIn or tried to. On personal settings it displays "you have to be logged in to change the settings" and I can not save anything. If I try to save something it displays "Token not valid". But I can save IPs to be dismissed in tracking.

Data integrity-test just gives a warning about forced SSL and the not very accurate GeoIP. Is there something else I can provide?

Thank you.

@mattab
Copy link
Member

mattab commented Jun 18, 2019

Hi there, to fix the issue can you try upgrade to the latest Matomo version?
https://matomo.org/docs/update/

if you still experience this issue afterwards, please re-open this and post a comment.

Or you can contact us at https://matomo.org/contact/

Thanks!

@mattab mattab closed this as completed Jun 18, 2019
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants