[fixed in 1.1.1] Login broken after online-upgrade from 1.0 to 1.1

Ok. Here’s where we’re at. Matthieu has re-released 1.1 with a fix for the array_map() warning and a workaround for the json_decode (php 5.1.x).

I just committed two other changes to trunk:

  1. In php 5.2.0, there’s a bug in the built-in json_encode/json_decode (PHP :: Bug #38680 :: json_decode won’t decode json_encode). I originally put in a workaround and tested with a pure 5.2.0, but I forgot about sites using custom 5.2.0 builds. In core/Cookie.php, change two occurrences of:

if(PHP_VERSION == '5.2.0')

to


if(PHP_VERSION < '5.2.1')

This should also fix the json_decode issue for php 5.1.x which doesn’t have the json extension (i.e., using the upgradephp library instead).

  1. Casey: good catch. I’ve changed this line in core/Controller.php from:

Piwik_FrontController::dispatch(Piwik::getLoginPluginName(), false);

to:


Piwik_FrontController::getInstance()->dispatch(Piwik::getLoginPluginName(), false);

Let me know if there are any other issues after applying these 2 patches.

I had the same problem and after the first patch, it works now. Thaks

Nothing change with this 2 patches.

Php 5.1.6 / Linux Redhat 5

It’s possible to rollback to previous version ? Just for waiting bugfix. :wink:

when will there be a bugfix???

fixed for me on an old rather old debian machine with php 5.2.0+dfsg-8+etch16

first I didn’t read that I have to replace TWO occurencies of


if(PHP_VERSION == '5.2.0')

works fine for me

Works fine !!

In core/Cookie.php Line 230 and 258


if(PHP_VERSION == '5.2.0')

to


if(PHP_VERSION < '5.2.1')

and in core/Controller.php Line 434


Piwik_FrontController::dispatch(Piwik::getLoginPluginName(), false);

to


Piwik_FrontController::getInstance()->dispatch(Piwik::getLoginPluginName(), false);

THANKS !!

login after update is still not possible for me

the two colums are patched as mentioned above, but nothing happens.

Did you change


if(PHP_VERSION == '5.2.0') to if(PHP_VERSION < '5.2.1')

in line 230 and 258

I’m now running Piwik on a vanilla php 5.1.6 and able to login successfully. (I also tested the upgrade from 1.0.)

To recap, these are the fixes in the repackaged/re-released 1.1 (about 8 hrs ago): (Note: if you upgraded using the earlier 1.1 release, you can apply these patches manually, rather than downloading and unzipping the latest.zip.)

3607
3610

These are the fixes not in 1.1:

3613
3614

I’ve also committed a couple of 5.1.x-specific fixes but these bugs shouldn’t have prevented anyone from logging in.

3616
3618

Hi,

With PHP 5.2.14 (Infomaniak.ch), with all patches applied, and after having removed all cookies, I still cannot login.

First login try with superuser login, I get a “form security code expired or incorrect…” (translated from french) then successive tries lead to a new login form (without any error message).

How can I help ? (I do not find log files) ?

Alexandre

I’m re-testing piwik manually with different php versions. I just did 5.1.6, and now I’m on 5.2.0. I’ll be testing 5.2.6, 5.2.14, and 5.2.16 to get some more coverage.

Login still not possible with patch 3607, 3610 3613, 3614 3616 and 3618 applied. I’m using php 5.2.14

Can’t login after webupgrade.
Done all patches till 3619.

FreeBSD 7.0
PHP 5.2.6

Thank you vipsoft.

With the two patches its working fine on my 5.2.0 installation.

Regards,
Christian.

after updating installation with the following fixes:
3607
3610
3613
3614

and i change both 5.2.1

still no login possible.

we released Piwik 1.1.1 with all the commits referenced in this thread.

If after upgrade to Piwik 1.1.1, you still experience an issue logging in Piwik, please create a new thread or contact us at hello@piwik.org if you are willing to send FTP/SSH access

[quote=Tanner]
Did you change


if(PHP_VERSION == '5.2.0') to if(PHP_VERSION < '5.2.1')

in line 230 and 258[/quote]

Oups! I had only change in line 230.
That’s works find now.
Very sorry.

Thank you for your job.

hi, piwik 1.1.1 is working for me after manual upgrade – thanks!

You could post a blogpost in Official Matomo Blog - Analytics Platform - Matomo. The newest post still announces V 1.1.

And a post on twitter yould help, too.

thanks

Good to hear, closing thread, please open new one if you still have issues