Backup is run after backward compatibility code in upgrade
Upgrade is failing because the old PHP version is still loaded and used in upgrade script
Solution
Move backup step before anything else
Rely on $YNH_PHP_VERSION from _common.sh, not phpversion stored in settings
Note that the $phpversion setting is automatically updated by the core.
PR Status
[X] Code finished and ready to be reviewed/tested
[X] The fix/enhancement were manually tested (if applicable)
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)
Problem
Solution
$YNH_PHP_VERSION
from_common.sh
, notphpversion
stored in settingsNote that the
$phpversion
setting is automatically updated by the core.PR Status
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)