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

Closed
anonymous-piwik-user opened this Issue May 9, 2014 · 5 comments

2 participants

@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.

@mattab
Piwik Open Source Analytics member

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?
@mattab
Piwik Open Source Analytics member

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

@mattab
Piwik Open Source Analytics member

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?

@mattab
Piwik Open Source Analytics member

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

@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab 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
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab 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
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
@mattab 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