Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Set Base URL used in the AJAX request to ? instead of index.php? #5127

Closed
anonymous-piwik-user opened this Issue · 5 comments

2 participants

Anonymous Piwik user Matthieu Aubry
Anonymous Piwik user

from a version 2.2.2 install on a shared hosting linux server.

if I click 'all websites' it gives an error message:
You can't access this resource as it requires an 'view' access for the website id = 1.

if I try to save something in 'user settings' an error messages says: Token is not valid.

in short, nothing saves on any page.

this is straight after a standard install with only the optional fields mail and load data infile showing as not working in the System Check screen.

Matthieu Aubry
Owner

In 6abc39d: Trying to set module + method as GET parameters to overwrite any existing GET param. Refs #5127
To test:

  • apply this patch
  • delete piwik/tmp/assets/*
  • try again if it's working?
Matthieu Aubry
Owner

In 497f6da: Refs #5127 revert previous commit as this was not the fix
Thanks for sending me access to the server so I could check myself

Matthieu Aubry
Owner

In 5ada2b9: Fixes #5127 Set Base URL used in the AJAX request to ? instead of index.php?

It is set to '?' rather than 'index.php?' to increase chances that it works
including for users who have an automatic 301 redirection from index.php? to ?
POST values are missing when there is such 301 redirection. So by by-passing
this 301 redirection, we avoid this issue.

Anonymous Piwik user

thank you for looking at this so promptly. is there a version number I should look out for that this update will be applied to?

Matthieu Aubry
Owner

@turbo_bob please upgrade to latest beta version: http://piwik.org/faq/how-to-update/faq_159/

Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry mattab Trying to set module + method as GET parameters to overwrite any exis…
…ting GET param. Refs #5127

To test:
- apply this patch
- delete piwik/tmp/assets/*
- try again if it's working?
6abc39d
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry mattab Refs #5127 revert previous commit as this was not the fix
Thanks for sending me access to the server so I could check myself
497f6da
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry mattab Fixes #5127 Set Base URL used in the AJAX request to `?` instead of `…
…index.php?`

 It is set to '?' rather than 'index.php?' to increase chances that it works
 including for users who have an automatic 301 redirection from index.php? to ?
 POST values are missing when there is such 301 redirection. So by by-passing
 this 301 redirection, we avoid this issue.
5ada2b9
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.