-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make sure users with an older PHP can't upgrade to Matomo 4 #11068
Comments
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 |
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. |
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.. |
I think it is only in the config but I haven't looked at the code. |
Just because it is a UI setting doesn't mean it is stored in the DB just FYI |
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 |
We will need to solve this problem so it does not occur again in our next major release. Assigning to Piwik 4 |
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 |
Created the referenced PR though for the API... |
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)
![image](https://cloud.githubusercontent.com/assets/3694484/21425446/0ca6e480-c841-11e6-8dba-3d20b954aa59.png)
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.
The text was updated successfully, but these errors were encountered: