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
Redirect error while Upgrading to 2.8.1 #6491
Comments
a manual clean install of 2.8.0 get it back working. |
Hi, Are you using Nginx or Apache? |
hi mnapoli. i am using nginx and piwik is installed in the root. thx, jochen |
Thanks. If it is possible for you, we could use some help debugging it. We are running tests with nginx and php-fpm too and they are passing. If you could provide use with the content of the A way to do that is to edit Piwik's source code on the web server. If you are comfortable doing this, then create a new file named <?php
var_dump($_SERVER); Now if you visit http://you-domain.com/test.php you should see a lot of information. Could you copy the data here? Take care to remove all sensitive information, like the server name, cookie data or directories for example. Remember to remove the |
hey. here is the content of $_SERVER:
thank you for the help! |
i needed to cleanup the array, because there was to much info's for potential attacks... |
Thanks! I've removed all the cookie data just to be sure, I don't need them. I've also removed any IP address. So there's indeed something that looks weird here: |
no. it is "___server_var.php" instead of "test.php" as you suggested.
no rewrite or something... |
OK so |
when I revert this commit 2aae308 || when I try https everything is working again $url = Url::getCurrentScheme() . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; string(107) "http://suckup.de/piwik/index.php?module=UsersManager&action=userSettings&idSite=1&period=day&date=yesterday" |
Do you know the value of the All seems correct except for Because of these values, Piwik thinks the current URL is @voku Yep it makes sense. When you revert, it doesn't use the "wrong" global variables anymore. I'm trying to understand why those global variables are set wrong :/ |
in my case it doesnt matter if http oder https. but i will test this tomorow... |
fix_pathinfo was 1. a also tested to upgrade with fix_pathinfo=0 and the following $_SERVER and the same result (redirect error).
|
the php documentation also says, that 1 is the new "correct" settings for fix_pathinfo. but i saw now, that in the nginx documentation i schould also add
i will test this now. |
here is a example config -> http://wiki.nginx.org/PHPFcgiExample |
OK i am sorry. it isn't a piwik bug.
THX for your help |
now everything works fine. |
From the forums:
|
@jochen42 & @voku Were you using https://github.com/perusio/piwik-nginx? BTW I have pushed a fix to master. Basically what happened in the
The bug is when Nginx provides an incorrect PATH_INFO (as diagnosed here, it can happen when it is misconfigured) then What I did is I removed
So instead of stripping PATH_INFO to re-add it in getCurrentUrl(), it is never stripped. That way we never use PATH_INFO so everything should be OK. The commit is here: ad2c051 |
Hello, Things were running smoothly until now with the following config:
I did a server var dump as advised earlier in this thread with the following output:
I also tried changing the fastcgi_param directives with the following:
or:
but I always see (in Firefox): "The page isn't redirecting properly" Can you please check the above configuration? |
@noa-appletech I think you missed "fastcgi_split_path_info" -> http://wiki.nginx.org/PHPFcgiExample PS: you can also take a look at my backup-config ;) -> https://github.com/voku/CONFIG--nginx---php-fpm---mysql/tree/master/etc/nginx |
Finally it worked fine after using the following fastcgi_param directives:
There is no Thanks anyway, |
Thanks for the report everybody. A fix has been pushed to master, it will be released soon in 2.8.2. |
Hi,
while automatic update to 2.8.1, the browser got too many redirects. Now a can not login into piwik.
But the tracking seems to work.
In the webserver log i only see this redirects while trying to open index.php:
17.51.3.20 - - [21/Oct/2014:12:40:32 +0200] "GET /index.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0" 217.51.3.20 - - [21/Oct/2014:12:40:32 +0200] "GET /index.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0" 217.51.3.20 - - [21/Oct/2014:12:40:32 +0200] "GET /index.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0" 217.51.3.20 - - [21/Oct/2014:12:40:32 +0200] "GET /index.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0" 217.51.3.20 - - [21/Oct/2014:12:40:32 +0200] "GET /index.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0" 217.51.3.20 - - [21/Oct/2014:12:40:32 +0200] "GET /index.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0"
an aditional information: the archive-cron-job was running while updating. perhaps this is the problem.
in my local test installation everything worked fine.
i am using php 5.5.9, with php-fpm.
The text was updated successfully, but these errors were encountered: