@nmstoker opened this Issue on December 22nd 2016

I logged in to the Piwik interface and saw the small message flagged up in the top right saying I should upgrade my 2.17 installation to 2.17.1. (I'm on PHP 5.4 so cannot go to 3.0.0 until the point at which we're able to move the installation to PHP 5.5+)

I clicked on teh message and then the automatic upgrade button (which has worked perfectly in the past) and then almost immediately got a message about an error due to the PHP version (see screenshot)

After digging into the files on the server, I discovered that the update has taken me to 3.0.0. Somehow it has been able to proceed with this bypassing the checks that it did previously and now leaving an unworkable system (until we can upgrade PHP).

I doubt many people will end up in this scenario, but it would be good to check that the version checking process works for any future cases where a higher specific version of PHP (or something else) is required and not necessarily available.

@tsteur commented on December 22nd 2016 Member

That's no good, sorry for that. Can you check what it says in "config/config.ini.php" for "release_channel = ..."? You may be able to downgrade manually see https://piwik.org/docs/update/#the-manual-three-step-update You can download 2.17.1 here http://builds.piwik.org/piwik-2.17.1.zip

@nmstoker commented on December 23rd 2016

Hi Thomas,

Thanks for getting back to me. The config/config.ini.php file doesn't have any mention of "release_channel" at all, but seeing that the values there were able to override those in global.ini.php I checked in there and found it says this:

release_channel = "latest_stable"


I'm not going to have much of a chance to check details after today for about a week, so I'll need to leave it for now, but I'll gladly check anything useful later on. Given the somewhat restricted nature of my access on the installation, I think my best option is likely to be to prioritise the PHP upgrade if possible and push on rather than try rolling back.

@mattab commented on December 26th 2016 Member

to keep the code easier to understand, maybe we should remove the release_channel from the config file @tsteur ? maybe some code path is triggered using the config value instead of the recorded UI setting..

@tsteur commented on December 27th 2016 Member

I think it is only in the config but I haven't looked at the code.

@tsteur commented on December 27th 2016 Member

Just because it is a UI setting doesn't mean it is stored in the DB just FYI

@lhilarides commented on January 30th 2017

Just FYI: I ran into the exact same issue last week. Piwik asking me to upgrade to 2.17.1 and ending up with an unusable 3.0 install because it's still running on Ubuntu 12.04 and PHP 5.4. Our stats are not exactly mission critical, so for us the upgrade path (planned move to Debian 8) will be the solution

@mattab commented on February 18th 2017 Member

We will need to solve this problem so it does not occur again in our next major release. Assigning to Piwik 4

@tsteur commented on April 15th 2020 Member

BTW I cannot reproduce this issue no matter the release channel. @mattab quite certain this issue can be closed. Eg used hard coded values to see what version it suggests


@tsteur commented on April 15th 2020 Member

Created the referenced PR though for the API...

This Issue was closed on June 19th 2020
Powered by GitHub Issue Mirror