Could not upload new plugin version - Downgrade not allowed error

  • Get the following error message appears if the new plugin upload 2.2.10


    Plugin Manager: downgrade from PhpSwitcher plugin is not allowed.

    my System :

    - Distribution: Debian | Release: 9.13 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), SpamAssassin (v 2.0.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)YubiKeyAuth 1.1.0

  • @Speddy


    There is a bug affecting all current i-MSCP versions which I can confirm by running:


    PHP
    1. root@srv01:~# # php -r 'if("2.2.9" > "2.2.10") print "ouch\n";'ouch


    The bug is located at: https://github.com/i-MSCP/imsc…/Plugin/Manager.php#L1181


    To resume


    PHP
    1. if ($oldInfo['version'] > $info['version']) {

    should be

    PHP
    1. if(version_compare($oldInfo['version'], $info['version'], '>')) {

    This bug will be fixed in next release. Meanwhile, you can edit your file manually and restart the imscp_panel service. Once done, you should be normally able to upload the new PhpSwitcher plugin version.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • A fix has been added in the 1.3.x branch. See https://github.com/i-MSCP/imsc…e5bcb692cebd6e5eb06b4aab2
    This fix will be part of the next version.


    Thank you for your report.


    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206