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
Broken json extension: Login not working in 1.1.1 for some users #1958
Comments
|
Attachment: phpinfo |
Login not working for me with version 1.1 and 1.1.1 and php version 5.2.14. Cache cleared and tested with Firefox and Chrome |
see possible solution: http://forum.piwik.org/read.php?2,70673,page=1#msg-70691 |
Replying to matt:
Thank you for your response, but this does not solve the trouble for me. Still unable to login... I'll investigate further the problem when I'll get a bit of free time (not before several days). Alexandre |
(In [3644]) refs #1958 - improve form security error message |
So far, the phpinfo hasn't helped. I'd like to see what's causing the login to fail. In core/Nonce.php, add some debugging, login, send us the output, and then remove the debugging.
|
Hello, Here is the result (coockies removed just before) : array(34) { [string(24) "TSVgUlQQXBsAAHOzMfoAAAEJ" "SCRIPT_URL"=> string(16) "/piwik/index.php" [string(42) "http://www.madecoperso.com/piwik/index.php" "HTTP_HOST"=> string(19) "www.madecoperso.com" [string(112) "Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.2.14pre) Gecko/20110102 Ubuntu/10.10 (maverick) Namoroka/3.6.14pre" "HTTP_ACCEPT"=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8" [string(35) "fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3" "HTTP_ACCEPT_ENCODING"=> string(12) "gzip,deflate" [string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.7" "HTTP_KEEP_ALIVE"=> string(3) "115" [string(10) "keep-alive" "HTTP_REFERER"=> string(102) "http://www.madecoperso.com/piwik/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today" [string(164) "piwik_auth=login%3DImFsZXhhbmRyZS5qYWJvcnNrYSI%3D%3Atoken_auth%3DIjRmNGNmNGYwYzg4OTk3MmM5NTExODIwYTZjYTlhMWQyIg%3D%3D%3A_%3Dfbb3345b96d389589a49508d9d300e5a39160d8d" "CONTENT_TYPE"=> string(33) "application/x-www-form-urlencoded" [string(2) "96" "PATH"=> string(91) "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/apache/bin:/opt/mysql/bin" [string(0) "" "SERVER_SOFTWARE"=> string(6) "Apache" [string(19) "www.madecoperso.com" "SERVER_ADDR"=> string(11) "84.16.92.27" [string(2) "80" "REMOTE_ADDR"=> string(14) "89.170.133.208" [string(46) "/home/www/ab09e4ca36157e8de9f2c9cdd0d79844/web" "SERVER_ADMIN"=> string(25) "webmaster@madecoperso.com" [string(62) "/home/www/ab09e4ca36157e8de9f2c9cdd0d79844/web/piwik/index.php" "REMOTE_PORT"=> string(5) "56284" [string(7) "CGI/1.1" "SERVER_PROTOCOL"=> string(8) "HTTP/1.1" [string(4) "POST" "QUERY_STRING"=> string(59) "module=CoreHome&action=index&idSite=1&period=day&date=today" [string(76) "/piwik/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today" "SCRIPT_NAME"=> string(16) "/piwik/index.php" [string(16) "/piwik/index.php" "REQUEST_TIME"=> int(1294295122) } |
See also report in forum with php ini: http://forum.piwik.org/read.php?2,70782 |
Hmmm... the piwik_auth cookie is set, and the query string shows that ajaborsk was redirected to CoreHome. Try deleting the files in piwik/tmp/assets/. |
I deleted files in piwik/tmp/assets/ No change. two of the users in the forum thread given by matt are using Infomaniak.ch services, as me. Maybe a .htaccess issue ? Alexandre |
One more report possibly a different bug? http://forum.piwik.org/read.php?2,70874 Warning: session_regenerate_id() href='function.session-regenerate-id'>function.session-regenerate-id</a>: Session object destruction failed in \wwwroot\piwik\libs\Zend\Session.php on line 313 Here is the backtrace: #0 Piwik_ErrorHandler(2, session_regenerate_id() href='function.session-regenerate-id'>function.session-regenerate-id</a>: Session object destruction failed, \wwwroot\piwik\libs\Zend\Session.php, 313, Array ([=> ,linenum => 0))#1 session_regenerate_id(1) called at [Zend_Session::regenerateId() called at \wwwroot\piwik\plugins\Login\Controller.php:384#3 Piwik_Login_Controller::clearSession() called at [Piwik_Login_Controller->logout()#5 call_user_func_array(Array (0 => Piwik_Login_Controller Object ([=> Login, => ,[=> , => 0,[=> Piwik_Site Object ( => 0)),[=> logout), Array ()) called at \wwwroot\piwik\core\FrontController.php:125#6 Piwik_FrontController->dispatch() called at [\wwwroot\piwik\index.php:60] |
Different bug; fixed in r3659 |
Are only Infomaniak users affected? I've made no progress in code inspection or trying to reproduce the problem using different php versions and php.ini settings. |
Attachment: |
I do, and I'm not an Infomaniak customer. Piwik is self hosted, on an old XServe (MacOS X 10.4). Piwik is updated using cvs : version 1.1.1 revision 3690. Here is the result of the var_dump() :
I aded my phpinfo() as an attachment under the name phpinfo-xserve.html. |
(In [3706]) quick fixes #1958 - always use safe_serialize/safe_unserialize as there are sites with custom php builds that exhibit buggy json_encode/json_decode behaviour preventing login; since we use json_encode/json_decode for the dashboard, we can debug further there p.s. Infomaniak's conclusion (posted in the forum) is inaccurate, and their bug fix is wrong (in more ways than one).
|
(In [3709]) delete invalid cookies, refs #1958 |
(In [3712]) refs #1958 - discard entire cookie content if any part fails to unserialize |
(In [3713]) refs #1958 - yet another typo |
p.s. I got access to an Infomaniak account, and traced the problem to a broken json_encode. Infomaniak did some more troubleshooting and identified the problem as a broken php build (i.e., they were still using the pecl extension for json instead of the one bundled with php 5.2.x). |
Reported in: http://forum.piwik.org/read.php?2,70605
and http://forum.piwik.org/read.php?2,70653
and in emails with FTP access.
Please post your phpinfo() here, or send piwik URL + login + password + FTP or SSH access to anthon@piwik.org and matt@piwik.org
The text was updated successfully, but these errors were encountered: