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
Fix upgrade from ps < 1.7.0.0 #22274
Conversation
If I understand correctly, For PS 1.6 => PS 1.7.6 we have a different structure for tabs (between PS 1.6 and PS 1.7) and the script correctly migrates it So we have a different script for ps1.6 => ps1.7.6 and ps1.6 => ps1.7.7 ? |
That's the opposite, when upgrading from PS 1.6 to PS 1.7.7, the upgrade script uses core files that expect the new DB structure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code seems OK for me. QA team can validate 1.6 => 1.7 upgrade and automated tests can validate the other paths
Hi @atomiix The original error is not displayed but I have this error now
Tested on php7.1 and mysql 5.7 |
Hi @atomiix As we have seen together there is now this error which is displayed:
|
bd95552
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some feedback
Co-authored-by: Progi1984 <progi1984@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the last comment so I still approve I let you judge if the modif is required or not
LGTM now !! No errors displayed during the upgrade process !! |
When will this available on autoupgrade? |
@gyan111 This PR has been milestoned for PS 1.7.7.1 which is scheduled for mid January 2021 or late January 2021. |
Hello,
Is there any solution for this ? EDIT : I found a simple hack : juste add the following line in classes/Hook.php before line 234 (beginning of the getNameById function) : |
ps_tab
has been changed on 1.7.7.x, when executing the 1.7.0.0 upgrade script, tabs weren't properly updated. The other issue was that because of a previous upgrade script, theLanguage
class had cache that wasn't up-to-date with the new database structure leading to an SQL update error. This PR fixes both bugs.This change is